Repository navigation
Fix #12665: omarchy-menu-file returns 0 files when ~/Pictures/~/Videos are symlinks (transco - #13018
yashbijlani wants to merge 2 commits into
Conversation
…/Videos are symlinks
Extend the existing LangGraph workflow (no new orchestration, no second state machine) with a deterministic PR/CI lifecycle on top of the verified push. PR creation - Publish flow: gate -> commit -> push -> verify remote ref -> create/reuse PR. A PR is never opened unless git ls-remote confirms the pushed branch at the expected commit. - Dynamic head/base resolution: base is always the issue repository + default branch; fork pushes use <owner>:<branch> (owner from the configured push target / authenticated login, never hardcoded). Existing PRs are reused; repository PR templates are used and never overwritten. - Lives behind the existing GitHub client; sandbox still never sees the token. CI monitoring and classification - github/ci.py normalizes statuses + check-runs into a stable shape, polls with bounded interval/wait/settle, and classifies failures deterministically: CODE/TEST/BUILD/UNKNOWN are repairable; DEPENDENCY/ENVIRONMENT are terminal environment states; RESOURCE/NETWORK/PERMISSION/CI_INFRASTRUCTURE/FLAKY never reach the coding agent (bounded, code-free retry for flaky/infra). - A commit with zero checks is settled and recorded as CI_UNKNOWN, not hung. CI repair - agents/ci_repair.py + build_ci_repair_prompt: bounded repair in the same repository/sandbox, narrow local reproduction first, then the existing TEST -> REVIEW -> push-gate -> PUSH -> update-PR path. Repair history records parent/new SHA, reason, tests and review. The orchestrator owns the bound. Lifecycle state, resume and observability - Explicit JobStatus states (PR_*, CI_*, MERGE_READY) and persisted mode flags; resume_entry() maps persisted state to the right graph entry so an interrupted run continues without re-implementing or opening a second PR. The push gate now gates an already-committed branch on resume. - New canonical events; observability/metrics.py + 'contributor metrics' for PR/CI rates. Never auto-merges: stops at MERGE_READY. Tests: 317 passing, including a mocked end-to-end issue -> PR -> CI fail -> repair -> CI pass -> MERGE_READY path, resume/reuse, classification, polling and security-boundary coverage. Validated by a real PR (omacom/omarchy#13018).
|
Thanks for tackling the symlink media folders case (#12665). Blocking: the comment says the goal is descending into starting-point symlinks (
The current tests only cover starting-point symlinks, which Suggested change: # Follow command-line symlinks only (~/Pictures -> /mnt/...), not nested links.
set +o pipefail
find -H "${find_args[@]}" 2>/dev/null | sort -rn | cut -f2- | head -n 500 |
omarchy-cmd-select "$label" -- --width 800 --maxheight 500 "$@" || status=$?
set -o pipefail
exit "${status:-0}"Also update the comment ( Happy to re-review once that lands. |
…/Videos are symlinks
|
Thanks for the detailed review! Fixed this in the latest commit. Switched find -L to find -H so starting-point symlinks are followed without following nested symlinks. The existing starting-point symlink behavior and 500-item cap are preserved. Happy to have you re-review it. |
|
Re-reviewed. Switching to |
|
Thanks for taking on #12665. Three open pull requests fix it: #12669 (opened 2026-09-20), this one (2026-09-23) and #13197 (2026-09-25). All three use When fixes are this close, the oldest one keeps the credit, and a newer one wins only if it is clearly better. #12669 is the oldest, and it also covers more of the issue. This was a source review only: I compared the three diffs against Choosing which fix lands is up to the maintainer, so this pull request is waiting on them. #13197 already has the |
Fixes #12665
Summary
Resolve issue: omarchy-menu-file returns 0 files when
/Pictures//Videos are symlinks (transcode panel never opens)Changes
bin/omarchy-menu-filetest/shell.d/menu-file-test.shTests executed
bash test/shell.d/menu-file-test.sh→ PASS (exit 0, 1.0s)Environment
Known limitations
This PR was created with AI assistance (autonomous-contributor + OpenCode). Human review requested.