singularity-forge/src/resources/extensions
Mikael Hugo 1a681caa86 fix(auto): repair retries reuse session context instead of starting cold
When the autonomous solver fails to produce a checkpoint and enters the
repair loop, subsequent retries previously called newSession() each time,
wiping the conversation history. The agent restarted cold with no memory
of what it had tried, what tools it had called, or why it failed — making
meaningful repair nearly impossible.

This change adds a keepSession option to runUnit(). When true, the
newSession() call and session-switch guard logic are skipped; the repair
prompt is sent as a follow-up in the existing conversation. The agent can
now see its prior tool calls, file reads, and failure context when deciding
how to fix the issue.

Policy:
- First attempt at each unit: keepSession=false (clean session, correct
  for independent slice boundaries — system prompt carries project state)
- Repair retries within the same unit: keepSession=true (agent carries
  full context of what it already tried)
- Next unit after success/failure: keepSession=false (clean boundary)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-10 02:50:57 +02:00
..
async-jobs chore: commit current workspace state 2026-05-05 14:46:18 +02:00
aws-auth chore: commit current workspace state 2026-05-05 14:46:18 +02:00
bg-shell fix: remove stale M001/M002 milestone dirs; fix dispatch-guard circular dep; fix telemetry normalization 2026-05-10 02:12:13 +02:00
browser-tools feat(sf): align node sqlite uok runtime 2026-05-08 03:01:20 +02:00
claude-code-cli feat(sf): align node sqlite uok runtime 2026-05-08 03:01:20 +02:00
cmux feat(sf): align node sqlite uok runtime 2026-05-08 03:01:20 +02:00
context7 feat(sf): align node sqlite uok runtime 2026-05-08 03:01:20 +02:00
github-sync chore: commit current workspace state 2026-05-05 14:46:18 +02:00
google-search feat(sf): align node sqlite uok runtime 2026-05-08 03:01:20 +02:00
guardrails feat: improve sf runtime self-reload and safeguards 2026-05-08 23:52:35 +02:00
mac-tools chore: commit current workspace state 2026-05-05 14:46:18 +02:00
mcp-client docs: align runtime state and mcp boundaries 2026-05-07 03:09:55 +02:00
ollama sf snapshot: uncommitted changes after 49m inactivity 2026-05-08 01:07:24 +02:00
remote-questions sf snapshot: uncommitted changes after 49m inactivity 2026-05-08 01:07:24 +02:00
search-the-web feat: record retrieval evidence across context tools 2026-05-07 18:17:41 +02:00
sf fix(auto): repair retries reuse session context instead of starting cold 2026-05-10 02:50:57 +02:00
sf-inturn-guard style: format repository with biome 2026-05-05 14:31:16 +02:00
sf-notify chore: commit current workspace state 2026-05-05 14:46:18 +02:00
sf-permissions feat(sf): align node sqlite uok runtime 2026-05-08 03:01:20 +02:00
sf-tui feat(sf): Tier 4 — ASK_USER_ELICITATION, CONFIGURE_COPILOT_AGENT, BACKGROUND_SESSIONS, MULTI_TURN_AGENTS, marketplace Enter install 2026-05-09 07:30:33 +02:00
sf-usage-bar fix: clean provider surfaces and core build 2026-05-05 16:31:53 +02:00
shared chore: commit current workspace state 2026-05-05 14:46:18 +02:00
slash-commands style: format repository with biome 2026-05-05 14:31:16 +02:00
subagent feat(sf): align uok task state and steering 2026-05-08 06:57:59 +02:00
ttsr chore: commit current workspace state 2026-05-05 14:46:18 +02:00
universal-config feat(sf): align node sqlite uok runtime 2026-05-08 03:01:20 +02:00
vectordrive chore: commit current workspace state 2026-05-05 14:46:18 +02:00
voice chore: commit current workspace state 2026-05-05 14:46:18 +02:00
ask-user-questions.js chore: commit current workspace state 2026-05-05 14:46:18 +02:00
get-secrets-from-user.js chore: commit current workspace state 2026-05-05 14:46:18 +02:00
package.json feat(sf): align node sqlite uok runtime 2026-05-08 03:01:20 +02:00