Skip to content

Move run completion coordination out of the session host #62

@ThomasK33

Description

@ThomasK33

What to build

Move run-completion coordination out of src/host/hostMain.ts into a dedicated module. The new module should coordinate marker/sentinel creation, postamble echo registration, waiter resolution, timeout behavior, exit resolution, and run_complete event appends while preserving the existing sentinel scanner module.

Acceptance criteria

  • hostMain delegates run-completion coordination to a dedicated module while still owning PTY and RPC wiring.
  • Timeout behavior keeps sentinel/postamble registrations active so eventual internal bytes are still hidden from artifacts.
  • Session exit resolves pending run-completion waiters the same way it does today.
  • Existing run-completion sentinel unit tests and run command integration tests still pass, especially tests that assert sentinel text does not leak into artifacts.

Blocked by

None - can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvementready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions