style: drop em-dashes from output-token-budget strings/comments
Co-authored-by: Raymond Gasper <raymondgasper@fastmail.com>
- commit
- a373e828965db386a7ac674bccd3bb230796ec0d
- author
- patriceckhart · · 2026-06-09 16:38 UTC
- parent
- 3cf22fc
- signature
- unsigned
2 files · +3 -3
M packages/agent/modes/interactive.go +2 -2
| @@ -4659,11 +4659,11 @@ func (i *Interactive) handleEvent(ev core.AgentEvent) { | |||
| 4659 | 4659 | if e.Stop == provider.StopLength { | |
| 4660 | 4660 | // The model hit its output-token cap mid-response, so the | |
| 4661 | 4661 | // reply (often a long write/edit) is truncated. Surface it | |
| 4662 | - | // explicitly — otherwise the turn just ends and reads like | |
| 4662 | + | // explicitly, otherwise the turn just ends and reads like | |
| 4663 | 4663 | // the UI gave up. The agent already requests the model's | |
| 4664 | 4664 | // full MaxOutput budget, so this means the response genuinely | |
| 4665 | 4665 | // exceeded that ceiling; ask the user to continue. | |
| 4666 | - | i.statusErr = "response hit the model's output-token limit and was cut off — ask it to continue" | |
| 4666 | + | i.statusErr = "response hit the model's output-token limit and was cut off, ask it to continue" | |
| 4667 | 4667 | i.statusOK = "" | |
| 4668 | 4668 | return | |
| 4669 | 4669 | } | |
| @@ -4659,11 +4659,11 @@ func (i *Interactive) handleEvent(ev core.AgentEvent) { | |||||
| 4659 | if e.Stop == provider.StopLength { | 4659 | if e.Stop == provider.StopLength { | ||
| 4660 | // The model hit its output-token cap mid-response, so the | 4660 | // The model hit its output-token cap mid-response, so the | ||
| 4661 | // reply (often a long write/edit) is truncated. Surface it | 4661 | // reply (often a long write/edit) is truncated. Surface it | ||
| 4662 | - | // explicitly — otherwise the turn just ends and reads like | 4662 | + | // explicitly, otherwise the turn just ends and reads like |
| 4663 | // the UI gave up. The agent already requests the model's | 4663 | // the UI gave up. The agent already requests the model's | ||
| 4664 | // full MaxOutput budget, so this means the response genuinely | 4664 | // full MaxOutput budget, so this means the response genuinely | ||
| 4665 | // exceeded that ceiling; ask the user to continue. | 4665 | // exceeded that ceiling; ask the user to continue. | ||
| 4666 | - | i.statusErr = "response hit the model's output-token limit and was cut off — ask it to continue" | 4666 | + | i.statusErr = "response hit the model's output-token limit and was cut off, ask it to continue" |
| 4667 | i.statusOK = "" | 4667 | i.statusOK = "" | ||
| 4668 | return | 4668 | return | ||
| 4669 | } | 4669 | } | ||
M packages/core/agent.go +1 -1
| @@ -24,7 +24,7 @@ type Agent struct { | |||
| 24 | 24 | ||
| 25 | 25 | // MaxTokens caps the model's output tokens per turn. Zero leaves | |
| 26 | 26 | // the field unset on the provider request, letting each provider | |
| 27 | - | // apply its own default (which can be conservative — Bedrock | |
| 27 | + | // apply its own default (which can be conservative, e.g. Bedrock | |
| 28 | 28 | // defaults to 4096, truncating long writes/edits). Hosts populate | |
| 29 | 29 | // this from the resolved model's MaxOutput so large single-turn | |
| 30 | 30 | // responses aren't silently cut off with stopReason=length. | |
| @@ -24,7 +24,7 @@ type Agent struct { | |||||
| 24 | 24 | ||||
| 25 | // MaxTokens caps the model's output tokens per turn. Zero leaves | 25 | // MaxTokens caps the model's output tokens per turn. Zero leaves | ||
| 26 | // the field unset on the provider request, letting each provider | 26 | // the field unset on the provider request, letting each provider | ||
| 27 | - | // apply its own default (which can be conservative — Bedrock | 27 | + | // apply its own default (which can be conservative, e.g. Bedrock |
| 28 | // defaults to 4096, truncating long writes/edits). Hosts populate | 28 | // defaults to 4096, truncating long writes/edits). Hosts populate | ||
| 29 | // this from the resolved model's MaxOutput so large single-turn | 29 | // this from the resolved model's MaxOutput so large single-turn | ||
| 30 | // responses aren't silently cut off with stopReason=length. | 30 | // responses aren't silently cut off with stopReason=length. | ||