feat(sandbox): route all assistant capabilities through the ocm tool

Add an allow-listed request action to the generated ocm plugin so agents
reach settings, assistant reload, repos, git-info, workspaces, and
schedules through the tool instead of curling the internal API with a
bearer token, which is impossible under sandboxing.

Rewrite the curl-based skills to use the ocm request action and drop the
apiBaseUrl plumbing. Remove the now-unread .opencode/internal-token file
and the sandbox tmpfs mask that hid it; attestation now rejects any
tmpfs other than the runtime /tmp mount.
This commit is contained in:
Chris Scott committed 2026-08-25 09:59:32 -04:00
1 parent f6c368265f
commit 62cf04bbc9
16 files changed
+639 -460

No files matched your search

+1 -4
View File
@@ -81,10 +81,7 @@ export const AssistantModeStatusSchema = z.object({
agentsMd: AssistantModeFileSchema,
opencodeJson: AssistantModeFileSchema,
}),
internalToken: z.object({
path: z.string(),
created: z.boolean(),
}).optional(),
schedulesSkill: z.object({
path: z.string(),
created: z.boolean(),