Repository navigation
fix(web-ui): restore all scoped sessions in Recents and fix remote Recents - #1342
Conversation
…cents Restore the original intentional Recents behavior by reverting PR #1279/#1280 project-session exclusion so Recents once again lists all recent visible root sessions in the active host scope (including sessions belonging to expanded, collapsed, or windowed projects). Also fix remote host scope bugs in Recents: - Include ungrouped sessions belonging to the selected remote host (in "all" mode) instead of restricting ungrouped sessions to local only. - Gate local catalog pagination (list.hasMore / list.loading) by hostScopeIncludesLocalSessions so remote-only views no longer show a ghost "Show more" button when there are no more remote rows. - Gate projectless session creation (canStartProjectless) by hostScopeIncludesUngroupedLocal so remote-only and local-selected-workspace views do not expose a local-only compose button or render an empty Recents section.
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Summary
Restore the original intentional behavior of sidebar 「最近 / Recents」 (reverting PR #1279 and PR #1280's exclusion of project-owned threads) and fix remote host scope bugs that left Recents empty with a ghost 「展开显示」 button and a local-only compose button when viewing a single remote host.
Problem
• C), Recents rendered empty because ungrouped remote sessions were dropped byfilterSessionsByHostScope, while local-onlycanStartProjectlesskept the empty section header visible and locallist.hasMoreleaked through to render a ghost 「展开显示」 button below 0 rows.Changes
apps/web-ui/packages/client/ui-workspace/src/client/rows/sidebar-window.ts: Remove theexcludedIdsparameter introduced by PR fix(web): omit visible project threads from Recents #1279.apps/web-ui/packages/client/ui-workspace/src/client/rows/WorkspaceBrowser.tsx:projectSessionIdsfiltering so Recents retains all recent visible root sessions in scope (still excluding blank drafts, subagents, and pinned/native-section items, with independentrecent:${id}row keys).canStartProjectlessviahostScopeIncludesUngroupedLocaland local pagination (hasMore/loading) viahostScopeIncludesLocalSessions.apps/web-ui/packages/client/ui-workspace/src/client/rows/host-scope-filter.ts:hostScopeIncludesUngroupedLocalandhostScopeIncludesLocalSessions.mode: "all"to passfilterSessionsByHostScope.apps/web-ui/packages/client/ui-workspace/test/sidebar-window.test.ts&host-scope-filter.test.ts: Remove obsoleteexcludedIdstest and add focused regression coverage for project sessions in Recents, single remote host Recents, selected-workspace scoping, and localhasMore/canStartProjectlessgating.docs/product/standalone-web.md: Sync the Recents specification to match current behavior.Visual Changes
Validation
sidebar-window.test.ts(9/9),host-scope-filter.test.ts(27/27),thread-tree.test.ts(18/18).pre-commitPrettier formatting check on all 6 changed files: passed.WorkspaceBrowsercomponent and inspected across Local, Remote host (• C), and Remote selected-workspace views.AGENTS.md.