• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / neokai / 25416974320

06 May 2026 04:45AM UTC coverage: 63.924% (-7.6%) from 71.557%
25416974320

push

github

web-flow
Make task thread composer fully target-aware: per-agent model, thinking, and tools (#1800)

* Make task thread composer fully target-aware: per-agent model, thinking, and tools

- Add useTargetSessionContext hook to resolve selected target to its live
  session ID via activityMembers, with pre-configuration support for agents
  that haven't started yet.
- Update useModelSwitcher to load models.list even when session.model.get
  fails, so not-started agents still see the global catalogue.
- Refactor TaskSessionChatComposer to use the new hook: model switch,
  thinking toggle, and tools now operate on the targeted agent's session.
- Add TaskToolsModal for viewing runtime MCP servers of the targeted agent.
- Show amber "not started yet" banner and ring when targeting an unstarted
  agent, with workflow default model as the pre-configured default.
- Update SpaceTaskPane to pass activityMembers and defaultAgentModels.
- Add tests for useTargetSessionContext and update TaskSessionChatComposer
  tests to cover new behavior.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Address review feedback: thinking routing, nodeExecutionId matching, per-node defaults

- Add onThinkingLevelChange prop to SessionStatusBar and ChatComposer so
  TaskSessionChatComposer can intercept thinking-level changes and route
  them through useTargetSessionContext.setThinkingLevel. This prevents
  unstarted-agent thinking changes from being written to the fallback task
  agent session.
- Resolve node-agent sessions by nodeExecutionId when available, falling
  back to agentName only when nodeExecutionId is absent. This eliminates
  ambiguous matches when multiple workflow nodes reuse the same agent slot.
- Key defaultAgentModels by target ID (node:${nodeId}:${agentName}) instead
  of agentName alone, so each node can have its own default model without
  collisions.
- Update tests to cover nodeExecutionId resolution and onThinkingLevelChange
  wiring.

Co-Authored-By: Claud... (continued)

8191 of 11322 branches covered (72.35%)

Branch coverage included in aggregate %.

152 of 172 new or added lines in 7 files covered. (88.37%)

8465 existing lines in 59 files now uncovered.

57552 of 91524 relevant lines covered (62.88%)

238.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

6.98
/packages/daemon/src/lib/github/space-github.ts


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc