Remove the current list/index-based history tracking mechanism and replace it with the new PromptSession model defined in history_model.py. All undo/redo and state mutation logic should flow through this new structure.
Ensure that session state transitions, UI refreshes, and prompt generation behave identically to current behavior.
Acceptance Criteria:
PromptSession is instantiated in place of previous history state mechanism
- Undo and redo work using
session.undo() / session.redo() with correct view updates
- App behavior is unchanged from the user’s perspective
- No legacy history list/index logic remains active
Remove the current list/index-based history tracking mechanism and replace it with the new
PromptSessionmodel defined inhistory_model.py. All undo/redo and state mutation logic should flow through this new structure.Ensure that session state transitions, UI refreshes, and prompt generation behave identically to current behavior.
Acceptance Criteria:
PromptSessionis instantiated in place of previous history state mechanismsession.undo()/session.redo()with correct view updates