Skip to content

feat(control): a console command that runs one $ developer command - #714

Merged
nitoygo merged 1 commit into
sven-n:mainfrom
alandarev:feature/control-console
Oct 16, 2026
Merged

nitoygo merged 1 commit into
sven-n:mainfrom
alandarev:feature/control-console

Conversation

@alandarev

@alandarev alandarev commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds console (text) to the developer control socket: it runs one $ command
as if typed into the chat box, without opening the chat box, so scripted
screenshots and checks can switch a developer option ($fpscounter on, …) and
nothing typed shows up in the frame. A text that is not a $ command the client
knows, or one whose arguments are missing or malformed, answers bad_request
(a $ handler that throws on a bad argument, such as $fps without a number,
no longer ends the client when it comes through the socket). Documented in
docs/control-socket.md.

Related issues

Follow-up to the control socket (#594).

Testing

Rebased onto main 112cece (after #610). main does not build on Linux
(#730), so the Linux runs below add #719's build fixes (fork branch
fix/linux-gcc-build 9ecbf65) under this branch, test-only.

Written with AI assistance and tested by hand.

Checklist

@alandarev
alandarev marked this pull request as ready for review October 13, 2026 06:25
`console` (`text`) runs a `$` command as if it was typed into the chat box,
without opening the chat box: scripted screenshots and checks can switch a
developer option (`$fpscounter on`, …) and nothing typed shows up in the
frame. A text that is not a `$` command the client knows answers
`bad_request`.

Tests: the command vocabulary; live: `console '$fpscounter on'` ok,
`console '$nosuch'` bad_request, the chat box stays closed.
@alandarev
alandarev force-pushed the feature/control-console branch from 164f663 to a40a18e Compare October 15, 2026 20:26
@nitoygo
nitoygo merged commit 499c672 into sven-n:main Oct 16, 2026
3 checks passed
@alandarev
alandarev deleted the feature/control-console branch October 17, 2026 10:43
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