Repository navigation
fix: load sessions created by other front-ends - #152
Merged
Merged
Conversation
A session the odek WebUI created has no token in bodek's store. odek
answers that detail request with a mint-only bootstrap (session token
header, {"session_id","bootstrapped":true}, no transcript), which bodek
decoded as the session: resume replayed nothing, adopted an empty id,
and the turn errored. SessionDetail now refetches once with the minted
token and reports an error instead of returning the stub.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
odek stores a prompt with attachments and @-resources expanded into content, wrapped in untrusted markers, and the typed text in principal_prompt. Replay rendered content, so resumed sessions showed raw wrappers and file bodies in the user's turn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bodek | 34a241d | Commit Preview URL Branch Preview URL |
Oct 09 2026, 05:31 AM |
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.
Summary
Sessions created in the odek WebUI failed to load in bodek.
X-Session-Tokenheader,{"session_id","bootstrapped":true}, no transcript), which bodek decoded as the session itself: resume replayed nothing, adopted an empty session id, and the turn errored.SessionDetailnow refetches once with the minted token and returns an error instead of the stub. Every session path benefits (^R,--session, delete, pin, rename, export).content(wrapped in untrusted markers) and the typed text inprincipal_prompt. Replay renderedcontent, so resumed sessions showed raw wrappers and file bodies in the user's turn; it now shows the prompt as typed.Testing
internal/client/foreign_session_test.go(bootstrap refetch, missing or refused minted token, known token in one request) andTestReplayPrincipalPrompt. The client tests fail without the fix.make fmt,make vet,make lint(0 issues),make test(race) all green.🤖 Generated with Claude Code