Skip to content

!model listing shows a stale current marker while a switch is queued behind a busy turn #3535

Description

@troyhoffman-oss

When the owner sends !model while a turn is in flight, the switch is queued rather than applied, but the !model listing still marks the queued override's predecessor with the current marker. The listing reads the checked-out agent's live state, and the queued override is not visible from there until the turn completes and the switch lands.

Repro: start a long-running turn, send !model <other-model>, then send !model before the turn finishes. The list replies, but the marker points at the model the agent is about to leave.

Reporting-only. The switch itself lands correctly once the turn completes. Fixing the marker means threading the desired model through the task metadata so the listing can read it while the agent is checked out, which touches every construction site of that struct, so it was split out of #3380 rather than bundled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions