Skip to content

bug(runtime): sequence closing observation cannot be used for the next action #5474

Description

@testikun

What happened

element_sequence reports a Fresh observation with a new observation_id after a successful step, but the immediately following click_element with that ID fails reobserve_required. A single click_element from the initial observation does not have this extra failure. The model must spend a failed call and another observation before continuing. Expected: the fresh ID returned by the sequence is immediately actionable.

How to reproduce

  1. On main 6b652940b, supply a fake CU backend with observeApp and captureObservation returning a window with one enabled AXButton labeled Continue, and runSemantic returning { outcome: { ok: true, tier: "ax", verified: true } }.
  2. Call maka_computer observe for that app, then element_sequence with the observed ID and steps: [{ label: "Continue" }].
  3. Extract observation_id from the sequence modelText Fresh observation and call click_element with it and the button element ID.

The runtime regression assertion assert.equal(next.error, undefined) fails with actual: "reobserve_required"; the sequence dispatched once, and the next action was refused before dispatch. This uses the real Host tool implementation plus a scripted fake backend, not a real Desktop/model/OS reproduction. The repository test command is node --test --test-name-pattern="a sequence closing observation" packages/runtime/dist/__tests__/computer-use-tools.test.js after building core, storage and runtime with a regression test added.

Environment

  • Maka source commit: 6b652940b9f2764cbe9b62bc491e19e4e6cd881f (main, September 18, 2026)
  • OS: macOS (local source test)
  • Surface: Runtime Host computer-use tool
  • Node.js: v24.20.0

Additional context

The sequence closing capture registers the new frame but does not transition the session out of reobserve_required; the single-action fresh observation path performs both. A fix should also validate the observation lease after capture, so a result invalidated during capture is not published as fresh. This issue reports the concrete next-action failure, not a claim that every related Host/fake-backend timing difference sends real OS input. Refs #4909.

Reported with Codex assistance; the contributor owns review and submission.

Activity

  1. testikun commented on Sep 18, 2026

    @testikun
    ContributorAuthor

    take

  2. added a commit that references this issue on Sep 27, 2026
    a0ce9aa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions