feat(workspace): per-session model picker for foreman chat #569

Closed
opened 2026-04-30 16:53:33 +00:00 by claude-desktop · 0 comments
Collaborator

User story

As an operator, I want to pick which model (Opus / Sonnet / Haiku / DeepSeek) the foreman uses for a given session, so I can throw the cheap one at scratch chats and reserve Opus for spec drafting.

Acceptance criteria

  • Session header exposes a model dropdown sourced from GET /agents/models (already shipped — #553). Default is the foreman's configured model from /foreman/config.
  • Selection persists on the foreman_sessions row (new column model, nullable; null = use default). Forward migration via ALTER TABLE in ensureSchema, mirroring the existing repo column pattern.
  • POST /foreman/chat honours the session's pinned model when set.
  • The model dropdown lives next to the session title, not in the sidebar (per-session, not per-list).

Out of scope

  • Per-turn model override (defer).
  • Provider failover surface (covered by #552).

References

  • Sessions schema: apps/server/src/domain/agent/foreman.ts:64 (ensureSchema).
  • Spec: specs/workspace-chat-overhaul.md § P6.
## User story As an operator, I want to pick which model (Opus / Sonnet / Haiku / DeepSeek) the foreman uses for a given session, so I can throw the cheap one at scratch chats and reserve Opus for spec drafting. ## Acceptance criteria - [ ] Session header exposes a model dropdown sourced from `GET /agents/models` (already shipped — #553). Default is the foreman's configured model from `/foreman/config`. - [ ] Selection persists on the `foreman_sessions` row (new column `model`, nullable; null = use default). Forward migration via `ALTER TABLE` in `ensureSchema`, mirroring the existing `repo` column pattern. - [ ] `POST /foreman/chat` honours the session's pinned model when set. - [ ] The model dropdown lives next to the session title, not in the sidebar (per-session, not per-list). ## Out of scope - Per-turn model override (defer). - Provider failover surface (covered by #552). ## References - Sessions schema: `apps/server/src/domain/agent/foreman.ts:64` (`ensureSchema`). - Spec: `specs/workspace-chat-overhaul.md` § P6.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
charles/claude-hooks#569
No description provided.