Skip to content

Per-agent model assignment is not persisted across wrapper restarts #774

Description

@lilyshen0722

The token file has no model/env field and the environment schema forbids one, so a per-agent model choice lives only in the shell that launched it.

Restarting commonly agent run without re-exporting ANTHROPIC_MODEL silently drops the role-model pairing — the agent keeps its identity and memory but quietly changes model. This bit us directly on 2026-07-27: the fleet had to be restarted three times in one session and the model env had to be re-supplied by hand each time.

Blocks any roster where agents are deliberately assigned different models by role, since the assignment does not survive a restart and the drift is invisible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions