Skip to content

Commit 0cf43db

Browse files
hjbrandtclaude
andcommitted
fix: Use TitleCase 'Raw-Outputs' in hook path references
Hooks were using lowercase 'raw-outputs' but the History directory structure uses TitleCase 'Raw-Outputs'. This causes hooks to fail on case-sensitive filesystems (Linux). Files fixed: - capture-all-events.ts - capture-session-summary.ts (2 occurrences) - capture-tool-output.ts Fixes #237 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent f8a04c3 commit 0cf43db

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.claude/Hooks/capture-all-events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function getEventsFilePath(): string {
4343
const month = String(pstDate.getMonth() + 1).padStart(2, '0');
4444
const day = String(pstDate.getDate()).padStart(2, '0');
4545

46-
const monthDir = join(HISTORY_DIR, 'raw-outputs', `${year}-${month}`);
46+
const monthDir = join(HISTORY_DIR, 'Raw-Outputs', `${year}-${month}`);
4747

4848
// Ensure directory exists
4949
if (!existsSync(monthDir)) {

.claude/Hooks/capture-session-summary.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function main() {
6565

6666
async function analyzeSession(conversationId: string, yearMonth: string): Promise<any> {
6767
// Try to read raw outputs for this session
68-
const rawOutputsDir = join(HISTORY_DIR, 'raw-outputs', yearMonth);
68+
const rawOutputsDir = join(HISTORY_DIR, 'Raw-Outputs', yearMonth);
6969

7070
let filesChanged: string[] = [];
7171
let commandsExecuted: string[] = [];
@@ -168,7 +168,7 @@ ${info.commandsExecuted.length > 0 ? '```bash\n' + info.commandsExecuted.join('\
168168
169169
This session summary was automatically generated by the UOCS SessionEnd hook.
170170
171-
For detailed tool outputs, see: \`\${PAI_DIR}/History/raw-outputs/${timestamp.substring(0, 7)}/\`
171+
For detailed tool outputs, see: \`\${PAI_DIR}/History/Raw-Outputs/${timestamp.substring(0, 7)}/\`
172172
173173
---
174174

.claude/Hooks/capture-tool-output.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface ToolUseData {
2020
}
2121

2222
// Configuration
23-
const CAPTURE_DIR = join(HISTORY_DIR, 'raw-outputs');
23+
const CAPTURE_DIR = join(HISTORY_DIR, 'Raw-Outputs');
2424
const INTERESTING_TOOLS = ['Bash', 'Edit', 'Write', 'Read', 'Task', 'NotebookEdit'];
2525

2626
async function main() {

0 commit comments

Comments
 (0)