eigent icon indicating copy to clipboard operation
eigent copied to clipboard

Keep replay and history prompts tied to the right task

Open 09Catho opened this issue 6 months ago • 0 comments

This fixes two closely related prompt mixups in the project replay/history flow.

When replaying a finished task, the app could grab the first prompt it found anywhere in the project instead of the prompt that belonged to the task you actually replayed. Reopening a multi-task project from history had the same shape of bug: every restored task could inherit one shared question instead of its own original prompt.

What changed:

  • replay now reads the active task's own first user message
  • history loading now carries a per-task question map so each restored task keeps its own prompt
  • the history entry points were updated to pass those task-specific prompts through
  • regression tests were added for both the replay path and multi-task history reload path
  • the relevant test mocks were refreshed so those regression tests can actually run

Closes #1367 Closes #1366

Tested with:

  • npx vitest run test/integration/chatStore/replayComplete.test.tsx -t "active task question|per-task questions|correct first question on replayActiveTask"
  • npm run type-check

09Catho avatar May 09 '26 15:05 09Catho