GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(app): make the worktree step's back control the search-field arrow by usrnk1 · Pull Request #66090 · anomalyco/opencode

Conversation

@usrnk1

@usrnk1 usrnk1 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

In the new-session location dialog's worktree step, "Run session in" was a <button aria-label="Back to projects"> inside the role="listbox" (added in #59397). That caused three problems:

  • The first Tab from the search field landed on it, and MenuScroll cut off the top of its 2px outset focus ring.
  • It was a Tab stop inside an aria-activedescendant combobox, where focus stays in the search field.
  • A button inside a listbox is invalid structure, and its visible text didn't match its accessible name (WCAG 2.5.3).

The worktree step now uses the same back control as the servers and other-projects steps: the arrow-left button in the search field, with the "Back to projects" tooltip. "Run session in" is now a plain group heading. It labels its role="group" through aria-labelledby, so the listbox structure is valid. The unused .new-session-location-back styles and their components-lab focus-ring entry are removed. No new strings.

Keyboard back still works as before: Escape, Backspace in an empty search, and ← at the start of the text. Clicking the heading no longer goes back; the pointer path is the arrow in the search field.

Tests

  • e2e/regression/new-session.spec.ts: the two location-dialog keepers now check the worktree step's heading, its group label and the search-field arrow. The checkout-branch case also checks that Tab from the search field doesn't land on the heading, and that the arrow returns to the projects step. Both cases fail without the fix and pass with it; the whole file passes (41/41, built mode).
  • bun typecheck and bun run lint:changed origin/dev pass.
  • Checked by hand in the app-dialog-new-session-location--worktrees story: Tab, Shift+Tab (goes to the arrow), Escape, Backspace, ←, clicking the arrow, and clicking the heading (does nothing).

Screenshots (worktree step, light, after Tab)

Before:

After:

No feature flag: this is a bug fix. Only packages/app changed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@usrnk1
fix(app): make the worktree step's back control the search-field arrow
9007cba
@github-actions github-actions Bot added the contributor label Nov 24, 2026
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix works. On the base, pressing Tab from the worktree search field lands on the "Run session in" button and the top of its focus ring is cut off. With this change it's a plain heading and the back arrow in the search field steps back. I checked this with the two updated e2e cases, which pass here and fail on the base, and with screenshots taken after Tab on each. typecheck:tsc and the app's unit tests pass.

The code looks sound. Only the worktree view sets titleKey, so switching the arrow's condition to ownsEscape affects that step alone. The new role="group" wraps the options and its heading labels it, so the listbox structure is valid. The heading looks the same as before, because the scoped .command-palette-group-title rule already set its size and colour.

Public API: unchanged (app UI only).

Before

After

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@usrnk1
usrnk1 merged commit 678621a into dev Nov 24, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@usrnk1
usrnk1 deleted the location-back-heading branch November 24, 2026 12:33
@opencodejr opencodejr Bot mentioned this pull request Nov 24, 2026
fix(app): keep focus in the worktree search while hovering rows #66092
Merged
This was referenced Nov 25, 2026
docs: check Tab and Shift+Tab when focus behaviour changes #66338
Merged
fix(app): show keyboard focus in the worktree picker and What's New #66340
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@usrnk1
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.