Repository navigation
A host with no session-start hook is handed where work left off on its first Logos call - #124
Merged
Merged
Conversation
…s first Logos call
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.
In Claude Code the plugin's SessionStart hook opens every session with where the last agent stopped and what it ruled out. Claude Desktop, Copilot, and Cursor or Codex wired by hand have no such hook, so that handoff depended on the model choosing to call
resume, the step it most often skips.Now the first successful Logos tool result in such a session carries the handoff, after the tool's own answer, with one line saying why it is there.
resumeorcontext. Those are the handoff already.checkpointorhandoff. After those, the latest checkpoint is the model's own.The checkpoint at disconnect already existed (
unsaved.go, #31), so it is not part of this change.Tests: 10 in
firstcall_test.go. Each positive test fails with its fix removed.go test ./...passes (46 ok), and so do vet, gofmt and the chaos tier. Exercised over stdio on a scratch vault asclaude-aiandclaude-code.