Repository navigation
Conversation
There was a problem hiding this comment.
✅ All stages passed (2 Minor)
Review mode: initial
Requirement — Pass
Users who frequently switch machines on phones benefit from direct access to machine filtering. A default-off setting preserves the compact header and keeps machine choices available in Sort and filter.
Evidence
- Issue #2586 describes the extra step introduced when the standalone button moved into Sort and filter.
- The base web/README.md:73 documents machine selection in Sort and filter. The PR description scopes the new control to an opt-in web display preference.
Approach — Pass
Reusing the existing machine menu and selection state keeps both entry points synchronized. The existing toolbar and settings transfer mechanisms provide suitable integration points.
Evidence
- web/src/components/SessionList.tsx:3553 and web/src/components/SessionList.tsx:3567 pass the same machine choices, selected value, and setter to both menus.
- web/src/hooks/useShowMobileMachineFilter.ts:4 defaults the preference to off. web/src/lib/settingsTransfer.ts:45 includes it in the existing export and import list.
Code — Reviewed
The full fixed-head diff was reviewed. Two responsive layout defects affect access to the filter controls.
- [Minor] The shortcut can push Sort and filter into More —
web/src/components/SessionList.tsx:3564 - [Minor] The shortcut and desktop chips use different breakpoints —
web/src/components/SessionList.tsx:171
Testing
Not run (automation; PR code execution is prohibited).
- The author reports a passing web typecheck, 47 focused web tests, and three Chromium cases at 320px, 393px, and desktop. The fixed-head unit-web and browser checks were still in progress when inspected.
- The fixed merge-base diff passed git diff --check. PR code and tests were not executed during this review.
- The added browser cases do not cover a long collapsed search query at increased HAPI font size or a non-default browser font size near the mobile breakpoint.
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed (1 Minor)
Review mode: follow-up after new commits
Requirement — Pass
An opt-in mobile shortcut reduces the steps needed to switch machines. Defaulting it off preserves the compact header, and Sort and filter continues to offer machine selection.
Evidence
- Issue #2586 describes the extra tap introduced when standalone machine filtering moved into Sort and filter.
- The base web/README.md:73 documents machine selection in the combined menu. The PR description scopes the shortcut to an opt-in display preference.
Approach — Pass
Reusing the existing machine menu and filter state keeps both controls synchronized. The display preference fits the existing settings transfer mechanism.
Evidence
- web/src/components/SessionList.tsx:3553 and web/src/components/SessionList.tsx:3567 pass the same machine choices, selection, and setter to both menus.
- web/src/hooks/useShowMobileMachineFilter.ts:4 defaults the shortcut off, and web/src/lib/settingsTransfer.ts:45 includes the preference in export and import.
Code — Reviewed
The full fixed-head diff was reviewed. The shortcut now follows the desktop chips’ breakpoint. A narrow range of toolbar widths still lets the shortcut move Sort and filter into More.
- [Minor] The shortcut can still move Sort and filter into More —
web/src/components/SessionList.tsx:3564
Testing
Not run (automation; PR code execution is prohibited).
- The fixed merge-base diff passed git diff --check. This review did not execute PR code or tests.
- The author reports a passing web typecheck, 47 focused web tests, and five browser cases. At the last fixed-head check, unit-web and browser were in progress.
- The browser CI job’s explicit spec list omits e2e/session-list-filter.spec.ts, so that job does not exercise the new responsive cases.
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed (1 Minor)
Review mode: follow-up after new commits
Requirement — Pass
An opt-in mobile shortcut saves a tap for users who frequently switch between machines. Defaulting it off preserves the compact toolbar, and Sort and filter remains available in either setting.
Evidence
- Issue #2586 describes the extra tap after machine selection moved into Sort and filter.
- The base web/README.md:73 documents the combined menu, and the PR description scopes the shortcut to a Display preference.
Approach — Pass
Reusing the existing machine menu, shared filter state, and toolbar overflow keeps both controls synchronized and gives the toolbar a fallback on narrow screens.
Evidence
- web/src/components/SessionList.tsx:3555 and web/src/components/SessionList.tsx:3569 use the same machine choices, selected machine, and setter.
- web/src/hooks/useShowMobileMachineFilter.ts:4 defaults the preference off, and web/src/lib/settingsTransfer.ts:45 includes it in settings transfer.
Code — Reviewed
The full fixed-head diff addresses the prior finding by reserving space for Sort and filter. A long search can still push the new shortcut into More when the query could shrink enough to keep it inline.
- [Minor] A long search can hide the shortcut even when it could fit —
web/src/components/SessionList.tsx:3260
Testing
Not run (automation; PR code execution is prohibited).
- The fixed merge-base diff passed git diff --check. No PR code or tests were executed during this review.
- On the fixed head, unit-web and core passed, and browser CI was still running at the last check. The browser workflow now includes e2e/session-list-filter.spec.ts.
- The new 364px browser case checks Sort and filter with the preference off and on. It does not check whether the shortcut itself remains inline.
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed (2 Minor)
Review mode: follow-up after new commits
Requirement — Pass
A dedicated mobile button saves a tap for users who frequently switch machines. Making it opt-in keeps the compact header as the default and preserves machine selection in Sort and filter.
Evidence
- Issue #2586 describes the extra tap after machine selection moved into Sort and filter. #2586
- The base web/README.md:73 documents the combined menu. The fixed PR description scopes the shortcut to a Display preference.
Approach — Pass
Reusing the machine menu and filter state keeps both entry points synchronized. The existing More menu provides a fallback on narrow layouts.
Evidence
- web/src/components/SessionList.tsx:3564 and web/src/components/SessionList.tsx:3578 pass the same machine choices, selected value, and setter to both controls.
- web/src/hooks/useShowMobileMachineFilter.ts:4 defaults the preference off, and web/src/lib/settingsTransfer.ts:45 includes it in settings export and import.
Code — Reviewed
The new reservation addresses the prior 364px case. A narrower layout can still put the shortcut in More unnecessarily, and the combined font-scale test omits the HAPI font increase.
- [Minor] Reserving More can hide a shortcut that fits inline —
web/src/components/SessionList.tsx:3267 - [Minor] The 320px browser test never applies the HAPI font scale —
e2e/session-list-filter.spec.ts:146
Testing
Not run (automation; PR code execution is prohibited).
- The fixed merge-base diff passed
git diff --check. No PR code or tests were executed during this review. - GitHub reported success for unit-web, core, unit-cli, wrapper-parity, integration, and windows-codex-mcp on the fixed head. Browser CI was still in progress.
- The 364px browser case now asserts that the shortcut and Clear search remain visible with a long query.
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed (2 Minor)
Review mode: follow-up after new commits
Requirement — Pass
An opt-in mobile shortcut saves a tap for users who frequently switch machines while preserving the compact default toolbar and machine selection in Sort and filter.
Evidence
- Issue #2586 describes the extra tap after machine selection moved into Sort and filter. #2586
- The base web/README.md:73 documents the combined menu, and the fixed PR description specifies a Display preference that defaults off.
Approach — Pass
Reusing the existing machine menu and filter state keeps both controls synchronized. The toolbar's existing overflow mechanism handles narrow layouts.
Evidence
- Both controls receive the same machine choices, selected value, and setter. web/src/components/SessionList.tsx:3574 and web/src/components/SessionList.tsx:3588
- The preference defaults off and uses the existing settings transfer allowlist. web/src/hooks/useShowMobileMachineFilter.ts:4 and web/src/lib/settingsTransfer.ts:45
Code — Reviewed
The current head adds coverage for the prior 334px case and applies both font increases in the 320px case. The search width calculation still truncates collapsed queries unnecessarily.
- [Minor] The shortcut hides query text even when the toolbar has room —
web/src/components/SessionList.tsx:3279 - [Minor] The default-off setting still changes search sizing —
web/src/components/SessionList.tsx:3270
Testing
Not run (automation; PR code execution is prohibited).
- The fixed merge-base diff passed git diff --check. No PR code or tests were executed during this review.
- GitHub reported success for core, unit-web, unit-cli, wrapper-parity, integration, and windows-codex-mcp on the fixed head. Browser CI was still in progress.
- The new browser cases check control visibility and reachability. They do not check how much of the collapsed query remains visible.
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed (1 Minor)
Review mode: follow-up after new commits
Requirement — Pass
An opt-in shortcut saves a tap for mobile users who frequently switch machines. Sort and filter still provides machine selection, and the shortcut defaults off.
Evidence
- Issue #2586 describes the extra tap and requests a dedicated mobile shortcut. #2586
- The base documentation identifies Sort and filter as the existing machine selection entry point. web/README.md:73
Approach — Pass
Reusing the machine menu and existing filter state keeps both controls synchronized. The toolbar can move the shortcut into More when space is tight.
Evidence
- Both controls use the same machine choices, selected value, and setter. web/src/components/SessionList.tsx:3576 and web/src/components/SessionList.tsx:3590
- The preference defaults off and uses the existing settings transfer allowlist. web/src/hooks/useShowMobileMachineFilter.ts:4 and web/src/lib/settingsTransfer.ts:45
Code — Reviewed
The default-off search sizing is restored, and the new 440px test checks that query text stays visible when space is ample. Query text can still disappear at the width where all toolbar actions first fit.
- [Minor] A wider toolbar can hide the collapsed search query —
web/src/components/SessionList.tsx:3269
Testing
Not run (automation; PR code execution is prohibited).
- The fixed merge-base diff passed git diff --check. No PR code or tests were executed during this review.
- GitHub reported success on the fixed head for core, integration, unit-cli, unit-web, wrapper-parity, and windows-codex-mcp. Browser CI was still in progress.
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed (1 Minor)
Review mode: follow-up after new commits
Requirement — Pass
An opt-in mobile shortcut saves a tap for users who frequently switch machines. Sort and filter continues to offer machine selection with the preference on or off.
Evidence
- Issue #2586 describes the extra tap after the standalone button was removed. #2586
- The base documentation lists Sort and filter as the combined entry point for machine selection (web/README.md:73).
Approach — Pass
Both controls share the existing machine filter state. The shortcut uses the toolbar's overflow priorities, and the preference uses the existing settings transfer format.
Evidence
- Both menus receive the same machine choices, selected value, and setter (web/src/components/SessionList.tsx:3568 and web/src/components/SessionList.tsx:3582).
- The preference defaults off and is included in the settings transfer allowlist (web/src/hooks/useShowMobileMachineFilter.ts:4 and web/src/lib/settingsTransfer.ts:45).
Code — Reviewed
The updated width calculation reserves query text before admitting another toolbar action, addressing the previous review finding. The shortcut has one keyboard dismissal issue when opened from More.
- [Minor] Escape closes More along with the machine filter —
web/src/components/SessionList.tsx:3582
Testing
Not run (automation; PR code execution is prohibited).
- The fixed merge-base diff passed git diff --check. No PR code or tests were executed during this review.
- On the fixed head, GitHub reported success for core, integration, unit-cli, unit-web, wrapper-parity, and windows-codex-mcp. Browser CI was still in progress.
- The browser spec tests the shortcut directly and checks that it appears inside More. It does not open the machine menu from More and verify Escape or focus restoration.
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed (1 Minor)
Review mode: follow-up after new commits
Requirement — Pass
An opt-in shortcut gives mobile users who frequently switch machines direct access from the session list header when space allows. Sort and filter remains available in either setting.
Evidence
- Issue #2586 describes the extra tap after the standalone button was removed and requests an opt-in shortcut. #2586
- The base web guide documents machine selection inside Sort and filter at web/README.md:73.
Approach — Pass
Both controls share the existing machine selection. The preference defaults off, and the toolbar can move the shortcut into More to preserve room for the search query.
Evidence
- Both menus receive the same machine choices, active value, and setter at web/src/components/SessionList.tsx:3577 and web/src/components/SessionList.tsx:3591.
- The toolbar reserves query text before allocating actions at web/src/components/sessionToolbarShed.ts:129.
- The preference defaults off at web/src/hooks/useShowMobileMachineFilter.ts:4 and uses the settings transfer allowlist at web/src/lib/settingsTransfer.ts:45.
Code — Reviewed
The follow-up adds anchor tracking during More reflows and restores focus to the trigger before Tab traversal. One overlay lifecycle issue remains when browser history navigation hides the session list.
- [Minor] The machine filter can stay open over chat after history navigation —
web/src/components/MachineFilterBar.tsx:381
Testing
Not run (automation; PR code execution is prohibited).
- The fixed merge-base diff passed git diff --check. No PR code was executed during this review.
- For head 65911b9, GitHub reported success for core, unit-web, unit-cli, integration, wrapper-parity, and windows-codex-mcp. The browser check was still running when checked.
- The added Chromium spec covers Tab traversal, touch dismissal, desktop resizing, and live More reflow. It does not cover browser history navigation while the shortcut is open.
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed (1 Minor)
Review mode: follow-up after new commits
Requirement — Pass
An opt-in mobile shortcut saves a tap for users who frequently switch machines. Sort and filter remains available in either setting.
Evidence
- Issue #2586 describes the extra tap after the dedicated button was removed and asks for an opt-in shortcut. #2586
- The base web guide documents machine selection inside Sort and filter at web/README.md:73.
Approach — Pass
Both controls share the existing machine selection. The shortcut defaults off and moves into More when the toolbar needs to preserve room for search.
Evidence
- Both controls receive the same active machine and setter at web/src/components/SessionList.tsx:3595 and web/src/components/SessionList.tsx:3612.
- When the shortcut is enabled, the toolbar reserves space for query text before allocating actions at web/src/components/SessionList.tsx:3299.
- The preference defaults off at web/src/hooks/useShowMobileMachineFilter.ts:4 and participates in settings transfer at web/src/lib/settingsTransfer.ts:45.
Code — Reviewed
The follow-up closes the machine menu when history navigation hides the sidebar. One keyboard interaction still allows the two filter menus to compete for focus.
- [Minor] Both filter menus can intercept the same arrow key —
web/src/components/SessionList.tsx:3608
Testing
Not run (automation; PR code execution is prohibited).
- git diff --check passed for the fixed merge-base diff. No PR code was executed during this review.
- For head 52a37ab, GitHub reported success for core, unit-web, unit-cli, integration, wrapper-parity, and windows-codex-mcp. The browser check was still running when checked.
- The added Chromium cases cover history navigation and Tab traversal from the machine menu. They do not cover opening the shortcut by keyboard while Sort and filter is already open.
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed (1 Minor)
Review mode: follow-up after new commits
Requirement — Pass
An opt-in shortcut saves a tap for mobile users who frequently switch machines. The combined Sort and filter menu continues to offer machine selection in either setting.
Evidence
- Issue #2586 describes the extra tap and requests a shortcut that defaults off. #2586
- The base web guide documents machine selection inside Sort and filter at web/README.md:73.
Approach — Pass
Both controls share the existing machine selection. The shortcut uses the toolbar’s existing More menu when space is tight, and the preference uses the existing settings transfer mechanism.
Evidence
- Both controls receive the same machine value and setter at web/src/components/SessionList.tsx:3602 and web/src/components/SessionList.tsx:3621.
- The toolbar reserves space for visible search text at web/src/components/SessionList.tsx:3297 and assigns the shortcut an overflow priority at web/src/components/SessionList.tsx:3613.
- The preference defaults off at web/src/hooks/useShowMobileMachineFilter.ts:4 and is included in settings transfer at web/src/lib/settingsTransfer.ts:45.
Code — Reviewed
The pinned head closes the previous filter menu when opening the other one, resolving the prior arrow-key conflict. One focus issue remains when the toolbar moves the shortcut into More.
- [Minor] Moving the open shortcut into More drops keyboard focus —
web/src/components/SessionList.tsx:3709
Testing
Not run (automation; PR code execution is prohibited).
- The fixed merge-base diff passed git diff --check. No PR code was executed during this review.
- For head 15ca2ee, GitHub reported success for core, unit-web, unit-cli, integration, wrapper-parity, and windows-codex-mcp. The browser check was still running. https://github.com/tiann/hapi/actions/runs/45386758228
- The browser spec covers keyboard switching in both placements and repositioning while the shortcut stays in More. It does not cover focus when the shortcut moves between placements.
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed (1 Minor)
Review mode: follow-up after new commits
Requirement — Pass
An opt-in mobile shortcut saves a tap for users who frequently switch machines. The compact header remains the default, and machine selection stays available in Sort and filter.
Evidence
- Issue #2586 describes the extra tap and requests a dedicated button that defaults off. #2586
- The base web guide documents machine selection inside Sort and filter at web/README.md:73.
Approach — Pass
Both controls use the same machine selection. The shortcut uses the existing toolbar overflow when space is tight, and the preference follows the existing settings transfer format.
Evidence
- Both controls receive the same selection and setter at web/src/components/SessionList.tsx:3616 and web/src/components/SessionList.tsx:3635.
- The toolbar reserves space for query text and assigns the shortcut an overflow priority at web/src/components/SessionList.tsx:3311 and web/src/components/SessionList.tsx:3626.
- The preference defaults off at web/src/hooks/useShowMobileMachineFilter.ts:4 and is included in settings transfer at web/src/lib/settingsTransfer.ts:45.
Code — Reviewed
The pinned head adds focus recovery and browser coverage for the previous resize finding when a machine option is focused. One keyboard focus case remains.
- [Minor] Moving the focused shortcut into More drops keyboard focus —
web/src/components/MachineFilterBar.tsx:287
Testing
Not run (automation; PR code execution is prohibited).
- The fixed merge-base diff passed git diff --check. Verification during this review was static.
- For head 0317fc8, GitHub reported success for core, unit-web, unit-cli, integration, wrapper-parity, and windows-codex-mcp. The browser check was in progress. https://github.com/tiann/hapi/actions/runs/45388424646
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed
Review mode: follow-up after new commits
Requirement — Pass
An opt-in shortcut saves a tap for mobile users who frequently switch machines. The header stays compact by default, and Sort and filter continues to offer machine selection.
Evidence
- Issue #2586 describes the extra tap and requests a dedicated button that defaults off. #2586
- The base web guide documents machine selection inside Sort and filter at web/README.md:73.
Approach — Pass
The shortcut shares the existing filter state and uses More when the toolbar needs space. The preference uses the existing settings export and import format.
Evidence
- Both controls receive the same selection and setter at web/src/components/SessionList.tsx:3616 and web/src/components/SessionList.tsx:3635.
- The toolbar reserves space for query text and gives Sort and filter priority over the shortcut at web/src/components/SessionList.tsx:3310 and web/src/components/SessionList.tsx:3626.
- The preference defaults off at web/src/hooks/useShowMobileMachineFilter.ts:4 and is included in settings transfer at web/src/lib/settingsTransfer.ts:45.
Code — Reviewed
The full diff at 0eba3ea yielded no actionable findings. The prior focus finding is addressed by checking the closed trigger on unmount, and the browser spec covers focus recovery in both directions with the menu open and closed.
No reportable code issues found.
Testing
Not run (automation; PR code execution is prohibited).
- The fixed merge-base diff passed git diff --check. Verification during this review was static.
- For 0eba3ea, GitHub reported success for core, unit-web, unit-cli, integration, wrapper-parity, and windows-codex-mcp. The Chromium browser check was still in progress. https://github.com/tiann/hapi/actions/runs/45391931684
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed
Review mode: follow-up after new commits
Requirement — Pass
A default-off shortcut saves a tap for mobile users who frequently switch machines. Sort and filter remains available in both settings.
Evidence
- Issue #2586 describes the extra tap and requests an optional shortcut. #2586
- The base web guide documents machine selection inside Sort and filter at web/README.md:73.
Approach — Pass
The shortcut uses the existing machine selection state and toolbar overflow. This keeps both filter controls synchronized and lets the toolbar prioritize Sort and filter when space is tight.
Evidence
- Both controls receive the same selection and setter. web/src/components/SessionList.tsx:3466 and web/src/components/SessionList.tsx:3486
- Toolbar allocation reserves space for collapsed query text and keeps Sort and filter ahead of the shortcut. web/src/components/SessionList.tsx:3436, web/src/components/SessionList.tsx:3477, and web/src/components/sessionToolbarShed.ts:138
- The preference defaults off and uses the existing settings transfer format. web/src/hooks/useShowMobileMachineFilter.ts:4 and web/src/lib/settingsTransfer.ts:47
Code — Reviewed
The full 19-file merge-base diff at 5a73340 yielded no actionable findings. The browser spec covers focus recovery when the shortcut moves between the toolbar and More, with the menu open and closed.
No reportable code issues found.
Testing
Not run (automation; PR code execution is prohibited).
- The fixed merge-base diff passed git diff --check. This review was static and did not execute PR code.
- For 5a73340, GitHub reported success for core, unit-web, unit-cli, integration, wrapper-parity, and windows-codex-mcp. The Chromium browser check was in progress. https://github.com/tiann/hapi/actions/runs/46605530559
- The configured browser suite covers Chromium. Safari and WebKit keyboard and touch behavior remain unverified.
HAPI Bot
There was a problem hiding this comment.
✅ All stages passed
Review mode: follow-up after new commits
Requirement — Pass
A default-off shortcut saves a tap for mobile users who frequently switch machines. Machine selection remains available in Sort and filter in either setting.
Evidence
- Issue #2586 describes the extra tap and requests an opt-in shortcut. #2586
- The base web guide documents machine selection inside Sort and filter. web/README.md:73
Approach — Pass
Both controls share the existing machine filter state. The shortcut uses the established More overflow and preserves space for collapsed search text.
Evidence
- Both controls receive the same selection and setter, and the shortcut requires the mobile viewport and multiple machine groups. web/src/components/SessionList.tsx:3720 and web/src/components/SessionList.tsx:3728
- Toolbar allocation reserves space for query text and keeps Sort and filter at a higher priority than the shortcut. web/src/components/SessionList.tsx:3517 and web/src/components/sessionToolbarShed.ts:138
- The preference defaults off and uses the existing settings transfer format. web/src/hooks/useShowMobileMachineFilter.ts:4 and web/src/lib/settingsTransfer.ts:47
Code — Reviewed
The full 19-file merge-base diff at 80e285d yielded no actionable findings. The review was static.
No reportable code issues found.
Testing
Not run (automation; PR code execution is prohibited).
- The fixed merge-base diff passed git diff --check. No PR code or tests were executed locally.
- For 80e285d, GitHub reported success for core, unit-web, unit-cli, integration, wrapper-parity, and windows-codex-mcp. The browser check was still in progress. https://github.com/tiann/hapi/actions/runs/46829707726
- The browser suite covers Chromium. Safari and WebKit keyboard and touch behavior remain unverified.
HAPI Bot
Summary
Mobile users who switch machines frequently currently need to open Sort and filter first. Add a Display → Session list setting for a dedicated machine filter button, defaulting to off.
The shortcut shares selection with Sort and filter, appears only on mobile with multiple machines, and moves into More when space is limited. Include the preference in settings export/import and translate it into English, Simplified Chinese, Japanese, and Russian.
Closes #2586
Validation
bun run typecheck:webbunx playwright test e2e/session-list-filter.spec.ts --project=chromium: 36 passed. Includes 976 layout samples across 320–440px, 100%/130% HAPI font scales, read/unread sessions, and Browse availability. Verifies query readability, non-overlap, viewport bounds, short queries, clearing search, desktop behavior, and larger browser fonts.git diff --check