[BUG] /rewind doesn't restore unpublished artifacts
Status Open
Reported on v2.1.251
Maintainer reply None cached
Activity 0 comments · opened Aug 30, 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 the /rewind command doesn't detect any code changes, Claude Code only rewinds the conversation.
What Should Happen?
The state of the generated artifacts should be rewound as well.
Error Messages/Logs
The page is built but publishing is blocked: this session authenticates via
apiKeyHelper, which takes precedence over a claude.ai login. To publish it,
unset apiKeyHelper, then /login and pick "Claude account with subscription" —
I can re-run the publish after that.
Steps to Reproduce
- Use Claude Code with apiKeyHelper, so that artifacts will be saved locally
- Send a prompt to produce an artifact, e.g. "Count the lines of code in the project per module and output to a page" (CC should create a file
/tmp/claude-0/artifacts/...) - Tell Claude Code to "Update that artifact" with something (e.g. "group by language as well")
/rewindto the first prompt
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.251
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_