[BUG] TODO json files not written when using print mode.

Resolved 💬 3 comments Opened Sep 12, 2025 by Caleb-T-Owens Closed Jan 8, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When using CC in print mode, it doesn't write out its TODO json file.

As a CC integrator, this means that to display the TODO list, we're traversing through the events to extract the TodoWrite tool call to extract the list, which is fine.

What concerns us is the possibility that the TODO list now _only_ exists in the models context, rather than doing the "correct" internal magic - whatever that might be. Especially when resuming sessions.

I'm not sure that this has ever written the files out as expected

What Should Happen?

The corresponding entry in .claude/todos to contain the relevant TODO list

Error Messages/Logs

Steps to Reproduce

Run claude -p --verbose --output-format=stream-json "Could you write a TODO list that makes use of all the different states so I can test my CC integration"
Observe that the corresponding entry in ~/.claude/todos is empty.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

1.0.112

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗