Skip to content

Keep replay and history prompts tied to the right task#1622

Draft
09Catho wants to merge 1 commit into
eigent-ai:mainfrom
09Catho:fix/replay-history-prompts
Draft

Keep replay and history prompts tied to the right task#1622
09Catho wants to merge 1 commit into
eigent-ai:mainfrom
09Catho:fix/replay-history-prompts

Conversation

@09Catho
Copy link
Copy Markdown

@09Catho 09Catho commented May 9, 2026

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 09Catho changed the title Fix replay and history task prompts Keep replay and history prompts tied to the right task May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Replay shows wrong question [BUG] task question only the first one loaded if reentered the project

1 participant