An edit button looks local in the UI, but it can change the validity of everything that follows the edited turn.
CometAPI’s Fable 5.1 migration guidance calls out this specific failure mode: changing earlier conversation history can invalidate thinking blocks. Its recommended direction is to keep histories append-only or use supported compaction patterns. That matters for applications sending multi-turn Fable requests through CometAPI, especially when an “edit and regenerate” control reconstructs an old transcript and then replays later content.
A useful mental model is history fork, not text replacement. If turn 4 changes, do not assume thinking retained from turns 5–8 is still valid context for the new branch. The downstream material was produced against a different prefix.
For a CometAPI integration, I would make the edit policy explicit:
- Prefer an appended correction. Add a new user turn that corrects or supersedes the earlier statement. This preserves the history under which existing thinking was generated.
- If the product must rewrite an old turn, start a new branch. Rebuild the request from a known-valid point and exclude downstream thinking blocks whose prefix has changed.
- Compact only through a supported pattern. Do not label an arbitrary splice or summary as compaction and assume it preserves reasoning validity. The CometAPI article points to supported compaction as the alternative, but it does not define a client-independent compaction API.
- Test the real edit path. A normal fresh conversation is not enough. Exercise an earlier-turn edit through the same CometAPI model route and endpoint used by the application, then verify the regenerated branch rather than merely checking for a successful HTTP response.
The current CometAPI article lists claude-fable-5-1 as the model ID and documents both the Anthropic-compatible /v1/messages endpoint and OpenAI-compatible /v1/chat/completions. Whichever interface the application uses, history ownership should remain in the client: record which prefix produced each retained block, and invalidate that block when the prefix changes.
A minimal test matrix can cover:
- editing only the latest user turn versus an earlier turn;
- appending a correction versus rebuilding a branch;
- retaining versus dropping downstream thinking blocks;
- changing models within the conversation;
- cache behavior and content provenance after the edit.
That last group is not incidental. CometAPI’s migration guidance separately calls for testing per-message effort, turn-scoped system messages, progress updates between tool calls, cache behavior, and content provenance before moving production traffic.
The practical rule is simple: on a CometAPI Fable route, a changed earlier turn should invalidate assumptions tied to the old prefix. Preserve the old branch, append a correction, or rebuild through a supported path—but do not silently replay saved downstream thinking as though the conversation had never changed.