Skip to content

Find provider CLIs past noisy login shells, and bound browser preview navigate and screenshot - #2020

Merged
currentbits merged 3 commits into
mainfrom
coder/reliability-login-path-probe-and-preview-27cc4e
Nov 13, 2026
Merged

currentbits merged 3 commits into
mainfrom
coder/reliability-login-path-probe-and-preview-27cc4e

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Two backend reliability fixes.

  • Login PATH probe: Solenta reads PATH from a login shell, using markers in the command text. A shell with a DEBUG trap that echoes $BASH_COMMAND printed those markers, so the parser read the echoed command instead of PATH (a repro returned a quoted literal), and provider CLIs weren't found. The markers are now assembled by printf at run time and never appear literally, and the probe runs in a subshell so the trap isn't inherited.
  • Preview timeouts: navigate awaited loadURL and screenshot awaited capturePage with no deadline, so a hung page stalled the agent's turn.
    • Navigation now returns what has committed after 30 seconds, with a note.
    • Screenshots fail after 10 seconds with a reason.
    • ERR_ABORTED (-3), which Electron raises when a page redirects or starts another load, now counts as success instead of a failed navigation.

Not covered: the Inspect crop capture is still unbounded.

Tests: a DEBUG-trap case in electron/test/pathenv.test.js (skipped on Windows and on hosts without bash), plus timeout and redirect cases in electron/test/preview.test.js. 43 of 43 pass.

🤖 Generated with Claude Code

Willem and others added 2 commits November 13, 2026 15:18
A bash DEBUG trap that echoes $BASH_COMMAND printed the probe command
before running it, and the PATH parser picked the marker text out of
that echo, returning a literal '"$PATH"' instead of the real PATH.
The markers are now only assembled by printf, never spelled out in the
command, and the dump runs in a subshell so the trap can't echo into
the env section either.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…all the agent

navigate now gives up waiting after 30s and returns the committed URL
and title with a note, instead of awaiting loadURL forever. A client-side
redirect makes Electron reject loadURL with ERR_ABORTED (-3); that is
the page working, so navigate returns the redirected nav state instead
of reporting a failure. screenshot fails after 10s with a reason rather
than hanging on capturePage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T15:40:35.866609Z d01d944 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: d01d944d11

ℹ️ 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 thread electron/pathEnv.js Resolved
fish reads ( ) as command substitution, so the subshell wrapper made the
probe invalid there and fish users lost their login PATH. fish has no DEBUG
trap, so it runs the probe bare; POSIX shells keep the subshell.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@currentbits
currentbits merged commit a383905 into main Nov 13, 2026
14 checks passed
@currentbits
currentbits deleted the coder/reliability-login-path-probe-and-preview-27cc4e branch November 13, 2026 16:13
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