Finish long-running agent parity
This commit is contained in:
@@ -441,13 +441,18 @@ impl App {
|
||||
/// on the state the session is in.
|
||||
fn session_menu_panel<'a>(&self, session: &'a Session) -> Element<'a, Message> {
|
||||
let state = session.state();
|
||||
let compact = menu_action(ICON_SPARK, "Compact context");
|
||||
let compact = if self.can_compact_session(session.id) {
|
||||
compact.on_press(Message::CompactSession(session.id))
|
||||
} else {
|
||||
compact
|
||||
};
|
||||
let mut actions = column![
|
||||
menu_action(ICON_NEW_SESSION, "Rename session")
|
||||
.on_press(Message::StartRenameSession(session.id)),
|
||||
menu_action(ICON_SPARK, "Retitle with AI")
|
||||
.on_press(Message::RetitleSession(session.id)),
|
||||
menu_action(ICON_SPARK, "Compact context")
|
||||
.on_press(Message::CompactSession(session.id)),
|
||||
compact,
|
||||
menu_action(ICON_ARCHIVE, "Rebuild context on next use")
|
||||
.on_press(Message::RebuildSessionContext(session.id)),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user