fix(client): tolerate script replay after command completion

This commit is contained in:
cabbage committed 2026-11-09 08:04:42 +00:00
1 parent 6984a09486
commit 1b5c6dbf98
5 files changed
+180 -2

No files matched your search

+7
View File
@@ -136,6 +136,13 @@ exact ignored `dist/` directory after preserving any evidence.
Preserve spool/history: rebooting cannot remove a replayable oversized event.
New server logs include bounded read/reconciliation errors and an
`agent_message_too_big` counter; new clients advertise the actual build version.
- **`terminal command cannot accept script data` during reconnect:** the server
may replay an upload while the client is still delivering that command's
terminal events. Corrected clients ignore these frames only after verifying
the command is locally terminal; existing event replay reports the outcome.
They neither change script bytes nor invoke launch again. The same error for
a committed but still-live script, unknown owners, and malformed transfers
remains a failure. Upgrade the client while preserving its spool.
- **No client / stale session:** verify nginx has WebSocket `101` entries for
`/v1/agent`, server readiness is true, and the Windows service is running.
Use `rvc stat CLIENT_ID`; do not restart the client merely to clear history.