Fix: restore worktree sidebar threads and delete flows - #16
Open
xIGBClutchIx wants to merge 1 commit into
Open
Conversation
- route local worktree requests through pocodex - discover codex-home worktrees and keep wsl sidebar threads visible
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This restores missing local worktree threads in the sidebar and fixes settings-triggered worktree deletion so Pocodex once again shows and manages Codex worktrees the way the current desktop bundle expects.
What changed
codex-worktrees,resolve-worktree-for-thread, anddelete-worktreerequests through Pocodex instead of relying on unsupported direct bundle worker pathsvscode://codex/worktree-deletehandling in the app-server bridge and normalize settings-targeted deletes before forwarding them to the git workerRoot cause
codexHomepath, which caused valid/root/.codex/worktrees/...threads to disappear when Pocodex surfaced a Windows-side Codex home in WSLvscode://codex/worktree-delete, but Pocodex did not implement that host fetch routeImpact
Failed to delete worktreeValidation
pnpm run check:commitpnpm vitest run test/app-server-bridge-worktree-delete.test.ts test/codex-home.test.ts test/app-server-bridge-host-data.test.ts test/codex-desktop-git-worker.test.ts test/request-id.test.ts --maxWorkers=1/settings/worktreesshowed the previously missing worktrees, settings delete removed a worktree without the failure toast, andhttp://127.0.0.1:8806/local/019d9486-c2e6-7eb2-9f38-892730afdb09showed the missing summary worktree thread in the left sidebar