Skip to content

Set up Solenta on another computer from Connect, run headless on Linux, and show agent readiness in onboarding - #1669

Merged
currentbits merged 4 commits into
mainfrom
coder/research-this-from-t3-we-should-improve--ce03de
Oct 18, 2026
Merged

currentbits merged 4 commits into
mainfrom
coder/research-this-from-t3-we-should-improve--ce03de

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Connecting to Solenta on another computer now takes an SSH host and one click. Connect installs or starts Solenta there, reads its token, and shows that computer's version and agent sign-ins. Onboarding also shows which agents are ready and who they're signed in as, and adds extra ChatGPT accounts.

Remote access (#1660)

  • Connect to another computer (Settings › Connections):
    • Every connect starts with an SSH step that launches Solenta on the host if nothing answers there, then reads the token.
    • Linux hosts without Solenta get Install Solenta on . It downloads this build's own release into ~/solenta, checked against GitHub's sha256, and shows the sudo apt install … line for any missing libraries.
    • After connecting, the pane shows the host's version, with Update for an older Linux host, plus its agents and their sign-in state.
  • --headless runs Solenta with no window, including on a Linux server with no display. Chromium's own --headless switch selects the display-less platform, and GPU init is turned off. On start it prints the address, token, link and a terminal QR code.
  • Setting up Solenta Web in Settings is enough for Connect: turning on the switch now writes the token file Connect reads over SSH; before, only --serve-web did. The device row is now labelled "SSH and command line".
  • No second copy writing the same data: a --serve-web or Connect launch that finds Solenta already running hands off to it, so web access is turned on in the running app. Prod and Nightly can still run side by side on macOS.
  • Browsers and phones:
    • A wrong or revoked token closes the connection with code 4401. The page stops retrying and shows the styled sign-in again, with the reason.
    • Drops longer than 1.5 s show a "Reconnecting…" banner, which also says when a message is waiting to send.
  • Settings and docs:
    • Connections is split into "Let other devices in" and "Connect to another computer", each with steps.
    • site/docs.html has new "Phones and browsers" and "Other computers and SSH" guides: headless Linux plus a systemd unit, and troubleshooting mapped to the real error messages.

Onboarding (#1659)

  • Agent rows show Ready, Signed out or Not installed. Install and Sign in buttons open a terminal on the machine running Solenta.
  • The signed-in account is shown in onboarding and Settings › Agents. Claude reports it through auth status; for Codex it comes from the ChatGPT id_token and is used for display only.
  • Connect ChatGPT account adds a Codex instance with its own CODEX_HOME and runs codex login in it. Solenta stores no tokens.

Checked

  • tsc and vite build pass.
  • Electron suite: 4899 pass, 0 fail (clean environment).
  • Renderer suite: 3092 pass. Four files timed out in the full run while the Electron suite ran in parallel, and pass alone (232/0).
  • The host prepare and install scripts were run in Linux containers with fish as the login shell. Cases covered: not installed, start, already running, bad checksum (nothing installed), clean install, update, missing-library report.
  • Electron 35 was run headless with no display in an arm64 container. --headless was also run on macOS from the dev tree with a throwaway userData.

Not covered

  • A real Solenta Linux build running headless end to end. Only a minimal Electron app and stub binaries were run in containers.
  • Install over SSH against a live GitHub release. The test used the v0.16 tarball over local http.
  • Linux builds are x86_64 only, so ARM hosts get a "no build for this processor" message.

🤖 Generated with Claude Code

Willem and others added 4 commits October 18, 2026 21:46
…nt (#1659)

The agent step shows Not installed (Install), Signed out (Sign in) or
Ready with "Signed in as <email> · <plan>". The account comes from
`claude auth status --json` and codex's auth.json id_token, for display
only. "Connect another ChatGPT account" adds a codex instance with its
own CODEX_HOME and runs `codex login` there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Connect's host prepare step `open -n`ed Solenta whenever nothing answered
on the web port. A running copy older than the macOS single-instance lock
(or updated on disk but not restarted) never took the hand-off, so the new
process booted as a second writer on the shared userData.

- Already running: launch the same build with --handoff-only, and only if
  its main.js knows that flag; otherwise exit 5 with "turn on Serve Solenta
  Web there". --handoff-only exits instead of booting when it gets the lock.
- macOS takes the lock but only --serve-web launches exit on it, so a
  prod and a nightly can still run side by side as before.
- A --serve-web hand-off during boot is applied once webAccess exists.
- Plain-language SSH errors for unknown host, Remote Login off, timeouts.

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

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T20:28:29.444482Z ba59568 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: ba5956848d

ℹ️ 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 src/boot.tsx

export function BootApp() {
if (needsWebTokenGate()) return <TokenGate />;
if (needsWebTokenGate()) return <WebTokenGate />;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep the startup token gate non-dismissible

When a web client has no stored token, BootApp now renders only WebTokenGate, but that component still closes itself when Escape is pressed. Closing it makes this branch render null, leaving a blank page with no way to reopen the token form except manually reloading; the boot-time gate should ignore dismissal or expose a persistent way to reopen it.

Useful? React with 👍 / 👎.

const p = Number(port);
return `sh -c '
tok() { cat "$HOME/Library/Application Support/Solenta/web-token" 2>/dev/null || cat "\${XDG_CONFIG_HOME:-$HOME/.config}/Solenta/web-token" 2>/dev/null; }
up() { command -v curl >/dev/null 2>&1 || return 0; curl -s -o /dev/null -m 2 "http://127.0.0.1:${p}/"; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Treat a missing curl as a failed host probe

On a minimal Linux host without curl, up() returns success without checking the port, so the script skips both starting Solenta and detecting that it is not installed. A stopped installation then yields an empty/stale token or a failed tunnel, and an uninstalled host never produces exit 3, so the UI does not offer its Install action—even though the installer itself supports wget on curl-less hosts.

Useful? React with 👍 / 👎.

Comment thread electron/webServer.js
let line = "";
for (let c = -pad; c < n + pad; c++) {
const top = light(r, c);
const bottom = r + 1 >= n + pad ? false : light(r + 1, c);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the QR code's bottom quiet zone

QR module counts are odd, so the final loop iteration always reaches this branch; forcing bottom to false emits a half-row of dark terminal background across the entire bottom edge. That removes the documented light quiet zone and can prevent phone scanners from recognizing the printed setup QR. The out-of-range bottom half should remain light, just like the other padding.

Useful? React with 👍 / 👎.

@currentbits
currentbits enabled auto-merge (squash) October 18, 2026 20:28
@currentbits
currentbits merged commit 6f948b8 into main Oct 18, 2026
6 checks passed
@currentbits
currentbits deleted the coder/research-this-from-t3-we-should-improve--ce03de branch October 19, 2026 07:15
currentbits added a commit that referenced this pull request Oct 27, 2026
…s fix (#1712)

Bump to 0.27.0, add the changelog entry and move the site download
fallback tag to v0.27.0.

The 0.26.0 Linux tarball predates the --headless handling from #1669, so
`solenta --headless` on a server with no display segfaults while
creating a window. This release ships that fix to the stable channel.

Co-authored-by: Willem <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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