Skip to content

fix(docs): correct AGENTS.md push/status exit code (4, not 3)#147

Open
ivanmkc wants to merge 1 commit into
masterfrom
fix/agents-exit-code
Open

fix(docs): correct AGENTS.md push/status exit code (4, not 3)#147
ivanmkc wants to merge 1 commit into
masterfrom
fix/agents-exit-code

Conversation

@ivanmkc

@ivanmkc ivanmkc commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

AGENTS.md told agents that push/status exit 3 when the viewer env vars are unset. The code actually returns EXIT_NO_VIEWER = 4 (packages/cli/src/viewer-detect.ts:15, used in push.ts:36 and status.ts:81), with the message …are not set: no termchart viewer configured.

A wrong exit code in the always-loaded guide can send an agent down an incorrect retry/branch path (wasted tokens). This aligns the doc with the code (the skills/commands already say 4).

This is fix T5 from the latency/token experiment plan. Refs #142.

Change

  • AGENTS.md: exit 3exit 4, and the hint text now matches missingConfigMessage().

When TERMCHART_VIEWER_URL/TOKEN are unset, push and status return
EXIT_NO_VIEWER=4 (packages/cli/src/viewer-detect.ts:15), and the message is
'…are not set: no termchart viewer configured.' AGENTS.md claimed exit 3 with a
non-matching hint, which can mislead an agent into a wrong retry path.
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.

2 participants