GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tui: pre-upgrade sessions hidden from session list (stuck under "global" project) · Issue #55596 · anomalyco/opencode

tui: pre-upgrade sessions hidden from session list (stuck under "global" project) #55596

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
tui: pre-upgrade sessions hidden from session list (stuck under "global" project)#55596
Copy link
Labels
pending closetriaging

Description

@nangy2514
nangy2514
opened on Oct 15, 2026
Issue body actions

Description

  • Summary:从 1.19.0 升级到 2.0.29 后,升级前创建的会话从 TUI 会话列表消失;数据完好,但它们仍挂在 V1 时代的 global 项目下,而目录升级后有了自己的 project,按项目过滤的列表就把它们排除了
  • Environment:opencode 2.0.29(latest)/ Windows 10 19044.3086 x64 / Zed 终端 / Git Bash / 无插件
  • Reproduction:① V1 在非 git 目录创建会话(挂 global)→ ② 升级 V2 并在同一目录启动 → ③ l 列表里没有旧会话 → ④ 对比 ?directory=(能查到)与 ?project=(查不到)
  • Expected:location.directory 匹配当前目录的会话应出现在列表中
  • Actual:旧会话不可见;migration/v1 已 completed,数据可经 API 读取,仅被 projectID 过滤排除
  • Additional Context:多个目录稳定复现;附修复 workaround(POST /api/session/{id}/move);建议官方在目录注册为项目时自动重新归属 global 会话,或让列表包含 location 匹配的 global 会话

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. opencode-agent commented on Oct 15, 2026

    @opencode-agent
    opencode-agentBot
    on Oct 15, 2026 – with OpenCode Agent
    Contributor
    More actions

    Thanks for the detailed report and for sharing the POST /api/session/{id}/move workaround!

    I think this is a duplicate of #49827. After the v1→v2 migration, sessions that v1 created in non-git directories keep project_id = 'global'. v2 gives the directory its own project and filters the session list by project, so those sessions stay hidden even though the data is intact.

    Possible duplicates and related issues, most likely first:

    • migrate-v1: non-git sessions in "global" project hidden after V1→V2 upgrade #49827: same problem, non-git v1 sessions left under global and hidden from the TUI session list after upgrading (reported on 2.0.8, confirmed on 2.0.21)
    • session: v1 "global" sessions stay unattributed after migration and are hidden from v2's session list #51176: same root cause, v1 global sessions never get assigned to their directory's project during migration
    • V1→V2 importer keeps project_id='global' for non-git directories, so migrated sessions never appear in the per-directory session picker #50551: the importer keeps project_id='global' for non-git directories, so the sessions never appear in the per-directory picker
    • cli: migrated v1 sessions from non-git dirs missing from session list #52919 / sessions: V1 sessions from non-git directories hidden from the project session list #53450 / migration: v1 sessions imported under project 'global' are invisible in project session lists #50999 / db migration: v1→v2 leaves pre-upgrade sessions invisible in session list (project_id/path not remapped) #55381: the same symptom reported on other versions and platforms
    • fix(core): attribute migrated V1 sessions to the project of their directory #51935 and fix(core): restore legacy sessions in markerless projects #54048: open pull requests that try to fix this

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different. Adding your environment (2.0.29, Windows) and your workaround to #49827 would help too.

  2. opencode-agent
    added
    pending close
    triaging
    on Oct 15, 2026
  3. opencode-agent
    closed this as duplicateon Oct 16, 2026
  4. opencode-agent commented on Oct 16, 2026

    @opencode-agent
    opencode-agentBot
    on Oct 16, 2026 – with OpenCode Agent
    Contributor
    More actions

    Closing this as a duplicate of #49827, since we haven't heard back in the past day. Both reports describe the same thing: after the v1→v2 migration, sessions from non-git directories keep the global project and drop out of the project-filtered session list. Please follow #49827 for progress, and the open pull requests #51935 and #54048 are attempts to fix it. Adding your 2.0.29 / Windows details and the POST /api/session/{id}/move workaround there would help. If your problem turns out to be different, reply here and we'll take another look.

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

    pending closetriaging

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.