You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(orca): P5 fallback - resolve parent via git-common-dir or basename - #549
When the orca backend passes --parent-path that doesn't exactly match an orca-registered cwd, the previous P5 register returned rc=4 and the worktree silently fell under orca's 'Hiding N discovered worktree' gate.
Add a three-step fallback chain in resolve_parent_session_uuid: exact match, git-common-dir match, basename match.
The Describe queue badge (Analyzing, Waiting N, Done, Failed) on a picture tile is now one shared StatusBadge component. It stays inside its own tile: one line, never wider than the tile (max-width: calc(100% - 8px)), and above the picture. On tiles narrower than 120px (measured from the tile, not the viewport) it shows a compact token that fits whole: a dot for Analyzing, the queue number for Waiting N, ✓ for Done, ! for Failed. Wider tiles keep the 16px word label. The full state is the aria-label and title.
Styles are inline on the component so there is one definition and the layout rules are unit-tested.
Files
ui/src/parts/StatusBadge.tsx (new): the shared badge and its styles
ui/src/parts/StatusBadge.test.tsx (new): label/title, compact tokens on a 46px tile for each state (whole token, no ellipsis), and the layout rules
ui/src/parts/Describe.tsx: uses StatusBadge; full state per tone as title
ui/src/parts/Describe.module.css: old .badge rules removed
Not changed here
Other absolutely positioned overlays in the app that could bleed the same way if their labels grow (not audited for overflow, not touched): DeleteUpload (×), ClipDownload (▶ length), RecentUploads Crop button, HistoryStrip ✕, RadialMenu count, ResultStage/PhotoBox.
Full frontend suite (vitest --maxWorkers=2), after the compact-token change: 150 files, 1562 tests — pass
tsc --noEmit clean; npm run check reports only pre-existing warnings
Backend pytest -q: 1646 passed, 1 skipped
Phone 390x844 and desktop 1440x900 screenshots not captured: the fake backend (scripts/shots/mock-backend.cjs) has no running or waiting Describe jobs and seeding them needs fixture and polling changes, so the layout is covered by the unit-level test only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
When the orca backend passes --parent-path that doesn't exactly match an orca-registered cwd, the previous P5 register returned rc=4 and the worktree silently fell under orca's 'Hiding N discovered worktree' gate.
Add a three-step fallback chain in resolve_parent_session_uuid: exact match, git-common-dir match, basename match.
Follows #547.
Tests: 16 assertions in tests/fm-mod-orca-ui.test.sh, all green.