Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Dim #2026-B: Wait and host tools without native-only members - #2487

Draft
eric8810 wants to merge 2 commits into
mainfrom
dim/2026-tools
Draft

eric8810 wants to merge 2 commits into
mainfrom
dim/2026-tools

Conversation

@eric8810

@eric8810 eric8810 commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Refs #2026

Makes Wait and the host tool face stop carrying native-only members, in progress.

Done

  • wait is one routed operation wait.wait({taskId?, timeoutMs}); the caller's drop cancels it. Deleted the native wait(taskId, timeoutMs, cancelled) and waitFor, and ("wait","wait") leaves LIFECYCLE_METHODS. WaitCallError crosses as a {code} value (alreadyWaiting, reloading), and the wait tool reads the code instead of comparing messages.
  • Wait::subscription is gone; the testing hook is the free wait::subscribe(&Wait), which the branch flow tests use.
  • HostPlatform::start_shell is gone from the service type; the testing helper is the free testing::start_shell(&HostPlatform, …).
  • ToolHost's driver field is private (ToolHost::new for the assembly), and its data face carries execute, declarations, resolve_write and ordering. ToolRegistry's host-tool handler now calls those operations, and toolHost is registered as a data face.

Allowlist

  • removed ToolHost::0 (src/host.rs, rust-only-field)
  • removed Wait::subscription (src/wait.rs, rust-only-method)
  • removed HostPlatform::start_shell (src/host_platform.rs, rust-only-method)

Pending in this PR

  • WorkspaceTools (ToolDriver as a trait of Rust-only reads; the branch lookups) still need their own conversion.
  • Generated npm/branch-services.d.ts and catalogs are stale until the debug phase runs xtask -- types/graph.

Compile, tests and xtask check are deferred to the debug phase for this batch.

This branch has not been deployed

No deployments
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.

1 participant