Skip to content

Commit 14db803

Browse files
gershamclaude
andcommitted
Correct false claim that info toasts show in production
The previous text said agent toasts are info and that info stream toasts are admitted in production. That is wrong. Neither the CLI nor the API gates on environment: both accept error, alert, and info unconditionally. The gate lives in player chrome, where production glass admits error only and alert and info show only off production. Status chips are environment-independent. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 2863a27 commit 14db803

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎AGENTS.md‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,10 @@ installation, players, backend services, the site, or production deployment.
143143
- `screen toast <id> --text TEXT [--level info] [--duration-ms MS]`
144144
binds `POST /api/v1/screens/{id}/toast`. A toast is stage chrome, not a
145145
placement: no canvas slot, no layer, no readiness or crossfade.
146-
- `--level` defaults to `info` when omitted. Agent toasts are info. Info
147-
stream toasts are admitted in production. `error` and `alert` remain
148-
accepted. Do not map player HTTP errors onto this command. Player-local
149-
faults are a different path: error always; alert and info only off
150-
production.
146+
- `--level` is `info`, `alert`, or `error`. It defaults to `info` when
147+
omitted. The CLI accepts all three. Production glass shows error toasts
148+
only; alert and info only off production. Status chips show in every
149+
environment. Do not map player HTTP errors onto this command.
151150
- Latest-wins. Do not add a queue, a cancel command, or a colour field.
152151
Player chrome chooses the fill; the API never carries one.
153152
- Text is 1 to 120 characters, line feed is the only accepted line break, and

‎README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,9 @@ screenrig --json screen toast scr_01 --level info --text "Lobby closed"
444444
screenrig --json screen toast scr_01 --level alert --text "Doors locked" --duration-ms 5000
445445
```
446446

447-
`--level` defaults to `info` when omitted. Agent toasts are info. Info stream
448-
toasts are admitted in production. `error` and `alert` remain accepted.
447+
`--level` is `info`, `alert`, or `error`. It defaults to `info` when omitted.
448+
The CLI accepts all three. Production glass shows error toasts only; alert
449+
and info only off production. Status chips show in every environment.
449450
`--text` is 1 to 120 characters, accepts line feed as the only line break, and
450451
allows at most three lines. `--duration-ms` is optional, defaults to 10000 on
451452
the server, and must be between 2000 and 60000 inclusive when supplied.

0 commit comments

Comments
 (0)