Sidebar "waiting for you" tray never appears with Claude Code (v1.14.1, macOS)
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- typescript
调研方向
Start with the PTY tail from a Claude Code permission dialog, preserving ANSI, then run the exported looksLikeQuestion function in taskStatus.ts and inspect its suppression checks at lines 373–380. If it returns false, identify the triggering check and add a regression case beside the trust-dialog tests in src/store/taskStatus.test.ts; if true, investigate the runningAgentIds filter at taskStatus.ts:491. Done means the failing path is reproduced and covered by a test.
由索引模型根据 Issue 内容生成。
描述
Summary
Running the packaged v1.14.1 build on macOS with Claude Code as the agent, the sidebar "waiting for you" tray never appeared while a task sat blocked on a permission dialog. The tray is the pinned group under the New Task button (NeedsInputTray, src/components/Sidebar.tsx:290).
I have not root-caused it. This is a write-up of what has been ruled out, so whoever picks it up doesn't repeat the elimination.
Ruled out
The feature is present in the release. src/store/sidebar-attention.ts exists at both v1.14.0 and v1.14.1 (checked via the contents API). An earlier conclusion that the feature was unmerged was wrong — it came from testing containment against a local main that was 27 commits behind upstream/main.
The setting is on. sidebarNeedsInputFirst defaults to true (src/store/core.ts:53), and persistence falls back to true when the key is absent (src/store/persistence.ts:511). The actual persisted value in ~/Library/Application Support/parallel-code/state.json on the affected machine is true, so the tray's dismiss button (Sidebar.tsx:314, which sets it to false permanently) was not the cause.
The mobile ranking path is healthy. I simulated the phone overview's ordering end to end — getTaskAttentionState → Remote_UpdateTaskStatus → main-process cache → buildAgentList → ws → sortedAgents — with the rank table extracted directly from src/remote/AgentList.tsx so the simulation can't drift from source. All checks passed: needs_input promoted to the top, stable order within a rank, error ranked below needs_input, attention surviving a bare status message, shell agents excluded, rebroadcast on every real change. Note this only clears the mobile list; the desktop tray uses a different source (below).
Remaining suspect
The desktop tray does not read the prioritized attention state. computeNeedsInputTasks builds membership from getTaskOpenQuestion(taskId) directly (src/store/sidebar-attention.ts), which requires the agent to be in the questionAgents set with an onset recorded in questionSinceByAgent (taskStatus.ts:486-501).
That set is fed by looksLikeQuestion, which suppresses detection when a main input prompt is visible (taskStatus.ts:373-380):
if (
chunkContainsAgentPrompt(readyProbe) ||
recentLines.some(looksLikeBareAgentPrompt) ||
/[❯›]\s*$/.test(lastLine) ||
looksLikeBareShellPrompt(lastLine)
) {
return false;
}
The reasoning is sound — a visible bare prompt means an earlier dialog was already answered. The open question is whether a Claude Code permission dialog can trip one of these arms while genuinely waiting. Worth noting that in src/store/taskStatus.test.ts the cases asserting true for a dialog ending in ❯ are all trust dialogs, which win via a separate trust fast path. There is no test covering a non-trust Claude Code permission dialog (Do you want to proceed? with a ❯ 1. Yes selection cursor inside a box).
Not verified
- No capture of the real terminal output. Every hypothesis about what Claude Code actually emitted while waiting is inference from source, not from a recording. This is the gap that matters most.
looksLikeQuestionwas never executed. The repo has nonode_modulesinstalled, so driving the real exported function under vitest would need a fullnpm ci. It was not run.
Suggested next steps
- Capture the PTY tail (last ~1000 chars, ANSI intact) while a Claude Code permission dialog is open and unanswered.
- Feed it to the exported
looksLikeQuestion— it is already exported and directly unit-tested, so this is a one-line test. - If it returns
false, identify which of the four suppression arms fired and add a regression case alongside the existing trust-dialog tests. - If it returns
true, move upstream to whether the agent is inrunningAgentIdsat that moment (taskStatus.ts:491filters onstore.agents[id]?.status === 'running').
Unrelated observation
On the same machine desktopNotificationsEnabled is false in state.json, so the "Task Needs Input" desktop notification would not have fired either. Separate mechanism from the tray, but it means two independent signals for the same condition were both silent — worth keeping in mind when judging severity.
- 主要语言
- TypeScript
- 星标
- 1k
- 派生
- 144
- 平均合并
- 4 天 19 小时
- 30 天内合并 PR
- 28
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
johannesjo/parallel-code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
johannesjo/parallel-code#385 ·
维护者通常 4 天内回复
-
Option to show usage as used instead of left, and potential further customization ideas可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 83/100
johannesjo/parallel-code#353 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
johannesjo/parallel-code#163 · 2 条评论 ·
维护者通常 4 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 12/100
johannesjo/parallel-code#375 · 2 条评论 ·
维护者通常 4 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
johannesjo/parallel-code#374 ·
维护者通常 4 天内回复
查看 johannesjo/parallel-code 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
ci
难度 2/5 1-3 小时 新手友好度 78/100
ClickHouse/clickhouse-js#1248 ·
维护者通常 1 天内回复
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechselt未关闭technik
难度 2/5 1-3 小时 新手友好度 78/100
-
bug
难度 2/5 1-3 小时 新手友好度 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 84/100
AhmedNAgy25/analysor#25 ·
维护者通常 1 天内回复