Skip to content

tui3: a shell line from Home is recorded as a shell line in tests again - #2644

Merged
AbirAbbas merged 2 commits into
devfrom
fix/home-bash-selected-project
Nov 14, 2026
Merged

AbirAbbas merged 2 commits into
devfrom
fix/home-bash-selected-project

Conversation

@AbirAbbas

Copy link
Copy Markdown
Collaborator

The dev PR gate on #2287's merge (473b159d1) failed one test, TestUserBashHomeRunsInTheSelectedProject in internal/tui3. It fails on dev and passes on the base.

The cause is in the tests only. #2287 added a SubmitBash method to the shared switchAgent fake in idle_r9_send_test.go. That method shadowed fakeAgent.SubmitBash, which records the line in bashSent. A ! command from Home therefore reached the new conversation as a shell line but was never recorded as one.

The fix removes that method. The shared fakeAgent.SubmitBash calls the same Submit and also records the line. No product code changes.

Verification

  • go test -count=1 -run '^(TestUserBash|TestIdleOpen|TestIdleRelease|TestR6_|TestStorage|TestContinueCard|TestFirstEnterWaitsForOwnershipReading|TestSettings|TestSwitch)' ./internal/tui3/ passes. That covers the failing test and every test An idle chat on a paired computer can hand its hold to the relay (opt-in idle handoff) #2287 added that uses switchAgent.
  • Everything else in the touched tui3 leg on the merge commit was green, so this was the only failure in that leg.

🤖 Generated with Claude Code

AbirAbbas and others added 2 commits November 14, 2026 10:42
#2287 added a SubmitBash method to the shared switchAgent test fake. It
shadowed fakeAgent.SubmitBash, which records the line in bashSent, so
TestUserBashHomeRunsInTheSelectedProject saw the command arrive as a plain
send and failed on dev. Removing it restores the shared method, which calls
the same Submit and also records the line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AbirAbbas
AbirAbbas merged commit 9eb0b51 into dev Nov 14, 2026
1 check passed
@AbirAbbas
AbirAbbas deleted the fix/home-bash-selected-project branch November 14, 2026 15:43
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