Skip to content

fix(orca): P5 fallback - resolve parent via git-common-dir or basename - #549

Closed
Andresito11-cpu wants to merge 1 commit into
kunchenguid:mainfrom
Andresito11-cpu:fix/orca-p5-fallback
Closed

Andresito11-cpu wants to merge 1 commit into
kunchenguid:mainfrom
Andresito11-cpu:fix/orca-p5-fallback

Conversation

@Andresito11-cpu

Copy link
Copy Markdown

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.

@Andresito11-cpu
Andresito11-cpu deleted the fix/orca-p5-fallback branch July 14, 2026 08:00
@el-mango-cosmico

Copy link
Copy Markdown

What

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.

Tests

  • Targeted: StatusBadge, DescribeQueue, describe — pass
  • 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.

Refs #548

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.

2 participants