Skip to content

fix(cli): allow importing cloud-only sessions - #11744

Merged
marius-kilocode merged 1 commit into
mainfrom
legend-snap
Jun 29, 2026
Merged

fix(cli): allow importing cloud-only sessions#11744
marius-kilocode merged 1 commit into
mainfrom
legend-snap

Conversation

@lambertjosh

Copy link
Copy Markdown
Contributor

Fixes #11222

The default TUI validates --session against local storage before Kilo can process --cloud-fork. Cloud-only session IDs therefore fail with Session not found instead of reaching the existing import flow.

Skip that pre-import local lookup only while --cloud-fork is active, in both daemon and embedded-server paths. Ordinary local session validation remains unchanged, and the existing cloud import still creates and opens a fresh local session ID.

The implementation stays deliberately narrow to minimize divergence from upstream TUI control flow. A regression test exercises the daemon orchestration and verifies the cloud import request occurs without a preceding local session lookup.

@lambertjosh

Copy link
Copy Markdown
Contributor Author
image

@kilo-code-bot

kilo-code-bot Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (5 files)
  • .changeset/import-cloud-session-first.md
  • packages/opencode/src/cli/cmd/tui/thread.ts
  • packages/opencode/src/kilocode/cli/cmd/tui/thread.ts
  • packages/opencode/src/kilocode/cloud-session.ts
  • packages/opencode/test/kilocode/cli/tui/thread.test.ts

Reviewed by gpt-5.4-2026-03-05 · Input: 54.1K · Output: 9.5K · Cached: 305.2K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit 05f5702 into main Jun 29, 2026
32 of 35 checks passed
@marius-kilocode
marius-kilocode deleted the legend-snap branch June 29, 2026 07:41
NJ-2020 pushed a commit to NJ-2020/kilocode that referenced this pull request Jul 4, 2026
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
fix(cli): allow importing cloud-only sessions
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.

CLI cloud fork rejects valid cloud sessions as missing

2 participants