Skip to content

Lab actions run with FORCE_COLOR=1, so their output can be colored - #5

Merged
thinkinginmath merged 1 commit into
mainfrom
feat/action-colors
Sep 19, 2026
Merged

thinkinginmath merged 1 commit into
mainfrom
feat/action-colors

Conversation

@thinkinginmath

@thinkinginmath thinkinginmath commented Sep 19, 2026 •

Copy link
Copy Markdown
Collaborator

An action's output goes to a pipe, so programs print no colors. The scimigo.com lab page is getting ANSI color rendering, so actions now run with FORCE_COLOR=1 and CLICOLOR_FORCE=1, the two common conventions, unless the learner's environment already sets them. NO_COLOR still wins in tools that honor it.

protocol.md now documents the per-step result lines from #4, and says that output may contain ANSI codes, which a page should render or strip.

The Restate demo (SciMigo/restate-durable-agent-demo@f515afa) colors its lines when FORCE_COLOR is set.

Test: an action printing both variables gets 1 1, even when the test process itself has FORCE_COLOR set. 173 passed; ruff, format and mypy clean.

🤖 Generated with Claude Code

An action's output goes to a pipe, so programs print no colors. The scimigo.com lab page now
renders ANSI colors, so actions run with FORCE_COLOR=1 and CLICOLOR_FORCE=1, the two common
conventions, unless the learner's environment already sets them. NO_COLOR, if set, still wins in
tools that honor it.

protocol.md now documents the per-step result lines (#4) and that output may contain ANSI codes,
which a page should render or strip.

Test: an action printing both variables gets "1 1", even when the test process has FORCE_COLOR
set. 174 passed; ruff, format and mypy clean.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@thinkinginmath
thinkinginmath merged commit b4173d1 into main Sep 19, 2026
5 checks passed
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.

1 participant