Skip to content

Fix new-thread machine preference persistence - #3457

Merged
SawyerHood merged 1 commit into
mainfrom
bb/the-app-doesn-t-seem-to-rememember-the-machine-a-thr_bj5cyxuuu3
Sep 11, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/the-app-doesn-t-seem-to-rememember-the-machine-a-thr_bj5cyxuuu3

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The new-thread composer persisted the environment provider but kept its selected machine only in component state. Returning to the page or reloading therefore restored the provider on the primary machine. A picked machine could also carry over when changing projects.

What changed

Persist the selected existing machine per project using the same tab-local storage behavior as the other composer preferences. Restore it alongside the environment provider, reset transient selections when changing projects, and retain the existing fallback for deleted machines or machines without the required project checkout. Plugin composers keep their selections separate.

How you verified

  • 49 focused tests passed, including remount/reload persistence, project switching, unusable-machine fallback, tab isolation, and plugin-composer isolation.
  • pnpm exec turbo run typecheck lint --filter=@bb/app passed (lint: no errors).
  • Focused Vitest tests ran directly after the Turbo test precheck reported unrelated stale generated PWA icons; a Node 22 retry was blocked by native-module setup exiting 137.
  • Live UI verification was blocked because the dev launcher requires lsof, which is unavailable on this host.
  • Secret-model scan: working tree and push range clean, zero matches.
  • SlopCop skipped at the user's request.

AGENT GENERATED

@SawyerHood
SawyerHood merged commit 8d32c61 into main Sep 11, 2026
16 checks passed
@SawyerHood
SawyerHood deleted the bb/the-app-doesn-t-seem-to-rememember-the-machine-a-thr_bj5cyxuuu3 branch September 11, 2026 01:03
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