Start opencode's sandbox on Pop!_OS; lint and the smoketest now pass
The first run of lint and the full Docker smoketest since the CoreDesktop ports found: - opencode's sandbox didn't start. Its profile didn't allow all Unix sockets, so srt added its socket filter, which needs a user namespace inside bubblewrap, and Pop!_OS' AppArmor (bwrap-userns-restrict) denies that. opencode now allows them and hides their paths (/run/user, /run/dbus, Docker, Podman, Tailscale, X11, tmux, ssh-agent), as Hermes and Cline Desktop do. 80-security shows it still can't reach the session D-Bus. - 80-security's agent list was named AGENTS, and 30-agents.sh, loaded later, replaced it with its own, so every sandbox check ran a command that doesn't exist. It's FAKE_AGENTS now. - 50-sandbox's "can't" checks would pass if the sandbox never started; a check that it starts now comes first. - shellcheck read a jq variable named done as bash's keyword (SC1010). TEST.md says to install shellcheck and Docker, which the connector doesn't. PLAN.md: pin srt, try the real opencode, and settle on 24.04 or 26.04. make lint passes. smoketest/run --tier all passed every scenario but 50 and 80 before the opencode change, and 50 and 80 pass after it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -115,9 +115,9 @@ OLD_NOTIFY_DONE="notify-send 'Claude Code' 'Task completed'"
|
||||
# Settings written before claude-notify ran notify-send itself, so clicking
|
||||
# did nothing: true while either of those two hooks is still there
|
||||
old_claude_notifications() {
|
||||
jq -e --arg input "$OLD_NOTIFY_INPUT" --arg done "$OLD_NOTIFY_DONE" \
|
||||
jq -e --arg input "$OLD_NOTIFY_INPUT" --arg completed "$OLD_NOTIFY_DONE" \
|
||||
'[.hooks.Notification[]?.hooks[]?, .hooks.Stop[]?.hooks[]? | objects | .command]
|
||||
| any(. == $input or . == $done)' "$CLAUDE_SETTINGS" &> /dev/null
|
||||
| any(. == $input or . == $completed)' "$CLAUDE_SETTINGS" &> /dev/null
|
||||
}
|
||||
|
||||
# Your own settings are left alone: the hooks are added only if you have no
|
||||
|
||||
Reference in New Issue
Block a user