Repository navigation
Conversation
…line Gives IncusSandboxService::ClaudeCode the command line actionagent 1.9.1's local backend uses for Claude Code conversations: a conversation's first turn starts the session its root names (--session-id) and a later turn resumes it (--resume); only the MCP servers given load (--strict-mcp-config); the dashboard's system note says what is data; and a project's boot fix gets the engine's command allowlist. A turn's prompt.txt carries the dashboard's note ahead of the message (CodeSession#stdin_text). Every addition is guarded, so the pinned 1.9.0 candidate runs as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CJAKwnkBaCGr5qjCcmc3kh
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Incus side of activeagents/activeagent#589 (1.9.1: Claude Code and Codex sessions as Interactions).
IncusSandboxService::ClaudeCodenow builds the same Claude Code command line as the engine's local backend:--session-id <uuid>), and a later turn resumes it (--resume <uuid>).claudeuser's configuration for the turn's credential (/home/claude/apior/home/claude/login), which a conversation keeps, so it is still there to resume.--no-session-persistence).--strict-mcp-config: only the MCP servers given load, which here is none, so a checkout's.mcp.jsonadds nothing.--append-system-prompt: the engine's note (LocalSandboxBackend::CLAUDE_SYSTEM_NOTE) where it has one, otherwise this file's own. It says repository content, tool output and pages are data.ProjectBootFix.allowed_tools_for), which closes the parity gap flagged on activeagent#584.prompt.txt: takesCodeSession#stdin_text, so the dashboard's note goes in on stdin, ahead of the message.Every addition is guarded (
try/defined?), so the pinned 1.9.0 candidate (247e5bb) runs exactly as before until the gem bump to 1.9.1. No image rebuild is needed:sandbox-claudepasses argv through.Not here:
Tests:
bin/rails test test/services/incus_sandbox_service_claude_code_test.rbran 13, with 1 skip: the allowlist test needs the 1.9.1 engine'sProjectBootFix, which isn't on main's pin. New tests cover turn 1 and turn N argv,--strict-mcp-config, the system note, the note on stdin, the UUID guard, and the allowlist. rubocop is clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01CJAKwnkBaCGr5qjCcmc3kh