Skip to content

fix(claude): sessions get the task tools, and a restarted coordinator seeds the list (D-247) - #224

Merged
blove merged 1 commit into
mainfrom
blove/claude-task-tools-and-seeding
Nov 18, 2026
Merged

blove merged 1 commit into
mainfrom
blove/claude-task-tools-and-seeding

Conversation

@blove

@blove blove commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

The first live Claude Code check of the task list row (D-243, D-246), run through the installed Local build on Claude Code 2.1.282, found two faults. This fixes both.

What was wrong

  • No task tools. Claude Code 2.1.282 gives a stream-json session no TaskCreate or TaskUpdate unless CLAUDE_CODE_ENABLE_TODO_TOOLS is set. Asked for a task list, the model said it had no such tool, so the row could not appear.
  • The list was lost after a coordinator restart. D-246 seeds a resumed session's list from the projects folder Claude Code reports, which the adapter only learns from a new session or a history read. A restarted coordinator sends a turn before either, so the seed read nothing and every update to an earlier task was dropped until a reconcile.

The change

  • ClaudeStream.childEnvironment sets CLAUDE_CODE_ENABLE_TODO_TOOLS=1; a value already in the environment stands.
  • A resume falls back to ClaudeAdapter.projectsRoot when no projects folder is known, as deleteSession already does.

Verification

docs/verification/2026-11-17-claude-code-task-tools-live.md.

  • Live, on the build without these fixes and the variable set by hand: one taskList item per turn, and a reconcile adds none. After a restart the turn wrote no item; after a restart and a history read first, it did.
  • Two new tests, each failing before the change: childEnvironmentAsksForTheTaskTools and anAdapterThatHasReadNoHistoryStillSeedsAResumedSession.
  • Lint clean; 524 + 1516 tests pass; docs check passes.

Not verified

  • The fixes in the running app: the installed build predates them.
  • The variable is undocumented, read from the CLI's strings and confirmed against system/init. A later Claude Code may drop it; docs/compatibility.md says how to re-check.
  • TodoWrite live (2.1.282 does not offer it), the row on screen, and the two xcodebuild app builds.

🤖 Generated with Claude Code

… seeds the list (D-247)

The first live Claude Code check of the task list row (D-243, D-246) found
two things. Claude Code 2.1.282 gives a stream-json session no task tools
unless CLAUDE_CODE_ENABLE_TODO_TOOLS is set, so the row never appeared; the
child environment now sets it. And a coordinator started again seeded a
resumed session's list from a projects folder it had not learned yet, so
updates to earlier tasks were dropped; the resume now falls back to Claude
Code's default projects folder.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@blove
blove enabled auto-merge November 17, 2026 23:18
@blove
blove added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 7f0482f Nov 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant