Skip to content

Commit 0f83d6e

Browse files
Myoontyeeclaude
andcommitted
chore: remove reload prompt from Repair Session + add wiki & hooks
Changes: - Remove reload window prompt from all repair modes (user confirmed not needed) - Add wiki/repair-session-feature.md for technical documentation - Add PreToolUse hook to remind about wiki updates when modifying repair code - Add wiki/ and *.wiki.md to .gitignore (local-only documentation) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 166c520 commit 0f83d6e

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

.claude/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
"command": "bash -c 'if echo \"$CLAUDE_TOOL_INPUT\" | grep -qE \"git push|git tag\"; then echo \"\n[HOOK] About to push — running pre-push review...\"; cd \"$(git rev-parse --show-toplevel 2>/dev/null || pwd)\" && git diff --stat origin/$(git rev-parse --abbrev-ref HEAD) 2>/dev/null || git diff --stat HEAD^ 2>/dev/null; fi'"
1010
}
1111
]
12+
},
13+
{
14+
"matcher": "Edit|Write",
15+
"hooks": [
16+
{
17+
"type": "command",
18+
"command": "bash -c 'if echo \"$CLAUDE_TOOL_INPUT\" | grep -qE \"repairSession|Repair.*Session|thinking.*signature\"; then echo \"\n[HOOK] Modifying Repair Session feature — remember to:\n □ Update wiki/repair-session-feature.md if behavior changes\n □ Test all 3 repair options (current/all/clone)\n □ Verify signature stripping in injector.ts still works\n □ Check that cloned sessions are resumable\"; fi'"
19+
}
20+
]
1221
}
1322
]
1423
}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ out/
66

77
# Old export artifacts
88
*__*/
9+
10+
# Wiki documentation (local only)
11+
wiki/
12+
*.wiki.md

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "claude-code-exporter",
33
"displayName": "Claude Code Exporter — Claude Code, Codex & Cursor Conversation History",
44
"description": "Export AI coding agent conversations to Markdown. Supports Claude Code (→ .claude-code-history/), OpenAI Codex (→ .codex-history/), and Cursor Composer (→ .cursor-history/). Features: auto-watch, session inject/import for claude --resume, and repair of thinking-block signature errors when switching API providers.",
5-
"version": "0.6.6",
5+
"version": "0.6.7",
66
"publisher": "myoontyee",
77
"engines": {
88
"vscode": "^1.85.0"

src/extension.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -461,18 +461,9 @@ export function activate(context: vscode.ExtensionContext): void {
461461
if (totalFixed === 0) {
462462
vscode.window.showInformationMessage('No thinking signatures found — sessions are already clean.');
463463
} else {
464-
const action = await vscode.window.showInformationMessage(
465-
`✓ Repaired ${totalFixed} thinking block(s) across ${filesPatched} file(s).` +
466-
`\n\nIf you use Claude Code inside Cursor (embedded terminal / extension), ` +
467-
`reload the window so it picks up the fixed session. ` +
468-
`If you run \`claude --resume\` from an external terminal you can skip this.`,
469-
{ modal: true },
470-
'Reload Window',
471-
'Skip'
464+
vscode.window.showInformationMessage(
465+
`✓ Repaired ${totalFixed} thinking block(s) across ${filesPatched} file(s).`
472466
);
473-
if (action === 'Reload Window') {
474-
vscode.commands.executeCommand('workbench.action.reloadWindow');
475-
}
476467
}
477468
}),
478469

0 commit comments

Comments
 (0)