Skip to content

Conversation

@dbpolito
Copy link
Contributor

@dbpolito dbpolito commented Jan 3, 2026

Root Cause: The enrich function in packages/app/src/context/layout.tsx was matching projects by comparing worktree paths. When a user picks a directory (e.g., /Users/user/project/src), but the server resolves the git root to a different path (e.g., /Users/user/project), the paths don't match. Without a match, the project's id wasn't populated, and the handleSubmit function returned early when !props.project.id.

Fix: Modified the enrich function to first look up the child store for the directory (which contains the server-resolved project ID from project.current()), and use that ID to find the project metadata. Only falls back to worktree matching if the ID isn't available yet.

@adamdotdevin adamdotdevin merged commit c7c1790 into anomalyco:dev Jan 3, 2026
1 of 2 checks passed
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