Skip to content

fix(threads): keep new thread placement and cache git refs - #1500

Merged
nixuuu merged 4 commits into
devfrom
fix/thread-project-branch-loading
Nov 30, 2026
Merged

nixuuu merged 4 commits into
devfrom
fix/thread-project-branch-loading

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Keep the chosen project and worker in the open New thread form while the overview and settings refresh. Remember the last explicit project for the client, with a configured default workspace taking precedence.

  • Reuse the last Git listing for the same workspace, worker and checkout while refreshing it in the background. Keep the last known checkout and branch visible while the worker is offline.

  • Give the checkout and branch labels room in the narrow web and desktop composer. Keep the full branch name available when the visible label is shortened.

  • When a link points to an existing worktree, wait for a fresh Git listing if the running request predates the link. Keep the exact worktree as the submission target.

Local verification

  • Scoped lint, mobile and web typechecks, and four existing new-thread focus tests through check:tmp.
  • Chromium with controlled overview and Git responses at 1365 and 390 px, including a delayed Git response, a worker going offline, removal and restoration of the chosen project, and long labels.
  • Android API 36 emulator with controlled overview and Git responses, including reopening, a delayed Git response and an offline worker.
  • Deterministic tests cover a worktree link opened during an older Git read, with fresh listings that include or omit the worktree. Chromium confirmed the exact worktree ID in the submitted request.
  • Composer positions stayed stable across Git loading in Chromium at 390, 688, and 1365 px and on the Android API 36 emulator.
  • GitHub CI runs the full repository gate.

Copy audit

  • Mobile uses “Choose a project” when the selection is missing. “No project” remains the name of the scratch option.
  • Missing selections explain what is unavailable beside the corresponding picker.
  • The narrow renderer uses “Checkout” for “Current checkout” and preserves the full accessible label. Long branch labels preserve the full value in the overflow hint.
  • The workspace loading message gives way to an accessible skeleton in a reserved slot. Send stays disabled during the read. Errors and Retry stay available.

@nixuuu
nixuuu marked this pull request as ready for review November 30, 2026 09:20
@nixuuu
nixuuu enabled auto-merge (squash) November 30, 2026 09:20
@nixuuu
nixuuu merged commit ed104f5 into dev Nov 30, 2026
46 of 49 checks passed
@nixuuu
nixuuu deleted the fix/thread-project-branch-loading branch November 30, 2026 09:53
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