Repository navigation
Crush: carry on its own conversation with --session - #52
Merged
Merged
Conversation
Owner
|
Thanks @SeoJunLee-code, this looks good. Reading the session id from |
SeoJunLee-code
marked this pull request as ready for review
November 29, 2026 02:47
`--continue` picks up the newest conversation in the folder, so two Friday sessions running Crush there could cross over. `crush run --verbose` logs the conversation's id on stderr; read it and hand it back with `--session`. The log lines are kept out of what a failed turn reports. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
SeoJunLee-code
force-pushed
the
crush-session-id
branch
from
November 29, 2026 03:05
9a88607 to
08ff5ba
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Follow-up to #46. Two Friday sessions running Crush in the same folder no longer cross over: each keeps its own conversation. Before, the next turn used
--continue, which picks up the newest conversation in the folder.Crush now runs with
--verbose, whose stderr log names the conversation (Created session for non-interactive run session_id=…). Friday reads that id and hands it back with--session. The log lines are left out of what a failed turn reports. If no id is read, or the installed Crush refuses--session, it falls back to--continueas before.The one change outside the adapter:
Parserhas an optionalstderrhook, used byrunner.ts.How you checked it
Added a test in
test/crush-adapter.test.tsfor reading the id across split chunks, filtering the log lines, and passing--session.Not run against a live Crush. The log format comes from reading Crush's
run.go/app.goand charmbracelet/log.npm run typecheckpassesnpm testpasses: on Windows, 17 tests fail on this branch andmainalike; comparing the two runs showed no new failure, only the one added passing test.🤖 Generated with Claude Code