Repository navigation
fix(runtime): preserve working hooks across idle title repaints - #32195
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 10 minutes. View limit details
No actionable comments were generated in the recent review. ℹ️ Recent review info
Walkthrough
Priority: Merge Risk:
|
# Conflicts: # src/main/runtime/runtime-mobile-agent-status-projection.ts
|
Maintainer note: merged current origin/main into this branch (8812512) to resolve the conflict in runtime-mobile-agent-status-projection.ts. The conflict was additive: this PR's workingHookOwnsIdleTitleInterval guard sits next to main's new completedTurnFields/demoteRuntimeMobileAgentStatus, and both are kept unchanged. Focused runtime projection/renewal suites pass locally (72 tests across 6 files). #32156 changes hook-vs-program-status precedence for waiting/blocked rows in the agent-hooks server, which is a separate layer, and this guard only applies to working hooks under an idle title, so the two do not overlap. |
A remote terminal's fresh working hook could become Done when its existing idle-class OSC title repainted, even with identical text. The canonical hook store remained working. Keep the hook's state and prompt when it postdates the start and latest invalidation of that same idle title interval; a real later title-state transition still retires the older row.
Refs #18491. This repairs the reproduced title-repaint case only. The original remote-machine incident and shared Active/Done dot styling have not been reproduced or changed. Current source already handles stale live-PTY rows as unverifiable and restores unfinished rows as unconfirmed; those remain separate from hook delivery.
Validation:
Reliability contract:
terminal-performance.remote-hidden-retention-budgetstatus/heartbeat/fanout command, plus targeted renewal and stale-row tests. Physical paired-client rendered acceptance remains an explicit gap.