feat(tui): wire up undo/redo and revert for V2 sessions (#34263)

This commit is contained in:
Dax 2026-06-27 20:04:53 -04:00 committed by GitHub
commit d1d7ebc2c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 478 additions and 87 deletions

View file

@ -84,6 +84,16 @@ export const Moved = Event.define({
})
export type Moved = typeof Moved.Type
export const Renamed = Event.define({
type: "session.next.renamed",
...options,
schema: {
...Base,
title: Schema.String,
},
})
export type Renamed = typeof Renamed.Type
export const Prompted = Event.define({
type: "session.next.prompted",
...options,
@ -449,6 +459,7 @@ export const DurableDefinitions = Event.inventory(
AgentSwitched,
ModelSwitched,
Moved,
Renamed,
Prompted,
PromptAdmitted,
ContextUpdated,
@ -480,6 +491,7 @@ export const Definitions = Event.inventory(
AgentSwitched,
ModelSwitched,
Moved,
Renamed,
Prompted,
PromptAdmitted,
ContextUpdated,