Skip to content

Recover stale question sessions and escalate stale backlogs#493

Merged
dmoliveira merged 2 commits intomainfrom
fix/stale-question-recovery-20260315
Mar 15, 2026
Merged

Recover stale question sessions and escalate stale backlogs#493
dmoliveira merged 2 commits intomainfrom
fix/stale-question-recovery-20260315

Conversation

@dmoliveira
Copy link
Owner

Summary

  • recover idle sessions stuck on question/askuserquestion by resuming from session history with focused regression coverage
  • escalate large generic stale assistant backlogs in /session doctor from warning-only to configurable blocking failures, with threshold validation
  • stabilize the long selftest's late digest assertion by restoring its known fixture before plain-text verification

Validation Evidence

  • npm --prefix plugin/gateway-core run build
  • node --test plugin/gateway-core/test/session-recovery-hook.test.mjs
  • npm --prefix plugin/gateway-core run lint
  • python3 -m py_compile scripts/session_command.py scripts/selftest.py scripts/session_digest.py
  • python3 scripts/selftest.py

Reduce stuck-session friction by resuming idle question stalls and by turning large generic stale backlogs into actionable doctor failures instead of warning-only noise.
Keep the long selftest's late digest show assertion deterministic by restoring the known digest fixture before verifying plain-text output.
@dmoliveira dmoliveira merged commit 115b1f4 into main Mar 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant