Skip to content

[Bug]: Session import is unreachable after onboarding, so externally started sessions can never be imported #10961

Description

@danielquintas8

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Complete onboarding in the desktop app, importing recent sessions for a project (onboardingCompletedAt is now set).
  2. In a terminal, run claude from that project's workspace root and hold a short conversation.
  3. Return to the desktop app and look for that session: sidebar, search, and the Settled shelf.
  4. Try to import it.

Expected behavior

A session that satisfies every documented eligibility rule should be importable after onboarding, through some reachable action. This is not a request for automatic discovery, which was declined in #7748.

Actual behavior

The session never appears, and there is no way to import it.

The eligibility rules are all satisfied. The transcript is minutes old, well inside the 30 day RECENT_THREAD_WINDOW_MS, and its recorded cwd is exactly the project's workspace root, so directoryIdentity matches. The importer would accept it.

The problem is reachability. agentSessions.import has one caller in the web app, WelcomeWizard.tsx. WelcomeWizard renders only on the /welcome route. The only navigation to /welcome is FirstRunGate.tsx:185, which fires only when the gate decides the user is on a first run, and that decision does not recur once onboardingCompletedAt is set. There is no sidebar entry, settings action, or command palette item for it, so on desktop, where there is no address bar, the import capability becomes unreachable the moment onboarding finishes.

Search does not help, because it only covers threads the app already holds, so an unimported session is absent rather than merely hard to find.

For contrast, /usage is reached from a SidebarChrome control. /welcome has no equivalent.

The effect is that every session started outside the app after onboarding is permanently invisible to it, even one started seconds ago in the right directory. PR #10631 adds an on demand import entry point on the new thread screen and its description notes that import "is currently part of onboarding", so the gap looks known.

Impact

Major degradation or frequent failure

Version or commit

0.0.40 (Homebrew cask), verified against main at 4664c57

Environment

macOS desktop app. The web client is not affected in the same way, since /welcome can be typed there directly.

Workaround

Start sessions inside the app, or continue outside ones with claude --resume in a terminal. On the web client, navigate to /welcome to re-run the wizard.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions