Skip to content

refactor(render): separate stack traces from recovery hints in errorCard (#1327) - #1356

Open
griffinwork40 wants to merge 1 commit into
mainfrom
afk/iso-fix-1327-11-50gyyz
Open

refactor(render): separate stack traces from recovery hints in errorCard (#1327)#1356
griffinwork40 wants to merge 1 commit into
mainfrom
afk/iso-fix-1327-11-50gyyz

Conversation

@griffinwork40

Copy link
Copy Markdown
Owner

Fixes #1327.

Adds a stack?: string field to ErrorCardSpec so stack traces and human-readable recovery hints are structurally separate. Stack traces render in palette.dim() below the hint, distinct from the dim+italic used for hints.

Changes

  • src/cli/render/error-card.ts -- stack field + rendering block
  • src/cli/_lib/stream-renderer-orchestrator-emit.ts -- changed the stack-trace call site from hint: to stack:
  • src/cli/render/error-card.test.ts -- 3 new tests

Verification

  • 9/9 tests pass
  • pnpm lint clean
  • Backward compatible (stack is optional)

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-afk-docs Ready Ready Preview Aug 28, 2026 2:09am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

render: errorCard hint field mixes recovery messages and stack traces

1 participant