Repository navigation
fix(server): full text in v1 history, and report an unreachable database - #532
Merged
Merged
Conversation
- GET /v1/sessions/:id/messages returned only the first text block of a message, so a tool-only or image-only message came back empty. It now joins every text block and marks tool calls and images. - GET /v1/health gains `storage_ok` and the session list gains `partial`: a database that cannot be opened no longer reads as a healthy daemon with no saved sessions. Both default to the old meaning when absent. Co-Authored-By: Claude Fable 5.2 <[email protected]>
mrnasil
enabled auto-merge (squash)
December 2, 2026 16:19
Merged
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.
From the same source audit as #527–#531 (the two low-severity findings).
History
GET /v1/sessions/:id/messagesbuilt each message'scontentfrom its first text block only. A message with several text blocks was cut short, and a tool-only or image-only message came back as an empty string, so a reconnecting SDK client saw blank steps.contentnow joins every text block (and a compaction summary), and marks what is not text:[tool call: <name>], the tool result text,[image]. Thinking blocks stay out. No protocol change.Storage
GET /v1/healthalways saidhealthy: true, and the session list silently left out saved sessions when the database could not be opened, which reads as "no saved sessions".Handshake.storage_ok(bool): false when the daemon cannot open its database. Absent means true, so an older daemon parses as before.SessionList.partial(bool, only sent when true): the database could not be read and only in-memory sessions are listed.healthykeeps its meaning (the process answers). The TypeScript SDK types andparseHandshakecarry the new fields;python scripts/check_sdk_protocol.pypasses.Verification
storage_okdefault.whycodes-protocolandwhycodes-servermeasured locally: no missed lines.npm run buildandnpm testpass insdk/typescript.🤖 Generated with Claude Code