mirror of
https://github.com/alphaXiv/OpenResearch.git
synced 2026-10-02 09:44:51 +08:00
* Run coding-agent sign-in and setup commands in an embedded settings terminal Settings notes that mention a terminal command now carry a play button that runs it in place: harness sign-ins (claude auth login, codex login, agent login, opencode auth login), gh auth login, hf auth login, and the Cursor installer. The terminal follows the app theme, stays open after the command exits, and continues as the user's login shell for follow-up commands. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Address review: keep the settings terminal alive, size and env for the follow-up shell - Hoist the run state out of the note so a successful sign-in (which removes the note) no longer unmounts the terminal mid-session. - PTY children get the imported shell PATH/config env and a TERM. - The follow-up shell opens at the client's last reported size and only after the command actually started. - Light-theme ANSI palette for the app-themed terminal. - Non-zero exits under the shell no longer raise a toast. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Address round-2 review: report server failures, share the shell hand-off, drop opencode models - A command failure under the follow-up shell now writes the message to the terminal and marks the header failed; only transport failures toast. - One continue_in_shell helper serves both routes and carries OpenCode's isolated store into the shell after opencode auth login. - opencode models is no longer runnable: it would run in a different configuration than detection and mislead. - Drop the dead on_success parameter; origin check first everywhere; setup route uses the shared origin guard; tests for resize tracking and the shell query flag. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Address round-3 review nits Keep the success state after the shell exits, write a late shell-start error to the terminal, report sessionEnded accurately for non-shell terminals, and fix comment anchors and wording. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>