Files
t3code/apps/web
Ben DavisandClaude Fable 5 73ddc93f4d feat(web): lock agent-bound projects to their Hermes agent
Threads in an agent's synthetic project are now bound to that agent
end to end on the client:

- The composer's model chip renders as a static label (the Home-thread
  treatment) for every thread and draft in an agent project, and the
  selection always resolves to the project's agentInstanceId — beating
  draft picks, sticky state, and fallbacks, and holding while the agent
  is offline. Started threads bound to a different instance keep their
  own binding.
- New drafts in an agent project are born pinned to the agent
  (agent projects are created with defaultModelSelection null, so the
  pin lives in buildLocalDraftThread rather than relying on it).
- Picking a Hermes agent from an unstarted draft in an ordinary project
  jumps to the agent's own project (ensureAgentProject + new thread),
  carrying the typed prompt and attachments along without touching
  sticky model state.
- A bound instance missing from the snapshot feeds the existing
  "restore it in Settings" message naming the exact instance id.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-28 13:09:02 -07:00
..
2026-07-27 22:37:18 +00:00