From 4e899014d8c495a8cfaaf729e3bc0b8ca4e53359 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sun, 1 Mar 2026 00:21:07 -0600 Subject: [PATCH] daily sync: 3 added, 4 modified, 0 deleted (3 edges) --- ...N--fixed-posttooluse-hook-context-e8e3d8.md | 13 +++++++++++++ ...N--shell-aliases-not-available-in-00724a.md | 13 +++++++++++++ ...O--homelab-session-automation-con-e1e8dc.md | 13 +++++++++++++ ...-failure-due-to-claudecode-env-va-250d2f.md | 18 +++++++++++++++++- ...-configuration-creation-debugging-eed91d.md | 8 +++++++- ...osttooluse-hook-context-injection-ba1890.md | 8 +++++++- ...vailable-in-claude-code-bash-tool-a4efac.md | 7 ++++++- 7 files changed, 76 insertions(+), 4 deletions(-) create mode 100644 graph/edges/fix-claude-p-nested-session-fa--BUILDS_ON--fixed-posttooluse-hook-context-e8e3d8.md create mode 100644 graph/edges/fix-claude-p-nested-session-fa--BUILDS_ON--shell-aliases-not-available-in-00724a.md create mode 100644 graph/edges/fix-claude-p-nested-session-fa--RELATED_TO--homelab-session-automation-con-e1e8dc.md diff --git a/graph/edges/fix-claude-p-nested-session-fa--BUILDS_ON--fixed-posttooluse-hook-context-e8e3d8.md b/graph/edges/fix-claude-p-nested-session-fa--BUILDS_ON--fixed-posttooluse-hook-context-e8e3d8.md new file mode 100644 index 00000000000..b690c559af0 --- /dev/null +++ b/graph/edges/fix-claude-p-nested-session-fa--BUILDS_ON--fixed-posttooluse-hook-context-e8e3d8.md @@ -0,0 +1,13 @@ +--- +id: e8e3d8cf-6ccf-4b39-a625-466151c1b392 +type: BUILDS_ON +from_id: 250d2fe0-5866-42f1-b83d-187b3a64fb84 +from_title: "Fix: claude -p nested session failure due to CLAUDECODE env var" +to_id: ba189013-3890-4464-a22d-cdc3d68d8068 +to_title: "Fixed PostToolUse hook context injection" +strength: 0.73 +created: "2026-03-01T06:21:07.729483+00:00" +updated: "2026-03-01T06:21:07.729483+00:00" +--- + +Auto-edge: Fix: claude -p nested session failure due to CLAUDECODE env var → Fixed PostToolUse hook context injection diff --git a/graph/edges/fix-claude-p-nested-session-fa--BUILDS_ON--shell-aliases-not-available-in-00724a.md b/graph/edges/fix-claude-p-nested-session-fa--BUILDS_ON--shell-aliases-not-available-in-00724a.md new file mode 100644 index 00000000000..58fbc802aa4 --- /dev/null +++ b/graph/edges/fix-claude-p-nested-session-fa--BUILDS_ON--shell-aliases-not-available-in-00724a.md @@ -0,0 +1,13 @@ +--- +id: 00724a32-f9ca-43af-93a9-3d7f7b356ec1 +type: BUILDS_ON +from_id: 250d2fe0-5866-42f1-b83d-187b3a64fb84 +from_title: "Fix: claude -p nested session failure due to CLAUDECODE env var" +to_id: a4efacad-fda5-49ca-97a9-dd433f8a6a77 +to_title: "Shell aliases not available in Claude Code Bash tool" +strength: 0.72 +created: "2026-03-01T06:21:07.746655+00:00" +updated: "2026-03-01T06:21:07.746655+00:00" +--- + +Auto-edge: Fix: claude -p nested session failure due to CLAUDECODE env var → Shell aliases not available in Claude Code Bash tool diff --git a/graph/edges/fix-claude-p-nested-session-fa--RELATED_TO--homelab-session-automation-con-e1e8dc.md b/graph/edges/fix-claude-p-nested-session-fa--RELATED_TO--homelab-session-automation-con-e1e8dc.md new file mode 100644 index 00000000000..2bc4485098d --- /dev/null +++ b/graph/edges/fix-claude-p-nested-session-fa--RELATED_TO--homelab-session-automation-con-e1e8dc.md @@ -0,0 +1,13 @@ +--- +id: e1e8dcea-d240-438a-bf5b-c15bf04c8bb2 +type: RELATED_TO +from_id: 250d2fe0-5866-42f1-b83d-187b3a64fb84 +from_title: "Fix: claude -p nested session failure due to CLAUDECODE env var" +to_id: eed91de9-f5fd-4804-be7c-480d01255ffd +to_title: "[homelab] Session: automation, configuration, creation, debugging, fix, tooling" +strength: 0.73 +created: "2026-03-01T06:21:07.706947+00:00" +updated: "2026-03-01T06:21:07.706947+00:00" +--- + +Auto-edge: Fix: claude -p nested session failure due to CLAUDECODE env var → [homelab] Session: automation, configuration, creation, debugging, fix, tooling diff --git a/graph/fixes/fix-claude-p-nested-session-failure-due-to-claudecode-env-va-250d2f.md b/graph/fixes/fix-claude-p-nested-session-failure-due-to-claudecode-env-va-250d2f.md index d46a265261d..e8d3bb1cabb 100644 --- a/graph/fixes/fix-claude-p-nested-session-failure-due-to-claudecode-env-va-250d2f.md +++ b/graph/fixes/fix-claude-p-nested-session-failure-due-to-claudecode-env-va-250d2f.md @@ -6,7 +6,23 @@ tags: [claude-code, headless, nested-sessions, fix, claude-scheduled, subprocess importance: 0.7 confidence: 0.8 created: "2026-03-01T06:21:07.380774+00:00" -updated: "2026-03-01T06:21:07.380774+00:00" +updated: "2026-03-01T06:21:07.746655+00:00" +relations: + - target: eed91de9-f5fd-4804-be7c-480d01255ffd + type: RELATED_TO + direction: outgoing + strength: 0.73 + edge_id: e1e8dcea-d240-438a-bf5b-c15bf04c8bb2 + - target: ba189013-3890-4464-a22d-cdc3d68d8068 + type: BUILDS_ON + direction: outgoing + strength: 0.73 + edge_id: e8e3d8cf-6ccf-4b39-a625-466151c1b392 + - target: a4efacad-fda5-49ca-97a9-dd433f8a6a77 + type: BUILDS_ON + direction: outgoing + strength: 0.72 + edge_id: 00724a32-f9ca-43af-93a9-3d7f7b356ec1 --- # claude -p Nested Session Error Fix diff --git a/graph/fixes/homelab-session-automation-configuration-creation-debugging-eed91d.md b/graph/fixes/homelab-session-automation-configuration-creation-debugging-eed91d.md index 740a86cad6b..7570b9fb06a 100644 --- a/graph/fixes/homelab-session-automation-configuration-creation-debugging-eed91d.md +++ b/graph/fixes/homelab-session-automation-configuration-creation-debugging-eed91d.md @@ -6,7 +6,13 @@ tags: [homelab, automation, configuration, creation, debugging, fix, tooling, se importance: 0.4 confidence: 0.8 created: "2026-02-17T17:10:40.945407+00:00" -updated: "2026-02-17T17:10:40.945407+00:00" +updated: "2026-03-01T06:21:07.706947+00:00" +relations: + - target: 250d2fe0-5866-42f1-b83d-187b3a64fb84 + type: RELATED_TO + direction: incoming + strength: 0.73 + edge_id: e1e8dcea-d240-438a-bf5b-c15bf04c8bb2 --- Files edited (2): diff --git a/graph/solutions/fixed-posttooluse-hook-context-injection-ba1890.md b/graph/solutions/fixed-posttooluse-hook-context-injection-ba1890.md index 1c1d3b5d049..20d97733e2f 100644 --- a/graph/solutions/fixed-posttooluse-hook-context-injection-ba1890.md +++ b/graph/solutions/fixed-posttooluse-hook-context-injection-ba1890.md @@ -6,7 +6,13 @@ tags: [claude-code, hooks, pai, fix, memorygraph] importance: 0.8 confidence: 0.8 created: "2025-12-07T07:26:28.700934+00:00" -updated: "2025-12-07T07:32:04.922535+00:00" +updated: "2026-03-01T06:21:07.729483+00:00" +relations: + - target: 250d2fe0-5866-42f1-b83d-187b3a64fb84 + type: BUILDS_ON + direction: incoming + strength: 0.73 + edge_id: e8e3d8cf-6ccf-4b39-a625-466151c1b392 --- PostToolUse hooks cannot inject stdout directly into Claude context - only SessionStart and UserPromptSubmit can. The fix is to use JSON output with additionalContext field: {hookSpecificOutput: {hookEventName: 'PostToolUse', additionalContext: 'your message'}}. Also discovered tool_response (not tool_output) is the correct field name, and exitCode doesn't exist - must infer success from stdout patterns. Full reference: https://notes.manticorum.com/reference/claude-code-hooks-context-injection diff --git a/graph/solutions/shell-aliases-not-available-in-claude-code-bash-tool-a4efac.md b/graph/solutions/shell-aliases-not-available-in-claude-code-bash-tool-a4efac.md index 365ec34ddbc..9a1054f4abd 100644 --- a/graph/solutions/shell-aliases-not-available-in-claude-code-bash-tool-a4efac.md +++ b/graph/solutions/shell-aliases-not-available-in-claude-code-bash-tool-a4efac.md @@ -6,7 +6,7 @@ tags: [claude-code, bash, aliases, major-domo, cli] importance: 0.7 confidence: 0.8 created: "2026-01-23T20:40:33.351120+00:00" -updated: "2026-02-27T05:33:28.417546+00:00" +updated: "2026-03-01T06:21:07.746655+00:00" relations: - target: 66bac9cf-1b1e-42f5-903d-d28a9d5e1e1a type: RELATED_TO @@ -18,6 +18,11 @@ relations: direction: incoming strength: 0.7 edge_id: 853896ba-9204-49ce-b6da-0048ab1d78f7 + - target: 250d2fe0-5866-42f1-b83d-187b3a64fb84 + type: BUILDS_ON + direction: incoming + strength: 0.72 + edge_id: 00724a32-f9ca-43af-93a9-3d7f7b356ec1 --- Bash aliases defined in ~/.bashrc (like 'majordomo') are not available in non-interactive shells used by Claude Code's Bash tool. Instead of using the alias, call the underlying command directly. Example: Use 'python ~/.claude/skills/major-domo/cli.py status' instead of 'majordomo status'.