Skip to content

fix(threads): include active trees in the working section - #860

Merged
nixuuu merged 1 commit into
devfrom
fix/show-all-working-threads
Nov 16, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/show-all-working-threads

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 16, 2026

Copy link
Copy Markdown
Member

Change

A thread could display Working while staying outside the Working section because it or a child had an unread result. Let ongoing turns take precedence over results from earlier turns, and keep finished subagent results inside their parent thread. Apply the same attention rule to project grouping so hidden subagent results do not create a misleading Needs attention section.

User-directed questions and unread results from finished user threads still keep the tree visible outside Working. Pins remain separate, and the counter counts only trees in Working. The shared selector covers web, desktop and mobile. Update the Polish behavior documentation and add regression coverage.

Fixes: #136

Verification

  • bun run check:tmp ./packages/domain/src/sidebar-threads.test.ts: 9 passed, 39 assertions; no temporary files left.
  • Typechecks for @canopy/domain and @canopy/web passed; Svelte reported zero errors and warnings.
  • Formatting and lint passed for both edited TypeScript files; git diff --check passed.
  • Inspected the actual sidebar components in an isolated Chromium preview at 1440 px and 390 px, in light and dark themes, with short and long titles. Checked the counter, expand/collapse, finishing and restarting a turn, and a subagent question moving its parent out of Working and back after the answer. No horizontal overflow.
  • Independent review found no issues.
  • Copy audit (§8): no UI text changed.
  • Full repository checks and builds are left to required CI. The branch includes current dev; the additional upstream automation changes do not alter the verified selector or its inputs.

Ignore results from finished subagents and earlier turns while a thread is working again. Keep user-directed questions and visible finished user results outside Working.

Fixes: #136
@nixuuu
nixuuu enabled auto-merge (squash) November 16, 2026 07:21
@nixuuu
nixuuu merged commit 346b179 into dev Nov 16, 2026
11 checks passed
@nixuuu
nixuuu deleted the fix/show-all-working-threads branch November 16, 2026 07:32
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