Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/docker-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,14 @@ export function generateDockerCompose(
fs.mkdirSync(copilotConfigDir, { recursive: true });
}

// Ensure .copilot/logs directory exists on host before mounting
// This is critical: Docker needs the mount point to exist before it can overlay
// the read-write mount on top of the read-only parent mount
const copilotLogsDir = path.join(copilotConfigDir, 'logs');
Comment on lines +449 to +452
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description checklist mentions apt-get retry logic, Node.js install changes, xz-utils, and CA certificate updates, but this PR diff only changes host log directory creation for the .copilot/logs mount. Please update the PR description to match the actual change set (or include the missing changes in this PR).

Copilot uses AI. Check for mistakes.
if (!fs.existsSync(copilotLogsDir)) {
fs.mkdirSync(copilotLogsDir, { recursive: true });
}

// Mount ~/.copilot for MCP config (read-only) and logs (write via separate mount)
agentVolumes.push(`${copilotConfigDir}:${copilotConfigDir}:ro`);
// Mount agent logs directory to workDir for persistence (overlays the ro mount above)
Expand Down
Loading