anomalyco / anomalyco/opencode

first prompt into a new workspace hangs in the new layout

Open
#39,779 2 comments 0 reactions 1 assignee View on GitHub

@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

  1. enable the new layout
  2. on the new session page select new workspace
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.