paperclip/packages/adapters
lempkey e3804f792d fix: gate instructions file I/O and commandNotes on fresh sessions only
On resumed sessions, skipping --append-system-prompt-file (the original
fix) left two secondary issues:
- commandNotes still claimed the flag was injected, producing misleading
  onMeta logs on every resumed heartbeat
- The instructions file was still read from disk and a combined temp file
  written on every resume, even though effectiveInstructionsFilePath was
  never consumed

Hoist canResumeSession before the I/O block and gate both the disk
operations and commandNotes construction on !canResumeSession / !sessionId.

Adds three regression tests: commandNotes is populated on fresh sessions,
empty on resume; and no agent-instructions.md is written on resume.
2026-04-08 06:57:21 -05:00
..
claude-local fix: gate instructions file I/O and commandNotes on fresh sessions only 2026-04-08 06:57:21 -05:00
codex-local fix: recognize missing-rollout Codex resume error as stale session 2026-04-07 10:45:38 +09:00
cursor-local Trim resumed comment wake prompts 2026-04-04 18:14:19 -05:00
gemini-local Trim resumed comment wake prompts 2026-04-04 18:14:19 -05:00
openclaw-gateway Merge pull request #2143 from shoaib050326/codex/issue-2131-openclaw-session-key 2026-04-07 16:53:18 -05:00
opencode-local Clean up opencode rebase and stabilize runtime test 2026-04-04 18:15:28 -05:00
pi-local Treat Pi quota exhaustion as a failed run (#2305) 2026-04-06 14:29:41 -07:00