Skip to content

feat: extend-TTL, image pre-pull, and session UX#3

Merged
nicholasadamou merged 1 commit into
mainfrom
feat/features-ux
Jun 15, 2026
Merged

feat: extend-TTL, image pre-pull, and session UX#3
nicholasadamou merged 1 commit into
mainfrom
feat/features-ux

Conversation

@nicholasadamou

@nicholasadamou nicholasadamou commented Jun 15, 2026

Copy link
Copy Markdown
Member

Second of the two follow-up PRs — the Features & UX batch (#7–#10). (Quality & DX follows in the next PR.)

Extend TTL (#7)

PATCH /api/sessions/:id pushes a running session's expiry to now + ttlSeconds (clamped 60–86400); the dashboard adds a +15m control. Because Docker labels are immutable and Airlock keeps no database, the extension is an in-memory override applied on read/prune — best-effort, single-node, reverts on API restart (documented in api.md/OpenAPI).

Image pre-pull (#9)

  • createSession now ensures the image is present (pulls if missing), fixing a latent first-launch-on-a-fresh-host failure (createContainer doesn't auto-pull).
  • POST /api/images/pull warms all configured images; the dashboard exposes a Pre-pull browser images action.

Clipboard / file bridge (#8) + share / reconnect (#10)

  • Per-session Copy link button; viewer Reload stream (reconnect / re-accept cert) button.
  • Clipboard sync and file upload/download are surfaced via the Kasm control bar (iframe clipboard-read/write perms set), documented in web.md.
  • The per-session VNC password is shown beneath the stream.

Verification

  • make check green: format, lint, typecheck, 97 tests (80 api + 17 web), build. New tests cover extendSession (incl. override-aware prune), pullBrowserImages, the PATCH/pull routes, and the web client methods.
  • Docs: api.md, docs/openapi.yaml (validated), web.md updated.

Follow-up (final PR)

Quality & DX: tests for App/SessionList/SessionViewer, an opt-in real-container e2e, and OpenAPI drift protection.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

Features & UX batch:
- PATCH /api/sessions/:id extends a running session's TTL (in-memory
  override, since labels are immutable and there's no database — best-effort,
  reverts on API restart); dashboard "+15m" control
- createSession now pulls the image if missing (fixing first-launch on a
  fresh host) and POST /api/images/pull warms all configured images; the
  dashboard exposes a "Pre-pull browser images" action
- dashboard: per-session copy-link button, a "Reload stream" reconnect button
  in the viewer, and a note that clipboard/file transfer live in the Kasm
  control bar; the per-session VNC password is shown under the frame

Docs (api.md, openapi.yaml, web.md) and tests updated; 80 api + 17 web tests.
@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@nicholasadamou, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 30 minutes and 45 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bde9d988-7a2c-4448-ab7c-ec0f5d8d4fef

📥 Commits

Reviewing files that changed from the base of the PR and between dbaaf38 and 8cb18e5.

📒 Files selected for processing (16)
  • apps/api/src/__tests__/_fakes.ts
  • apps/api/src/__tests__/app.test.ts
  • apps/api/src/__tests__/docker-session-runtime.test.ts
  • apps/api/src/app.ts
  • apps/api/src/docker-session-runtime.ts
  • apps/api/src/schemas.ts
  • apps/web/src/App.tsx
  • apps/web/src/components/SessionList.tsx
  • apps/web/src/components/SessionViewer.tsx
  • apps/web/src/lib/api.test.ts
  • apps/web/src/lib/api.ts
  • apps/web/src/styles.css
  • docs/api.md
  • docs/openapi.yaml
  • docs/web.md
  • packages/shared/src/index.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/features-ux

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nicholasadamou nicholasadamou self-assigned this Jun 15, 2026
@nicholasadamou nicholasadamou merged commit 6d09dff into main Jun 15, 2026
5 checks passed
@nicholasadamou nicholasadamou deleted the feat/features-ux branch June 15, 2026 20:25
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