opencode/packages
Kit Langton 0726f09b05 feat(core): make path-local instruction discovery durable
Replace synthetic-message instruction injection with a durable
discovery projection so discovered AGENTS.md files survive compaction,
forks, reverts, and restarts.

- Add the instruction_file table and the durable
  session.instructions.discovered event; projection stores each
  discovered path and content with its owning assistant-message
  boundary and durable discovery order.
- Fold discovered files into the core/instructions source through
  InstructionDiscovery, absorbing SessionInstructions. Completed
  compaction rebaselines restate discovered instructions instead of
  summarizing them away.
- Re-read discovered files live at each observation so mid-session
  edits reach the model; the frozen discovery content stands in only
  when a file becomes unreadable.
- Narrate instruction file changes as per-file deltas via diffByKey,
  restating the full set only for pure reorderings.
- Fork copies discoveries within the inherited transcript, committed
  revert removes discoveries past the revert boundary, and Session
  movement clears them so the destination initializes a complete
  baseline.
2026-07-06 17:36:30 -04:00
..
app chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
cli chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
client feat(core): make path-local instruction discovery durable 2026-07-06 17:36:30 -04:00
codemode fix(codemode): preserve async callback semantics (#35603) 2026-07-06 17:29:11 -04:00
console chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
containers chore: Upgrade Bun to the final non-rust version (#27648) 2026-05-18 09:24:26 +10:00
core feat(core): make path-local instruction discovery durable 2026-07-06 17:36:30 -04:00
desktop chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
docs feat(tui): use canonical prompt attachments 2026-07-06 14:35:31 -04:00
effect-drizzle-sqlite chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
effect-sqlite-node chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
enterprise chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
function chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
http-recorder chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
httpapi-codegen refactor(core): rename system context to instructions (#35583) 2026-07-06 14:29:29 -04:00
identity chore: identity cleanup, vscode ext images 2025-12-08 06:47:57 -06:00
llm chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
opencode chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
plugin chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
protocol feat(core): resolve prompt attachments 2026-07-06 15:04:23 -04:00
schema feat(core): make path-local instruction discovery durable 2026-07-06 17:36:30 -04:00
script feat(schema): publish package 2026-07-01 13:33:59 -04:00
sdk feat(core): make path-local instruction discovery durable 2026-07-06 17:36:30 -04:00
sdk-next feat(v2): expose canonical schema contracts (#35595) 2026-07-06 15:45:46 -04:00
server chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
session-ui chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
simulation feat(simulation): isolate filesystem and disconnect llm (#35590) 2026-07-06 15:39:03 -04:00
slack chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
stats chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
storybook chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
tui fix(tui): detect backgrounded subagents 2026-07-06 17:15:03 -04:00
ui chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
web chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00