Skip to content

treewide: more better serial#8

Open
samcday wants to merge 1 commit intomainfrom
fastboop-serial
Open

treewide: more better serial#8
samcday wants to merge 1 commit intomainfrom
fastboop-serial

Conversation

@samcday
Copy link
Owner

@samcday samcday commented Feb 16, 2026

No description provided.

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: opencode:gpt-5.3-codex
@samcday
Copy link
Owner Author

samcday commented Feb 16, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5ad478475f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +255 to +256
let terminal_rows = state.serial.styled_rows(inner_rows.max(1));
let lines: Vec<Line<'_>> = terminal_rows

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Resize serial terminal before slicing visible rows

The TUI serial pane renders styled_rows(inner_rows) from a SerialTerminal that is created with the default 240 rows, but this code never calls set_size to match the panel height. That means the view is always taking the bottom rows of a much taller buffer, so early boot output (which starts near row 0) is not shown until roughly 240 lines have scrolled. In practice this hides the early serial logs this feature is meant to expose.

Useful? React with 👍 / 👎.

Comment on lines +368 to +371
Err(err) => {
on_event(NativeSerialEvent::Error(err));
std::thread::sleep(selector.poll_interval);
continue;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Exit serial monitor on unsupported host instead of looping

When matching_port_path returns an error, the reader thread emits the error and immediately retries forever. On non-Linux hosts this function always returns "native serial reader is only implemented for Linux hosts", so enabling serial monitoring creates a permanent error loop (every poll interval) with continuous log spam and unnecessary background activity instead of failing once and stopping.

Useful? React with 👍 / 👎.

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

Comments