Repository navigation
feat: answer a side question from lich with a fork of the session - #30
Merged
Merged
Conversation
The mod-control contract adds an ask kind: the mod answers it with $.model.fork, the question behind a preamble saying tools are unavailable (without it a mid-turn fork reaches for one and answers in a second request, measured on Claude Code 2.1.289), and acks the reply in the new answer field, cut at 16,000 UTF-16 units. A fork can run past a minute, so an ask starts the moment its poll returns and is chained behind nothing, nor anything behind it. The contract is in no lich release yet: refresh-fixtures.sh now reads the two mod-control fixtures at lich 8b06b79 (branch feat/ask-session), and the vendored copies are that commit's byte for byte. CI's drift check fails until that commit is pushed. Tests changed because the contract changed: the fake engine serves model.fork, and the every-shape test expects the ask's fork ahead of the queued commands and its ack in no fixed place. contract.mjs models the two new rejected cases.
Measured in lich's live smoke: a prompt whose first reply is still streaming is not in the fork either.
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.
Client side of lichdotdev/lich#649: the mod answers an
askwith$.model.fork, wrapped so the fork answers from the conversation without trying a tool, and returns the reply in the ack (cut at 16,000 characters). An ask still answering holds back no other command.Tests: node 250+ green,
claude plugin test .green. Fixtures read at the pushed lich commit until a release ships the contract; movetests/lich-refand drop the pin then.