Repository navigation
Conversation
# Conflicts: # docs/architecture/rust-agent/generated/modules.json # docs/architecture/rust-agent/generated/modules.mmd
…nd settings callers
# Conflicts: # crates/dim-app-server/tests/mcp_session_flow.rs
zerob13
left a comment
There was a problem hiding this comment.
Two regressions on the exact merge need fixes before approval:
crates/dim-agent-capabilities/src/host_platform/face.rs:34: background paging rejects an output file created by the same execution profile when the configured output directory does not match the reader's default. The typed test reads the live tail and confirms the file exists before paging returnsUnavailable; transport paging fails too. Keep ExecHost as the reader and bind it to the exact authorized output location recorded by the writer, including restore. Do not broaden allowed roots.xtask/src/scenario_eval.rs:9618: pooled/rejudge fixtures provide a legacy native HostPlatform value after ExecHost has switched to a shared face. Both providers now claim the same native key and fixture assembly fails. Pass isolated home through server configuration and let HostPlatform own both bindings.
The same cases pass on the baseline tree. Exact failing Linux job · Baseline.
…ecution host in eval fixtures
|
Closing in favor of a corrected design from This branch implements a separate The corrected design keeps the existing services:
No ownership move, no rename, no |
|
The replacement is #2002 (from |
Refs #1292 · Refs #1295
Final API:
execHostAll methods are asynchronous. Paths are absolute on the execution node.
outputDiris required: WorkspaceTools passes its Session command-output directory tostart; ShellSession passes its branch output directory toshell.start{taskId, command, cwd, workspace, roots, outputDir}{outputPath}retainOutput{taskId}{outputPath}shell{taskId, cwd, workspace, roots, outputDir, cols, rows}{outputPath}wait{taskId, timeoutMs?}{status, exitCode?, signal?, durationMs, outputPath, outputBytes, outputTruncated, preview, previewTruncated, failureNote?}kill{taskId}{}settle{taskId}{}output{taskId, cursor?, limit?}or{outputPath, cursor?, limit?}{text, bytes, nextCursor?, truncated, retainedFrom, reset?}tail{taskId}{text, totalBytes, truncated}write{taskId, data}(base64 bytes){}resize{taskId, cols, rows}{}removeOutputDirectory{path}{}info{}{os, arch, home, timezone?, execRoot, platformRoots, backend, execShell}confined{program, args, read, write, env?, timeoutMs, outputLimit, services}{status, stdout, stderr, confined, stdoutTruncated, stderrTruncated}configured{command, cwd, env?, stdin?, timeoutMs, limits: {stdout, stderr}}{status, exitCode?, signal?, durationMs, stdout, stderr, stdoutTruncated, stderrTruncated}startreturns the planned log path. Short foreground output stays in memory. Oversized output spills to the log. Background handoff callsretainOutputbefore registering the log.info.arch: stringis the execution node’s existing CPU architecture, e.g.arm64orx64.info.backendis{state: "available"}or{state: "unavailable", reason}.info.execShellis{state: "available", executable, edition, source, outputEncoding}or{state: "unavailable", code, reason}.wait.statusis one ofexited,signaled,timed_out,cancelled,failed. Service errors carry{code, message}.