Repository navigation
Description
Short summary
CLI sessions are silently excluded from the sidebar by two undocumented import filters: sessions whose workspace.yaml lacks git repo info are never imported, and sessions whose client_name is not github/cli are never imported. Worse, opening an imported CLI session in the app rewrites its client_name to github/autopilot, which makes that session permanently ineligible for future re-import.
Affected version or release
GitHub Copilot app 1.1.14 (commit 0d498e8), bundled Copilot CLI 1.0.80, Linux x86_64 (Arch, package github-copilot-app-bin)
Installation context
Local desktop install; local project folders; ~105 sessions in ~/.copilot/session-store.db created by the standalone Copilot CLI (1.0.x series). Settings → Sessions → Show Copilot CLI Session set to "Last 360 days".
What happened?
With the CLI-session setting at 360 days and several project folders added, the sidebar showed zero CLI sessions. ~/.copilot/data.db had 0 rows in sessions, while the CLI's session.list JSON-RPC (same bundled binary, copilot --server --stdio) returned 46 valid sessions with names, timestamps, and cwd/repo context.
Running the app with RUST_LOG=github_app=debug and isolating variables with disposable probe sessions in a scratch git repo (git init + fake GitHub remote, one real turn each, then selectively backdating the session store row, events.jsonl/workspace.yaml content, and file mtimes) showed the import pipeline applies these filters:
-
Repo info required. Every session whose
workspace.yamllacksgit_root/repositoryis skipped with a DEBUG-level log only:DEBUG github_app::session::manager::state: skipping CLI session without repo info session_id="..."140 such lines in one launch. Sessions started in non-git directories can never appear, even when their exact cwd is added as a project (matches Copilot App inconsistently discovers CLI sessions #955, still unanswered). There is no UI indication.
-
client_name: github/clirequired. A probe session cloned byte-for-byte from a successfully-importing session (new UUID, same repo, same timestamps) with onlyclient_namechanged fromgithub/clitogithub/autopilotinworkspace.yamlis returned bysession.listbut never imported — and unlike filter 1, it is skipped with no log line at all, even at DEBUG level. -
Age filter works correctly and reads session content timestamps (
workspace.yaml/events.jsonl), not thesession-store.dbrow: a probe whose store row said 400 days old but whose content said today imported fine; a probe fully backdated to 400 days was correctly excluded by the 360-day setting; fully-backdated probes at 45 and 92 days imported fine. Thecli_max_age_days: 360value is correctly sent by the frontend (verified in the websocket debug log).
The rebranding interaction between filter 2 and normal app usage is the destructive part:
- Opening an imported CLI session in the app rewrites its
workspace.yaml, changingclient_namefromgithub/clitogithub/autopilot(verified viasession.listbefore/after: three probes I clicked once each all flipped togithub/autopilot). - From that moment the session no longer satisfies filter 2. It remains visible only because it is already in the app database. If its project is ever removed, or the app database row is lost (e.g. the migration in [1.1.10][Windows] CLI-session visibility migration deletes workspace link and cannot re-import it #2944), the session can never be re-imported — silently.
- Confirmed end-to-end: after removing and re-adding the probe project, previously-imported sessions did not come back. (Removing the project also permanently deleted their on-disk session data — reported separately as its own issue.)
This also explains a real-world failure: a session created by the CLI in May, later opened once in VS Code (which set client_name: github/autopilot plus mc_* fields), was listed by session.list with full repo info but never imported, with no log output. Resuming it once in the CLI rewrote client_name: github/cli, and it imported immediately on the next reconcile.
Steps to reproduce
Filter 2 (client_name), the most surprising one:
- Create a scratch git repo with a GitHub-shaped remote:
git init /tmp/probe && cd /tmp/probe && git remote add origin https://github.com/you/probe.git, commit once. - Create two real CLI sessions in it:
copilot --name probe-a -p "Reply ok"and the same forprobe-b. - In
~/.copilot/session-state/<probe-b-id>/workspace.yaml, changeclient_name: github/clitoclient_name: github/autopilot. - In the app (CLI session setting enabled), add
/tmp/probeas a project. - Observe probe-a appears in the sidebar; probe-b never does, with no log line even under
RUST_LOG=github_app=debug.
Rebranding side effect:
- Click probe-a in the app, then inspect its
workspace.yaml:client_nameis nowgithub/autopilot. - Remove the project, restart, re-add the project: probe-a no longer imports.
Expected behavior
- Sessions without repo info should be importable by cwd match when their directory is added as a project (or the limitation should be documented and surfaced in the UI).
- The
client_namefilter should not exist in this form, or at minimum: the app opening a session should not permanently disqualify that session from its own import pipeline. If rebranding is required, the reconciler should accept sessions it previously rebranded. - Every skipped session should be logged with a reason; the silent skip in filter 2 makes diagnosis nearly impossible.
- The Settings description ("Include sessions created by the Copilot CLI in the sidebar") should mention that only sessions from git repositories with a recognized remote qualify.
Additional context
- Bundled CLI reports 1.0.82-2 for the standalone
copilotbinary; the app pool runs~/.cache/github-copilot-sdk/cli/1.0.80/copilot --server --stdio --no-auto-update. - Healthcheck reports all OK while all of the above is happening.
- Related: Copilot App inconsistently discovers CLI sessions #955 (repo/cwd matching, unanswered), [Bugs] CLI sessions sync is broken. #1372, I'm unable to see my sessions from Github CLI in here, why? #2618, Copilot cli session just don't load in the app. #2497 (users with the setting enabled seeing nothing — plausibly this same pair of silent filters), [1.1.10][Windows] CLI-session visibility migration deletes workspace link and cannot re-import it #2944 (cannot re-import after migration — consistent with the rebranding mechanism described here).
- Binary strings place the skip in
github_app::session::manager::state/database::sessions::reconcile_cli_sessions.
Activity
github-actions commentedon Oct 29, 2026
This issue has been marked as stale because it has had no activity for 60 days. It will be closed in 7 days unless there is new activity. If this still affects you, please comment with the latest app version, whether the problem is still reproducible, and any updated details.
github-actions commentedon Nov 5, 2026
This issue has been automatically closed after 7 additional days without activity since being marked stale. If this still affects you, please provide updated details and ask a maintainer to reopen it.