This repository was archived by the owner on Jul 16, 2026. It is now read-only.
Repository navigation
feat(web-server): /presenter endpoint (Phase 5.2) - #72
Merged
Merged
Conversation
Phase 5.2 of the OSS→stando backend reconciliation. Ports the one
genuinely-missing, infra-backed web-server endpoint from OSS sutando.
/presenter — exposes the presenter-mode sentinel
(state/presenter-mode.sentinel, written by scripts/presenter-mode.sh and
already polled by the Discord/Slack/Telegram bridges) to the React UI.
The UI was already designed for it: the existing /voice-mode comment
references "the presenter badge poll to render the composite 3-mode
badge", but the endpoint didn't exist. Returns { active, expiresAt };
past/garbage/missing expiry → inactive (matches the bridges' is_active
checks). Reads via statePath('state/presenter-mode.sentinel'), the same
workspace path resolve_workspace() gives the bridges.
Deliberately NOT ported (OSS-specific, no stando infra / feature
decisions, not endpoint hardening): /chat (standalone chat page),
/overlays + /api/overlays (overlay-apps manager — no overlay infra in
stando), /paidsubscriptions* (subscription-scanner web UI — skill exists
but no web rendering layer).
Also removes tests/tasks-api.test.ts: it imported
../client/src/lib/tasks-api.ts, which PR #69 moved to the stando-ui repo.
The test is orphaned in stando (code gone) — coverage belongs in
stando-ui now.
Verified: tsc clean; new tests/web-server-presenter.test.ts 4/4; full TS
suite 244/244.
Co-authored-by: Cursor <cursoragent@cursor.com>
2 tasks
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 5.2 of the OSS→stando backend reconciliation — ports the one genuinely-missing, infra-backed
web-server.tsendpoint from OSS sutando. Branches offdev-clientper the new workflow rule./presenterExposes the presenter-mode sentinel (
state/presenter-mode.sentinel, written byscripts/presenter-mode.shand already polled by the Discord/Slack/Telegram bridges) to the React UI. stando already expected this — the existing/voice-modecomment references "the presenter badge poll to render the composite 3-mode badge", but the endpoint was never implemented.{ active, expiresAt }; past / garbage / missing expiry → inactive (matches the bridges'is_activechecks).statePath('state/presenter-mode.sentinel')— the same workspace pathresolve_workspace()hands the bridges, so the badge stays consistent with notification-suppression.Endpoint audit — what was NOT ported (and why)
OSS sutando has 7 routes stando lacks. Only
/presenterhad live backing infra in stando + was a clean fit:/presenterpresenter-mode.sh+ bridges already use the sentinel; UI expects it/chatchat-ui.tsexists but unrouted — feature decision, not a sync gap/overlays,/api/overlays/paidsubscriptions,/data,/scanrenderSubscriptionsHtml+ a whole pageDrive-by fix
Removes
tests/tasks-api.test.ts— it imported../client/src/lib/tasks-api.ts, which PR #69 moved to the stando-ui repo. The test is orphaned in stando (the code is gone) and was already failing ondev-client. Coverage belongs in stando-ui now.Test plan
tests/web-server-presenter.test.ts— 4/4 (active future-expiry, missing, past-expiry, garbage)tsc --noEmitcleanRelated
dev-clientsrc/web-server.ts/presenterhandler/chatwiring,/paidsubscriptionsweb UI — say the word if you want either.Made with Cursor