fix(agents): restore archived tasks for continued conversation (#349)

Archived agent tasks could be opened but never returned to the active list, so their message composer stayed disabled. Unarchive is now available in the task header, in the archived-task notice above the composer, and in the task context menu (including mixed bulk selections). Restoring a task moves it back to the active list, keeps its conversation and worktree, and reconnects the existing agent session on the next message; the backend persists and broadcasts the restored status and refuses restoration while a stopped turn is still settling.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-10-30 13:55:26 +08:00
1 джерело 2203938491
коміт 9a5b44bebb
11 files changed
+132 -3

No files matched your search

+6
Переглянути файл
@@ -218,6 +218,12 @@ pub fn agent_archive(window: Window, state: State<'_, AppState>, task: String) -
agent::archive(&state.host, window.label(), task)
}
#[tauri::command]
#[specta::specta]
pub fn agent_unarchive(window: Window, state: State<'_, AppState>, task: String) -> IdeResult<()> {
agent::unarchive(&state.host, window.label(), task)
}
#[tauri::command]
#[specta::specta]
pub async fn agent_delete(
+1
Переглянути файл
@@ -94,6 +94,7 @@ pub fn builder() -> tauri_specta::Builder<tauri::Wry> {
agent::agent_cancel,
agent::agent_respond,
agent::agent_archive,
agent::agent_unarchive,
agent::agent_delete,
agent::agent_changes,
agent::agent_base_text,