nerve thread show: include __start__ message (initial prompt) #231
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Problem
nerve thread show <runId>excludes the__start__message (initial user prompt) from output. The SQL query explicitly filters it out. This means workflow roles (planner, coder, etc.) that read the thread vianerve thread showcannot see the original prompt — they only see outputs from previous roles.Impact
Planner gets a truncated view and misses critical user requirements. This caused planner ignoring detailed role specifications, coder not following user behavioral requirements, and planner defaulting to copy existing code instead of following user new design.
Expected Behavior
Without
--before: Always include__start__message first, then fill remaining budget with most recent role rounds.With
--before(pagination): Do NOT include__start__.Files to modify
packages/store/src/log-store.ts— add getThreadStartMessage(runId)packages/cli/src/commands/workflow.ts— modify buildThreadCommandOutput to include start message when before===0packages/cli/src/commands/thread.ts— pass start message to buildThreadCommandOutputRefs: discovered during workflow-generator dogfooding