Verify Terminal Restoration after RSP
debug_bridge_restoreRestore pre-debug terminal state after external GDB disconnects: confirm target shell readiness, reapply and verify saved stty -g, then validate a shell marker before releasing the lease.
Instructions
After external GDB disconnects and the target returns to its shell, explicitly confirm readiness and supply the pre-debug stty -g value. Applies and reads back that value, then verifies a fresh shell marker before releasing the lease. Never injects RSP detach. Failure or ten-second timeout closes the Session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Secret management capability, 32..128 characters; distinct from the generated TCP connection token. | |
| bridge_id | Yes | Opaque bridge_id returned by debug_bridge_start; not a Session reference. | |
| tty_state | Yes | Exact stty -g value recorded before preparing the target, 1..512 printable bytes. No guessed defaults. | |
| confirm_shell_ready | Yes | Must be true only after independently ending RSP and returning to the target shell. The probe itself is shell input. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes |