eigent
eigent copied to clipboard
fix: multi task question persistence and replay
Related Issue
Closes #1366 Closes #1367
Description
- Multi-task question persistence: When loading a project with multiple tasks from history, all tasks were incorrectly shown with the first task's question. Fixed by changing the question: string parameter to questions: string[] across the entire load/replay chain (projectStore, lib/replay.ts, ProjectGroup.tsx, HistorySidebar, SearchHistoryDialog), so each task receives its own question.
- Replay shows wrong question: When clicking Replay on a specific task, it was using the earliest question found across all chat stores (always task 1's) instead of the active task's own question. Fixed replayActiveTask to simply read the question from the current active task's messages.
Testing Evidence (REQUIRED)
-
Multi-task
-
Replay with the latest task for now
-
[x] I have included human-verified testing evidence in this PR.
-
[ ] This PR includes frontend/UI changes, and I attached screenshot(s) or screen recording(s).
-
[ ] No frontend/UI changes in this PR.
What is the purpose of this pull request?
- [x] Bug fix
- [ ] New Feature
- [ ] Documentation update
- [ ] Other
Contribution Guidelines Acknowledgement
- [ ] I have read and agree to the Eigent Contribution Guideline