Skip to content

fix(ostool-server): clear serial queue after session#135

Merged
ZR233 merged 1 commit into
mainfrom
codex/serial-session-cleanup
Jun 16, 2026
Merged

fix(ostool-server): clear serial queue after session#135
ZR233 merged 1 commit into
mainfrom
codex/serial-session-cleanup

Conversation

@ZR233

@ZR233 ZR233 commented Jun 16, 2026

Copy link
Copy Markdown
Member

Summary

  • Flush the serial stream and clear all tty buffers before closing an ostool-server serial websocket session.
  • Preserve the original websocket/session result when cleanup fails, logging cleanup failures as warnings instead.
  • Add serial cleanup unit tests for flush/clear ordering, cleanup error reporting, and preserving the original session error.

Validation

  • cargo fmt --all -- --check
  • cargo clippy --target x86_64-unknown-linux-gnu -p ostool-server --all-features
  • cargo test -p ostool-server

@ZR233 ZR233 marked this pull request as ready for review June 16, 2026 05:57
@ZR233 ZR233 merged commit bb3d282 into main Jun 16, 2026
2 checks passed
@ZR233 ZR233 deleted the codex/serial-session-cleanup branch June 16, 2026 06:12
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