1
0
Fork 0
mirror of https://github.com/imjasonh/cnotes synced 2026-07-08 09:05:17 +00:00

Fix user prompt parsing to handle string content format

- Add support for message.content as direct string (not just array format)
- Handles both old and new transcript formats from Claude
- User prompts like 'I would expect cnotes show to include my user prompt' now captured correctly
This commit is contained in:
Jason Hall 2025-07-21 14:02:53 -04:00
parent 042ee0911b
commit f7482327c3
Failed to extract signature
4 changed files with 76 additions and 10 deletions

View file

@ -9,6 +9,15 @@
"command": "/Users/jason/go/bin/cnotes"
}
]
},
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/var/folders/3z/q0v7phks3lsc_ryxstdz5h3m0000gn/T/go-build618894364/b001/exe/cnotes"
}
]
}
],
"PostToolUse": [
@ -20,6 +29,15 @@
"command": "/Users/jason/go/bin/cnotes"
}
]
},
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/var/folders/3z/q0v7phks3lsc_ryxstdz5h3m0000gn/T/go-build618894364/b001/exe/cnotes"
}
]
}
],
"PreCompact": [
@ -31,6 +49,15 @@
"command": "/Users/jason/go/bin/cnotes"
}
]
},
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/var/folders/3z/q0v7phks3lsc_ryxstdz5h3m0000gn/T/go-build618894364/b001/exe/cnotes"
}
]
}
],
"PreToolUse": [
@ -42,6 +69,15 @@
"command": "/Users/jason/go/bin/cnotes"
}
]
},
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/var/folders/3z/q0v7phks3lsc_ryxstdz5h3m0000gn/T/go-build618894364/b001/exe/cnotes"
}
]
}
],
"Stop": [
@ -53,6 +89,15 @@
"command": "/Users/jason/go/bin/cnotes"
}
]
},
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/var/folders/3z/q0v7phks3lsc_ryxstdz5h3m0000gn/T/go-build618894364/b001/exe/cnotes"
}
]
}
],
"SubagentStop": [
@ -64,6 +109,15 @@
"command": "/Users/jason/go/bin/cnotes"
}
]
},
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/var/folders/3z/q0v7phks3lsc_ryxstdz5h3m0000gn/T/go-build618894364/b001/exe/cnotes"
}
]
}
],
"UserPromptSubmit": [
@ -75,7 +129,16 @@
"command": "/Users/jason/go/bin/cnotes"
}
]
},
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/var/folders/3z/q0v7phks3lsc_ryxstdz5h3m0000gn/T/go-build618894364/b001/exe/cnotes"
}
]
}
]
}
}
}