Repository navigation
[NO-JIRA] Add prompt message ids and truncate_from_message for honk undo (R21) - #27
Merged
Merged
Conversation
johnnymo87
added a commit
that referenced
this pull request
Nov 22, 2026
…age for honk /undo (R21) Port of fork #14 onto v1.60.2. A client can choose the id goose stores a prompt's user message under (_meta.goose.messageId on session/prompt) and later delete history from that message onward with _goose/unstable/session/conversation/truncate_from_message {sessionId, messageId} -> {found}. The boundary is the message's row, so a message stored in the same second before it survives (the timestamp-based truncate deletes it). Refused while the session has an active run or live voice interaction. Truncation clears the session's current-context usage, which described the removed rows; accumulated totals stay. goose advertises agentCapabilities._meta.goose.truncateFromMessage. The 1.54 hint-requeue half is not needed: 1.60 rebuilds subdirectory hints from the conversation every turn. X-Shepherd-Wake: #27
johnnymo87
added a commit
that referenced
this pull request
Nov 22, 2026
…ion, not only registered runs (R21) X-Shepherd-Wake: #27
johnnymo87
force-pushed
the
r21-truncate-from-message
branch
from
November 22, 2026 06:18
a9e494d to
2641f70
Compare
johnnymo87
added a commit
that referenced
this pull request
Nov 22, 2026
…age for honk /undo (R21) Port of fork #14 onto v1.60.2. A client can choose the id goose stores a prompt's user message under (_meta.goose.messageId on session/prompt) and later delete history from that message onward with _goose/unstable/session/conversation/truncate_from_message {sessionId, messageId} -> {found}. The boundary is the message's row, so a message stored in the same second before it survives (the timestamp-based truncate deletes it). Refused while the session has an active run or live voice interaction. Truncation clears the session's current-context usage, which described the removed rows; accumulated totals stay. goose advertises agentCapabilities._meta.goose.truncateFromMessage. The 1.54 hint-requeue half is not needed: 1.60 rebuilds subdirectory hints from the conversation every turn. X-Shepherd-Wake: #27
johnnymo87
added a commit
that referenced
this pull request
Nov 22, 2026
…ion, not only registered runs (R21) X-Shepherd-Wake: #27
johnnymo87
force-pushed
the
r21-truncate-from-message
branch
from
November 22, 2026 06:57
2641f70 to
2873032
Compare
johnnymo87
added a commit
that referenced
this pull request
Nov 22, 2026
…age for honk /undo (R21) Port of fork #14 onto v1.60.2. A client can choose the id goose stores a prompt's user message under (_meta.goose.messageId on session/prompt) and later delete history from that message onward with _goose/unstable/session/conversation/truncate_from_message {sessionId, messageId} -> {found}. The boundary is the message's row, so a message stored in the same second before it survives (the timestamp-based truncate deletes it). Refused while the session has an active run or live voice interaction. Truncation clears the session's current-context usage, which described the removed rows; accumulated totals stay. goose advertises agentCapabilities._meta.goose.truncateFromMessage. The 1.54 hint-requeue half is not needed: 1.60 rebuilds subdirectory hints from the conversation every turn. X-Shepherd-Wake: #27
johnnymo87
force-pushed
the
r21-truncate-from-message
branch
from
November 22, 2026 07:46
2873032 to
d958539
Compare
johnnymo87
added a commit
that referenced
this pull request
Nov 22, 2026
…ion, not only registered runs (R21) X-Shepherd-Wake: #27
…age for honk /undo (R21) Port of fork #14 onto v1.60.2. A client can choose the id goose stores a prompt's user message under (_meta.goose.messageId on session/prompt) and later delete history from that message onward with _goose/unstable/session/conversation/truncate_from_message {sessionId, messageId} -> {found}. The boundary is the message's row, so a message stored in the same second before it survives (the timestamp-based truncate deletes it). Refused while the session has an active run or live voice interaction. Truncation clears the session's current-context usage, which described the removed rows; accumulated totals stay. goose advertises agentCapabilities._meta.goose.truncateFromMessage. The 1.54 hint-requeue half is not needed: 1.60 rebuilds subdirectory hints from the conversation every turn. X-Shepherd-Wake: #27
…ion, not only registered runs (R21) X-Shepherd-Wake: #27
johnnymo87
force-pushed
the
r21-truncate-from-message
branch
from
November 22, 2026 08:15
d958539 to
1dec11e
Compare
johnnymo87
added a commit
that referenced
this pull request
Nov 22, 2026
…age for honk /undo (R21) Port of fork #14 onto v1.60.2. A client can choose the id goose stores a prompt's user message under (_meta.goose.messageId on session/prompt) and later delete history from that message onward with _goose/unstable/session/conversation/truncate_from_message {sessionId, messageId} -> {found}. The boundary is the message's row, so a message stored in the same second before it survives (the timestamp-based truncate deletes it). Refused while the session has an active run or live voice interaction. Truncation clears the session's current-context usage, which described the removed rows; accumulated totals stay. goose advertises agentCapabilities._meta.goose.truncateFromMessage. The 1.54 hint-requeue half is not needed: 1.60 rebuilds subdirectory hints from the conversation every turn. X-Shepherd-Wake: #27
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.
Description
Port of fork #14 onto v1.60.2 (R21, bead workstation-6w7i.26.4.8). This is goose's side of honk's
/undo. The contract is unchanged from patched 1.54:session/prompt_meta.goose.messageId: the id the user message is stored under. A blank or non-string id is rejected before the run starts._goose/unstable/session/conversation/truncate_from_message {sessionId, messageId}→{found}. It deletes that row and everything after it, cutting by row rather than timestamp, so an earlier message stored in the same second survives. It is refused while any turn, run or live voice interaction holds the session. It also clears the session's current-context usage; accumulated totals stay.initializeadvertisesagentCapabilities._meta.goose.truncateFromMessage, which honkd checks.acp/server/truncate_from_message.rs.acp-schema.json/acp-meta.jsonare updated; the generated TS client inui/goose-acp-clientis not (no CI here checks it).acp_server_testend-to-end test, all listed inpatched-test.yml.Known limits, same as 1.54: undo restores message rows only. A
/recipeset in the undone turn stays, and providers that keep their own context (claude-code, gemini-cli) still remember the turn.Merge order (bead workstation-6w7i.26.4): after R15, R8, R14 and R16.
References
session.rs(/undo)