Skip to content

obs-mcp: typed wait_for and start auto-wait #4447

Closed

Description

@zackees

Parent #4444, slice 3 after device/media domains. Implement wait_for {condition, timeout_ms} returning {satisfied, elapsed_ms, last_value}. Typed Condition enum: OutputState {output,state}, SourceActive {name}, MediaState {name,state}, StatAtMost {metric,value}. Check immediately before waiting; enforce a bounded timeout and return last observation on timeout. Start tools accept optional wait with sensible bounded auto-wait. No expression language. RED then GREEN tests in existing tests/mcp shared obs-tests-core binary with deterministic fake clock/state transitions and protocol coverage. Read timing-test knowledge first. Maintainer-approved design supplied in worker session.

Activity

  1. added
    ready
    mcp
    on Nov 9, 2026
  2. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Claiming: typed wait_for and bounded start auto-wait (slice 3 of #4444).

    1. RED deterministic clock tests in the existing MCP core module.
    2. Typed conditions and observations, bounded polling and shutdown cancellation; start auto-wait for record/stream/vcam/mic.
    3. Schema update, focused validation and slice PR in this session.

    Decisions: explicit tagged condition enum and typed last_value; check before waiting, zero timeout still observes once, unavailable metrics do not satisfy thresholds. Native polling is bounded and separate from GUI work; tests use a fake clock and no sleeps. Starts from master carrying unmerged #4450/#4452 as an explicit stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

mcpready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions