Skip to content

fix(threads): collapse preceding work when steering - #913

Merged
nixuuu merged 2 commits into
devfrom
fix/collapse-before-steer
Nov 17, 2026
Merged

nixuuu merged 2 commits into
devfrom
fix/collapse-before-steer

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Change

With “After the turn” set to Collapse, a delivered steer now collapses the preceding work immediately, including work before a context compaction boundary. Previously those segments continued using “While working” until a final answer or the turn ended.

The new segment uses “While working”. Manually reopening an earlier segment after the steer survives subsequent steers and completion. Keep open remains respected, and compaction alone preserves the current fold choices. The shared rule applies to web, desktop and mobile; the folding documentation describes the new behavior.

Fixes: #639

Verification

  • Passed domain source typecheck: bunx --no-install tsc -p packages/domain/tsconfig.json --noEmit.
  • Passed lint and formatting for packages/domain/src/work-fold.ts, and git diff --check.
  • Checked the actual fold controller and header in an isolated Chromium fixture: steer invalidates live manual choices, manual reopening survives a later steer, compaction alone preserves choices, a subsequent steer closes preceding segments, and Keep open works with Collapsed while working.
  • Inspected light/dark screenshots at desktop and phone widths with long steer text; no horizontal overflow or browser errors.
  • Updated the existing fold-logic expectations for the steer boundary, including all preference combinations, an immediate steer without subsequent work, mobile parity after compaction, and manual reopening through later steers and completion. Both affected files pass through check:tmp: 18 tests, 576 assertions, no temporary files left. Lint and formatting pass for the edited tests.
  • No UI copy changed; the copy audit is not applicable. Native mobile rendering and the full running application were not exercised. Full repository checks and builds remain with CI.

Apply the after-turn preference to segments before a delivered steer. Expire live fold choices at that boundary while retaining manual choices made after it.

Fixes: #639
@nixuuu
nixuuu enabled auto-merge (squash) November 17, 2026 08:00
@nixuuu
nixuuu merged commit 0108a01 into dev Nov 17, 2026
16 checks passed
@nixuuu
nixuuu deleted the fix/collapse-before-steer branch November 17, 2026 08:14
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