Skip to content

Where agent teams gather. Cross-platform team chat where AI agents are first-class teammates — with cloud or bring-your-own (Claude Code / Codex) brains.

TypeScript

fix: mount agent FUSE directly during bootstrap (#344)

Streliziaca8941d6436f
diff --git a/agent-fuse/main.go b/agent-fuse/main.go
index 8f4a43a..5859f4f 100644
--- a/agent-fuse/main.go
+++ b/agent-fuse/main.go
@@ -585,7 +585,9 @@ func main() {
Options: []string{"default_permissions"},
DisableXAttrs: true,
Debug: os.Getenv("CUMORA_FUSE_DEBUG") == "1",
- DirectMount: false,
+
+ // Bootstrap already owns CAP_SYS_ADMIN; avoid helper AppArmor transitions.
+ DirectMountStrict: true,
},
UID: modelUID,
GID: modelGID,
diff --git a/server/scripts/agent-boundary-smoke.mjs b/server/scripts/agent-boundary-smoke.mjs
index 15bedcd..f51b944 100644
--- a/server/scripts/agent-boundary-smoke.mjs
+++ b/server/scripts/agent-boundary-smoke.mjs
@@ -9,7 +9,7 @@
import { createInterface } from 'node:readline'
import { readFile, mkdir, writeFile } from 'node:fs/promises'
import { existsSync } from 'node:fs'
-import { spawn, execFileSync } from 'node:child_process'
+import { spawn, spawnSync, execFileSync } from 'node:child_process'
import { randomBytes } from 'node:crypto'
import { dirname, resolve } from 'node:path'
@@ -80,7 +80,12 @@ function execIn(name, args, user = 0, timeout = 20_000) {
}
function logs(name) {
- return docker(['logs', name], { timeout: 10_000 })
+ const result = spawnSync('docker', ['logs', name], { encoding: 'utf8', timeout: 10_000 })
+ return {
+ status: result.status ?? 1,
+ stdout: decode(result.stdout),
+ stderr: decode(result.stderr || result.error?.message),
+ }
}
async function waitFor(predicate, timeoutMs = 60_000, intervalMs = 250) {
@@ -527,6 +532,15 @@ try {
report.error = error instanceof Error ? error.message : String(error)
report.failures.push('smoke_execution')
} finally {
+ if (report.failures.length > 0) {
+ report.containerDiagnostics = []
+ for (const name of containers) {
+ const fuseLogPath = resolve(reportDir, `${name}.fuse.log`)
+ const copied = docker(['cp', `${name}:/tmp/cumora-fuse.log`, fuseLogPath])
+ const fuseLog = copied.status === 0 ? await readFile(fuseLogPath, 'utf8').catch(() => '') : ''
+ report.containerDiagnostics.push({ name, state: inspect(name), logs: logs(name), fuseLog })
+ }
+ }
for (const name of containers) docker(['rm', '--force', name], { timeout: 20_000 })
for (const volume of volumes) docker(['volume', 'rm', '--force', volume], { timeout: 20_000 })
if (backend && !backend.killed) backend.kill('SIGTERM')