Skip to content

fix(session): name RevertSession in the lost-runtime refusal - #3666

Open
adalundhe wants to merge 1 commit into
fix/session-recovery-automaticfrom
fix/session-recovery-revert-hint
Open

adalundhe wants to merge 1 commit into
fix/session-recovery-automaticfrom
fix/session-recovery-revert-hint

Conversation

@adalundhe

Copy link
Copy Markdown
Contributor

Follow-up to #3399, stacked on its branch. It addresses @EItanya's nit on ErrRuntimeUnrecoverable.

A send to a Session whose runtime is lost (its recorded Actor is missing or was replaced) was told only to start another conversation. The refusal now also names the manual recovery call:

Session runtime cannot be recovered; start another conversation. To retry recovery manually, call kagent.api.v1.SessionService/RevertSession with this Session's ID.

The error's gRPC code and ErrorInfo reason are unchanged, so clients that branch on them behave the same. For a runtime that is truly lost, RevertSession answers FAILED_PRECONDITION and confirms the loss rather than restoring it.

Testing: the lost-runtime gateway test asserts the hint; the Session and gateway tests pass; lint reports 0 issues.

🤖 Generated with Claude Code

A send to a Session whose runtime is lost was told only to start another
conversation. Name the manual recovery call in the message, so a client that
only sends knows RevertSession exists. For a lost runtime, RevertSession
answers FAILED_PRECONDITION with the loss. The error's code and reason are
unchanged. The lost-runtime gateway test asserts the hint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ada Lundhe <adalundhe@lundhe.audio>
@adalundhe
adalundhe requested a review from a team as a code owner November 13, 2026 01:33
@github-actions github-actions Bot added the bug Something isn't working label Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant