Skip to content

Honor chat-requested models for task workers and new conversations - #1935

Merged
santoshkumarradha merged 7 commits into
devfrom
fix/chat-launch-model-dev
Oct 25, 2026
Merged

santoshkumarradha merged 7 commits into
devfrom
fix/chat-launch-model-dev

Conversation

@santoshkumarradha

@santoshkumarradha santoshkumarradha commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

A chat could request a different task model, but a task joining an existing run discarded that choice and used the run's worker model. Preserve the requested work model through storage and task splits, and document its precedence over the crew worker default.

Add start_chat for independent conversations and team_start.model for teammate and sub-team manager conversations. Resolve model names before launch, set the chosen model before the first message, and claim independent chat launches once across attached windows and event replay.

Related to #1839: covers selecting individual teammate and sub-team manager models; it does not add a whole-team default setting.

Validation

Real terminal chats used OpenRouter with deepseek/deepseek-v4.1-flash as the launching chat and moonshotai/kimi-k3 as the requested child/work model. All five scenarios passed in 85 seconds:

Chat request Result
Quick task (node task engine) Kimi K3 completed the requested report
Full task proposal (default worker harness) Kimi K3 completed the requested report
Independent chat (normal hosted launch) Separate Kimi K3 conversation completed its first message
Teammate conversation Kimi K3 completed and successfully posted its report
Task joining an active DeepSeek run Joined worker used Kimi K3 and completed its report

Acceptance checks require successful provider responses, the exact recorded primary-call model, and a completed child result. New chat checks require a distinct child journal. No older Flash model or fallback was substituted.

make pr-ready passed its manual/capability and quality checks and the e2e, plandb, remote, run, and teams packages. The full gate is not green: session test TestClosedSessionHasNoMemoryPassStillWritingTheStore encountered a synctest deadlock in a DNS lookup. The same test passes in isolation on both unchanged dev and this branch; that does not establish the full-suite failure's cause. The tui3 package also passed all eight shards. A fresh full session-package rerun on the unchanged final source passed all eight shards in 55 seconds. An intervening rerun also hit a provider-retry assertion (three attempts instead of two); neither failure is hidden by the passing rerun. Every touched package now has a passing run, but the original full gate did not complete cleanly. Regression coverage includes persisted task overrides, descendant inheritance, unchanged planner/checker seats, model-name rejection, startup ordering, concurrent launch claims, remote clients, multiple windows, and replay. Standards and specification reviews found no blocking issues.

Scope and limitations

  • Quick tasks retain their existing per-call model selection on the node engine; the default worker harness exposes full task proposals.
  • Task model overrides select the work seat. Planning/checking retain their crew seats; the one-model option still takes precedence.
  • Independent chat launch receipts acknowledge the request; the attached terminal reports whether opening succeeded. A failed opening needs a new request.
  • Live UI recording and terminal evidence are preserved locally. Direct PR media attachment upload is unavailable through the connected tooling; no evidence files are committed or published elsewhere.

Please review; do not merge yet.