Skip to content

Commit 7fc83db

Browse files
Claudeclaude
authored andcommitted
feat: seed closing-payload.json during init (OD-780)
Pre-creates the closing payload template so first session close updates an existing file instead of creating one — avoids the permission prompt on fresh installs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e646cd2 commit 7fc83db

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

bin/init-wizard.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,36 @@ async function stepMemoryStore() {
448448
writeJson(configPath, config);
449449
}
450450

451+
// Closing payload template (prevents permission prompt on first session close)
452+
const payloadPath = join(gitmemDir, "closing-payload.json");
453+
if (!existsSync(payloadPath)) {
454+
writeJson(payloadPath, {
455+
closing_reflection: {
456+
what_broke: "",
457+
what_took_longer: "",
458+
do_differently: "",
459+
what_worked: "",
460+
wrong_assumption: "",
461+
scars_applied: [],
462+
institutional_memory_items: "",
463+
collaborative_dynamic: "",
464+
rapport_notes: ""
465+
},
466+
task_completion: {
467+
questions_displayed_at: null,
468+
reflection_completed_at: null,
469+
human_asked_at: null,
470+
human_response_at: null,
471+
human_response: null
472+
},
473+
human_corrections: "",
474+
scars_to_record: [],
475+
learnings_created: [],
476+
open_threads: [],
477+
decisions: []
478+
});
479+
}
480+
451481
// Merge scars
452482
let existing = [];
453483
if (existsSync(learningsPath)) {

0 commit comments

Comments
 (0)