Skip to content

fix(board): exit when ostool-server releases session#90

Merged
ZR233 merged 1 commit intomainfrom
fix-kill
Apr 15, 2026
Merged

fix(board): exit when ostool-server releases session#90
ZR233 merged 1 commit intomainfrom
fix-kill

Conversation

@ZR233
Copy link
Copy Markdown
Member

@ZR233 ZR233 commented Apr 15, 2026

What changed

This updates remote board execution so ostool exits with an error when ostool-server releases the session or closes the serial websocket.

It applies the same handling to both direct board serial terminals and the remote U-Boot serial bridge used by ostool board.

Why

Previously, server-side closed and related websocket termination paths could be treated like a normal terminal shutdown on the client side.

That made ostool look like it ended cleanly even though the board session had actually been released by ostool-server.

Impact

When the server frees the board or tears down the serial websocket, the local ostool command now reports an error and exits.

This makes remote board session loss visible to users and to automation.

Validation

  • cargo test -p ostool

@ZR233 ZR233 marked this pull request as ready for review April 15, 2026 06:48
@ZR233 ZR233 merged commit 95a8304 into main Apr 15, 2026
2 checks passed
@ZR233 ZR233 deleted the fix-kill branch April 15, 2026 06:51
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