anomalyco / anomalyco/opencode
first prompt into a new workspace hangs in the new layout
@Brendonovich is already working on this.
Since Jul 31, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
describe the bug
in the new layout, the first prompt sent to a freshly created workspace (worktree) hangs on thinking forever. the worktree is created and populated correctly on disk, but the prompt never reaches the server.
root cause
the only worktree.ready / worktree.failed event listener lives in the legacy layout (packages/app/src/pages/layout.tsx). when the new layout is active that listener never mounts, so WorktreeState stays pending and waitForWorktree in prompt-input/submit.ts blocks the prompt until its 5 minute timeout.
same class of bug as the new worktree shortcut that had to be re-registered in the new layout.
steps to reproduce
- enable the new layout
- on the new session page select new workspace
- type a prompt and send
message renders, thinking shimmer spins, server log shows the session created but no prompt request.
screenshots
(screenshots to be added)
environment
- desktop app, dev build, new layout
- macos
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.