fix(loops): backfill directory from root session on create #185
No reviewers
Labels
No labels
backend
bug
chore
duplication
effort:complex
effort:medium
effort:trivial
enhancement
frontend
fullstack
priority:high
ready-for-agent
refactor
security
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dries/ocman!185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/loop-empty-directory"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
create_looptool makes it optional) was invisible in the project-scoped Loops sidebar (which filters by directory) and failedprompt_root/spawnactions with an opaque "error" — the action had no directory to launch OpenCode in.Service.Createnow backfills the directory from the root session via a newSessionDirResolverdep when none is supplied. REST and MCP both route throughCreate, so both paths are covered.Testing
go test ./internal/loops/ ./internal/server/ ./internal/mcp/TestCreate_BackfillsDirectoryFromRootSession,TestCreate_KeepsExplicitDirectoryCoverage ratchet: ✅ pass
Tolerance: -0.1%. Baseline stored on
gh-pages.