Skip to content

feat(tabs): add a mobile open-tabs switcher - #1006

Open
GoodLandxxx wants to merge 1 commit into
spacering-net:mainfrom
GoodLandxxx:feat/mobile-tab-switcher
Open

GoodLandxxx wants to merge 1 commit into
spacering-net:mainfrom
GoodLandxxx:feat/mobile-tab-switcher

Conversation

@GoodLandxxx

@GoodLandxxx GoodLandxxx commented Oct 21, 2026 •

Copy link
Copy Markdown

What

On mobile the desktop tab strip is not mounted, and the conversation list only lists conversations — so a background tab (a draft, a child session) has no way back after you leave it.

This adds a mobile-only "Open tabs" entry between Search and New conversation in the workspace title bar. It opens a dropdown listing every open tab with:

  • status dot, title and folder name, mirroring the desktop strip's cues
  • the active tab highlighted with a check mark
  • click to switch; from a full-page route (settings, repository page) it returns to the conversation workspace first
  • the trigger is disabled when no tabs are open

The desktop layout is untouched.

Testing

  • pnpm vitest run src/components/tabs/mobile-tab-switcher.test.tsx — 3 new tests
  • ESLint on the changed TS/TSX files
  • pnpm build (static export) passes
  • Manual check in a mobile-width viewport against a local codeg-server

Closes #1007

The mobile path does not mount the desktop tab strip, and the conversation
list only surfaces conversations, so drafts and child sessions could become
unreachable. Add a top-bar menu that lists open tabs with status, title and
folder, and returns to the conversation workspace before switching.
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