Add module namespaces and harden L1/agent after the import redesign.

Bind imports to library names with bare path calls (and use), forward optional host args through mq wrappers, stabilize writeback replacement newlines, and document the M1/M2 decisions.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-07 13:28:32 +08:00
1 parent 99132ac8fc
commit 1f23e2ed93
108 files changed
+3228 -1023

No files matched your search

+3 -5
View File
@@ -133,12 +133,10 @@ pub fn kill_all(ctx: &mut HostContext) {
let _ = task.stderr.join();
}
Handle::Function(mut task) => {
if let Ok(mut st) = task.state.lock() {
if matches!(*st, FnState::Running) {
*st = FnState::Killed;
}
// Join so fire-and-forget writers (e.g. agent writeback) finish before exit.
if let Some(h) = task.handle.take() {
let _ = h.join();
}
drop(task.handle.take());
}
}
}