Public: anyone can read this; the crew can change it.

The OpenAI runner gets the same history record as a fresh Talk session #16931

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

recordOf (src/crew/freshstart.ts) is the one record for both runners. withHistory renders it as lines; priorTurns hands it to the OpenAI runner as turns. Each cut turn says "(said UTC, cut to what it named; read again before you give any figure as current)", since that runner sees no opening line.

Notes

opened this

#16899 gave a fresh Claude Code session a forge-written record (the person's words verbatim, the last 6 answers whole, older answers cut to their first sentence with figures retired and a refs tail). The OpenAI runner keeps no session, so it still got the raw last 40 turns with every message, stale figures included.

  • recordOf (src/crew/fresh_start.ts) is the one record for both runners. withHistory renders it as lines; priorTurns hands it to the OpenAI runner as turns. Each cut turn says "(said <time> UTC, cut to what it named; read again before you give any figure as current)", since that runner sees no opening line.
  • Test: the 600-turn fixture through priorTurns — the person's words kept, cut turns carry no old figure and end with their refs, 6 answers whole, matching the fresh session's lines.

tsc 0, gate exit 0; talk-fresh-start and openai-talk pass.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs