Repository navigation
feat(tui): show the session's workspace in the F1 session list - #361
Open
Miaoranmmm wants to merge 1 commit into
Open
Miaoranmmm wants to merge 1 commit into
Miaoranmmm wants to merge 1 commit into
Conversation
Contributor
|
head_sha: 变更摘要本 PR 为 TUI 的 F1 会话列表(Chat 标签页)新增首列 Workspace,把 #328 记录的会话与工作区归属关系展示出来。核心是在 主要改动
|
Contributor
|
head_sha: 代码审查✅ 未发现问题 |
Contributor
Miaoranmmm
force-pushed
the
feat/workspace-f1-column
branch
from
November 27, 2026 15:10
4351415 to
f16669c
Compare
Contributor
Miaoranmmm
force-pushed
the
feat/workspace-f1-column
branch
from
November 27, 2026 15:36
f16669c to
1ce2ae7
Compare
Contributor
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Paired: GitHub #361 ↔ GitCode !256
Part of #144. Builds on #328 (workspace backend).
What type of PR is this?
/kind feature
What
#328 records which workspace each session belongs to, but the F1 session list does not show it. This PR adds a Workspace column to the Chat tab of the F1 session list.
…and the tooltip shows the full name. When the columns do not fit, the column takes the cells it needs from Directory (down to 14 cells, elided in the middle) and then Title (down to 20). One cell is always kept free for the vertical scrollbar, so the scrollbar appearing or disappearing does not change the widths (a search can still change them, since it changes which names are measured); with a short list this falls back to scrolling one column earlier than strictly needed. If they still do not fit, as at 80 columns, the other columns keep their usual widths and the table scrolls sideways, as on main. A resize recomputes only the borrowed widths and updates only the columns whose width changed: no table rebuild, and the cursor, vertical scroll position and sort stay. A resize made while another screen (such as the delete confirmation) is on top is applied when the browser is shown again. As on main, when a resize adds the horizontal scrollbar, a cursor on the last visible row can end up under it.Code
screens/sessions/presenter.py: newworkspacecolumn andWorkspaceNames(one resolved read: names by session, the Unspecified label, whether any workspace exists). The Workflow tab picks the chat columns it shares by key, so adding a chat column does not shift it.screens/sessions/screen.py: reads the names once (_read_workspace_names), lays out the columns (_column_layout) and refits the borrowed widths on resize and screen resume (_fit_workspace_column, which setsDataTablecolumn widths directly; added to the Textual-privates list inAGENTS.md).SessionsScreentakesworkspaces(the state store's registry) andcurrent_workspace_name.util/formatting.py:elide_endcuts at whole graphemes, usingiter_cell_graphemesandtake_cells, which move fromwidgets/task_summary.py(its private_graphemesand_take_cells) toformatting.pyunchanged;take_cellsadds a fast path for printable ASCII.service/workspaces/registry.py: theworkspaces.unspecifiedlabel (UNSPECIFIED).screens/main/screen.py:_restore_session_or_flash, used by the F1 restore path.sessions.md(en, zh-Hans) mentions the column, horizontal scrolling and searching by workspace name.Decisions
Linked Closing Issues: