Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Add web “continue session” flow with part-aware terminal startup - #154

Merged
Panacota96 merged 2 commits into
developfrom
codex/add-continue-session-endpoint
Apr 6, 2026
Merged

Add web “continue session” flow with part-aware terminal startup#154
Panacota96 merged 2 commits into
developfrom
codex/add-continue-session-endpoint

Conversation

@Codex

@Codex Codex AI commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Browser users lacked a way to resume a paused session as a new terminal part; the API also needed guards and parts_count updates.

  • API: POST /api/session/{name}/continue now creates the next part, writes signed session_meta with parts_count, guards active terminals with 409, and launches a PTY-backed shell (bash/sh fallback if zsh missing) returning {session, part, status, pid}.
  • Terminal UI: Session page gains a Continue button, part badge, and part-aware terminal start/stop/write/WebSocket calls so the live terminal attaches to the newest part.
  • Core/session: Shared helpers to compute next part, patch parts_count, and include parts_count in part metas.
  • Docs/Changelog: Updated README and changelog to describe the continue behavior and response shape.
// Session page JS
async function gsContinueSession() {
  const resp = await fetch(`/api/session/${gsSessionPath}/continue`, { method: "POST" });
  const payload = await resp.json();
  gsSetTerminalPart(Number(payload.part));
}

Co-authored-by: Panacota96 <118935424+Panacota96@users.noreply.github.com>
@Codex Codex AI changed the title [WIP] Add POST /api/session/{name}/continue endpoint and UI button Add web “continue session” flow with part-aware terminal startup Apr 6, 2026
@Codex
Codex AI requested a review from Panacota96 April 6, 2026 20:31
@Panacota96
Panacota96 marked this pull request as ready for review April 6, 2026 20:38
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Panacota96
Panacota96 merged commit d077f6a into develop Apr 6, 2026
10 checks passed
@Panacota96
Panacota96 deleted the codex/add-continue-session-endpoint branch April 6, 2026 20:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[WEB] Continue Session — POST /api/session/{name}/continue endpoint and UI button

2 participants