Skip to content

fix: start a fresh demo session on page refresh - #36

Merged
Kinfe123 merged 1 commit into
mainfrom
fix/demo-refresh-session
Oct 23, 2026
Merged

Kinfe123 merged 1 commit into
mainfrom
fix/demo-refresh-session

Conversation

@Kinfe123

Copy link
Copy Markdown
Collaborator

Refreshing the demo currently reopens the session saved in its cookie and URL. Each full page reload now starts a fresh session, including reloads of ?session=... URLs, and updates the displayed ID, browser URL, and terminal command together.

The browser creates one random capability per document and shares its bootstrap request across effect remounts. Retries reuse that capability; reconnects fetch configuration for the selected session. Opening a session link and selecting a sidebar thread still resume existing conversations. Earlier threads, terminal attachments, connected folders, creation limits, and the explicit shared-demo mode remain intact. The page and demo documentation explain these behaviors.

Validation:

  • TypeScript checking and production site build passed.
  • Full host suite passed: 51 unit tests plus all workspace, managed gateway, native terminal, connected-folder, and pairing integration scenarios. Three PostgreSQL-dependent tests skipped because no test database was configured.
  • Added regression checks for reload identities, bootstrap retries/remounts, owner history, stable explicit links, creation budgets, and an independently usable refreshed session while a native terminal remains attached to the original.
  • Browser verification passed for repeated refreshes, matching IDs/commands, sidebar reopening, direct links, and reconnect; no browser warnings/errors.
  • Documentation links and git diff whitespace checks passed.

No production deployment or live provider-account verification was performed. Refreshes consume the existing session-creation allowance.

@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tress Ready Ready Preview Oct 23, 2026 6:06am UTC

Request Review

@Kinfe123
Kinfe123 marked this pull request as ready for review October 23, 2026 06:10
@Kinfe123
Kinfe123 merged commit 4f39e13 into main Oct 23, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 3d2551e1 Deployed Oct 23, 2026 by vercel[bot]
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