nerve thread show: include __start__ message (initial prompt) #231

Closed
opened 2026-04-28 14:59:17 +00:00 by xiaoju · 0 comments
Owner

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 via nerve thread show cannot 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===0
  • packages/cli/src/commands/thread.ts — pass start message to buildThreadCommandOutput

Refs: discovered during workflow-generator dogfooding

## 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 via `nerve thread show` cannot 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===0 - `packages/cli/src/commands/thread.ts` — pass start message to buildThreadCommandOutput Refs: discovered during workflow-generator dogfooding
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/nerve#231