diff --git a/README.md b/README.md index ffa1c97c..474717c9 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,30 @@ Il token sta nell'archivio delle chiavi (`provider_api_key_store`, id `telegram- ## Novità +### 0.9.1 + +- **Rete della sandbox verso i registri dei pacchetti** (decisione dell'utente, opzione «C»): nella sandbox predefinita (`:workspace`: scrittura solo nella cartella del progetto e in `/tmp`, come prima) la rete ora è attiva ma passa dal proxy di rete locale di aKode, che lascia passare solo i registri dei pacchetti; le altre destinazioni ricevono `403 Domain not in allowlist` e la rete diretta resta bloccata da Seatbelt. Le scritture non cambiano, e chi ha scelto esplicitamente `sandbox_mode` o un profilo `default_permissions` resta com'era. Domini predefiniti: `pypi.org`, `files.pythonhosted.org`, `registry.npmjs.org`, `registry.yarnpkg.com`, `pub.dev`, `storage.googleapis.com`, `crates.io`, `static.crates.io`, `index.crates.io`, `github.com`, `codeload.github.com`, `objects.githubusercontent.com`. Si cambiano in `~/.akode/config.toml`: + ```toml + [features.network_proxy.domains] + "gitlab.com" = "allow" # aggiunge un dominio + "pub.dev" = "deny" # ne toglie uno + ``` + Per tornare alla sandbox senza rete delle versioni precedenti: + ```toml + [sandbox_workspace_write] + network_access = false + ``` + I valori predefiniti stanno in `akode-rs/config/defaults.toml`. +- **apply_patch tollerante**: se mancano `*** Begin Patch` o `*** End Patch` ma il contenuto è un patch valido (inizia con `*** Add File:`, `*** Update File:` o `*** Delete File:`), aKode li aggiunge; toglie anche un recinto ```` ``` ```` attorno al patch. Ogni altra ambiguità resta un errore, e il patch passa sempre dalle stesse verifiche, sandbox e approvazioni. Agli errori di formato segue una riga con il formato esatto e un esempio minimo. +- **Strumento `write_file`** (percorso + contenuto intero): crea un file o lo riscrive tutto. Passa dalla stessa pipeline di `apply_patch` (verifica, sandbox, approvazioni, hook, eventi), quindi non permette niente di più. Serve ai modelli che conoscono solo il function calling JSON e cercano uno strumento «write» (Qwen chiamava `write_stdin` con un id inventato). Si spegne con `[tools] write_file = false`. +- **Protezione dai loop più paziente**: quando il modello ripete la stessa chiamata fallita, aKode prima lo avvisa una volta (con l'errore da leggere e gli strumenti giusti) e ferma il turno solo se continua. +- **Coda e lettura del prompt visibili**: con il gateway imeAI la riga di stato mostra `In coda · 2 richieste davanti · ~40 s` e `Leggo il prompt · 42% · ~1 min 20 s` (eventi `imeai.queue` e `imeai.prefill`); prima un primo turno a cache fredda restava minuti su «Working». +- **Ogni chiamata a strumento fallita si vede nella TUI** con una riga compatta, per esempio `✗ apply_patch: manca '*** Begin Patch' · riprovo`. +- **Avanzamento delle chiamate lunghe**: mentre il modello scrive gli argomenti di uno strumento (un file intero dentro `apply_patch`, un `cat > file`), la riga di stato mostra `Scrivo fourier.py · 1.240 token`. +- **`write_stdin` con una sessione inesistente**: l'errore elenca le sessioni aperte (o «none») e indica di usare `exec_command`; descrizione dello strumento più chiara. +- **Errori di rete dentro la sandbox**: se un comando fallisce per la rete (pip, npm, curl, git…), all'output si aggiunge una nota per il modello: è la sandbox, non la connessione; quali host sono raggiungibili; come chiedere all'utente di eseguire fuori dalla sandbox (`require_escalated`), oppure, se la politica di approvazione non lo permette, di dirlo all'utente. +- **Testi della TUI in italiano**: messaggio di benvenuto e comandi suggeriti, «Chiedi ad aKode qualsiasi cosa», «per gli agenti», «per le scorciatoie», «Errore fatale». + ### 0.9.0 - **Cache del prompt più stabile** (misure sul server imeAI): diff --git a/akode-rs/akode-api/src/common.rs b/akode-rs/akode-api/src/common.rs index 3dd1fbad..6d51c398 100644 --- a/akode-rs/akode-api/src/common.rs +++ b/akode-rs/akode-api/src/common.rs @@ -92,6 +92,14 @@ pub enum ResponseEvent { call_id: Option, delta: String, }, + /// aKode: progress of a local server before generation starts (imeAI gateway + /// `imeai.queue` / `imeai.prefill`): `kind` is `queue` or `prefill`. + ServerProgress { + kind: String, + percent: Option, + eta_s: Option, + ahead: Option, + }, ReasoningSummaryDelta { delta: String, summary_index: i64, diff --git a/akode-rs/akode-api/src/sse/responses.rs b/akode-rs/akode-api/src/sse/responses.rs index b146c6d7..f826411b 100644 --- a/akode-rs/akode-api/src/sse/responses.rs +++ b/akode-rs/akode-api/src/sse/responses.rs @@ -345,7 +345,9 @@ pub fn process_responses_event( return Ok(Some(ResponseEvent::OutputTextDelta(delta))); } } - "response.custom_tool_call_input.delta" => { + // aKode: function arguments stream too (used for progress while a long + // call is generated). `call_id` is usually absent: the active call is used. + "response.custom_tool_call_input.delta" | "response.function_call_arguments.delta" => { if let (Some(delta), Some(item_id)) = (event.delta, event.item_id.clone().or(event.call_id.clone())) { @@ -488,7 +490,6 @@ pub fn process_responses_event( | "response.content_part.added" | "response.content_part.done" | "response.custom_tool_call_input.done" - | "response.function_call_arguments.delta" | "response.function_call_arguments.done" | "response.in_progress" | "response.metadata" @@ -590,7 +591,12 @@ async fn process_sse_with_treatment( trace!("SSE event: {}", &sse.data); if is_server_progress_event(&sse.event) { - // Queue position and prompt-reading progress: only signs of life for this client. + // Queue position and prompt-reading progress: shown by the client as status. + if let Some(event) = server_progress_event(&sse.event, &sse.data) + && tx_event.send(Ok(event)).await.is_err() + { + return; + } continue; } @@ -675,6 +681,23 @@ fn is_server_progress_event(event: &str) -> bool { event.starts_with("imeai.") } +/// `imeai.queue` / `imeai.prefill` as a [`ResponseEvent::ServerProgress`]; other +/// `imeai.*` events (or malformed data) yield nothing. +fn server_progress_event(event: &str, data: &str) -> Option { + let kind = match event { + "imeai.queue" => "queue", + "imeai.prefill" => "prefill", + _ => return None, + }; + let value: Value = serde_json::from_str(data).ok()?; + Some(ResponseEvent::ServerProgress { + kind: kind.to_string(), + percent: value.get("percent").and_then(Value::as_f64), + eta_s: value.get("eta_s").and_then(Value::as_f64), + ahead: value.get("ahead").and_then(Value::as_u64), + }) +} + /// Waits for the next SSE event; fails only after `idle_timeout` without any bytes at all, so /// keep-alive comments and progress events keep a long prompt read alive. async fn next_with_activity_timeout( @@ -1047,7 +1070,15 @@ mod tests { delta, } if item_id == "ctc_1" && call_id == "call_1" && delta == "*** Begin" ); - assert_matches!(&events[1], ResponseEvent::Completed { .. }); + assert_matches!( + &events[1], + ResponseEvent::ToolCallInputDelta { + item_id, + call_id: None, + delta, + } if item_id == "fc_1" && delta == "{\"input\":\"" + ); + assert_matches!(&events[2], ResponseEvent::Completed { .. }); } #[tokio::test] @@ -1139,8 +1170,18 @@ data: {"type":"response.completed","response":{"id":"resp1"}} let events = collect_until_closed(stream).await; - assert_eq!(events.len(), 1, "{events:?}"); - assert_matches!(&events[0], Ok(ResponseEvent::Completed { response_id, .. }) if response_id == "resp1"); + // aKode: queue and prefill progress are forwarded to the client as status. + assert_eq!(events.len(), 4, "{events:?}"); + assert_matches!( + &events[0], + Ok(ResponseEvent::ServerProgress { kind, ahead: Some(1), .. }) if kind == "queue" + ); + assert_matches!( + &events[1], + Ok(ResponseEvent::ServerProgress { kind, percent: Some(40.0), eta_s: Some(3.0), .. }) + if kind == "prefill" + ); + assert_matches!(&events[3], Ok(ResponseEvent::Completed { response_id, .. }) if response_id == "resp1"); } #[tokio::test(start_paused = true)] diff --git a/akode-rs/app-server-protocol/schema/json/ServerNotification.json b/akode-rs/app-server-protocol/schema/json/ServerNotification.json index 103e860a..e599f2da 100644 --- a/akode-rs/app-server-protocol/schema/json/ServerNotification.json +++ b/akode-rs/app-server-protocol/schema/json/ServerNotification.json @@ -3538,6 +3538,49 @@ } ] }, + "ServerProgressNotification": { + "description": "aKode: a local server is queueing the request or reading the prompt.", + "properties": { + "ahead": { + "format": "uint64", + "minimum": 0.0, + "type": [ + "integer", + "null" + ] + }, + "etaS": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "kind": { + "description": "`queue` or `prefill`.", + "type": "string" + }, + "percent": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "threadId": { + "type": "string" + }, + "turnId": { + "type": "string" + } + }, + "required": [ + "kind", + "threadId", + "turnId" + ], + "type": "object" + }, "ServerRequestResolvedNotification": { "properties": { "requestId": { @@ -6185,6 +6228,44 @@ ], "type": "object" }, + "ToolCallInputProgressNotification": { + "description": "aKode: the model is still generating the arguments of a tool call.", + "properties": { + "callId": { + "type": "string" + }, + "target": { + "description": "File or target recognized in the partial arguments, if any.", + "type": [ + "string", + "null" + ] + }, + "threadId": { + "type": "string" + }, + "tokens": { + "description": "Approximate number of argument tokens generated so far.", + "format": "uint64", + "minimum": 0.0, + "type": "integer" + }, + "toolName": { + "type": "string" + }, + "turnId": { + "type": "string" + } + }, + "required": [ + "callId", + "threadId", + "tokens", + "toolName", + "turnId" + ], + "type": "object" + }, "Turn": { "properties": { "completedAt": { @@ -7719,6 +7800,46 @@ "title": "Item/fileChange/patchUpdatedNotification", "type": "object" }, + { + "properties": { + "method": { + "enum": [ + "item/toolCall/inputProgress" + ], + "title": "Item/toolCall/inputProgressNotificationMethod", + "type": "string" + }, + "params": { + "$ref": "#/definitions/ToolCallInputProgressNotification" + } + }, + "required": [ + "method", + "params" + ], + "title": "Item/toolCall/inputProgressNotification", + "type": "object" + }, + { + "properties": { + "method": { + "enum": [ + "turn/serverProgress" + ], + "title": "Turn/serverProgressNotificationMethod", + "type": "string" + }, + "params": { + "$ref": "#/definitions/ServerProgressNotification" + } + }, + "required": [ + "method", + "params" + ], + "title": "Turn/serverProgressNotification", + "type": "object" + }, { "properties": { "method": { diff --git a/akode-rs/app-server-protocol/schema/json/akode_app_server_protocol.schemas.json b/akode-rs/app-server-protocol/schema/json/akode_app_server_protocol.schemas.json index 43961f6f..20b69144 100644 --- a/akode-rs/app-server-protocol/schema/json/akode_app_server_protocol.schemas.json +++ b/akode-rs/app-server-protocol/schema/json/akode_app_server_protocol.schemas.json @@ -5270,6 +5270,46 @@ "title": "Item/fileChange/patchUpdatedNotification", "type": "object" }, + { + "properties": { + "method": { + "enum": [ + "item/toolCall/inputProgress" + ], + "title": "Item/toolCall/inputProgressNotificationMethod", + "type": "string" + }, + "params": { + "$ref": "#/definitions/v2/ToolCallInputProgressNotification" + } + }, + "required": [ + "method", + "params" + ], + "title": "Item/toolCall/inputProgressNotification", + "type": "object" + }, + { + "properties": { + "method": { + "enum": [ + "turn/serverProgress" + ], + "title": "Turn/serverProgressNotificationMethod", + "type": "string" + }, + "params": { + "$ref": "#/definitions/v2/ServerProgressNotification" + } + }, + "required": [ + "method", + "params" + ], + "title": "Turn/serverProgressNotification", + "type": "object" + }, { "properties": { "method": { @@ -18553,6 +18593,51 @@ ], "type": "object" }, + "ServerProgressNotification": { + "$schema": "http://json-schema.org/draft-07/schema#", + "description": "aKode: a local server is queueing the request or reading the prompt.", + "properties": { + "ahead": { + "format": "uint64", + "minimum": 0.0, + "type": [ + "integer", + "null" + ] + }, + "etaS": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "kind": { + "description": "`queue` or `prefill`.", + "type": "string" + }, + "percent": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "threadId": { + "type": "string" + }, + "turnId": { + "type": "string" + } + }, + "required": [ + "kind", + "threadId", + "turnId" + ], + "title": "ServerProgressNotification", + "type": "object" + }, "ServerRequestResolvedNotification": { "$schema": "http://json-schema.org/draft-07/schema#", "properties": { @@ -24161,6 +24246,46 @@ ], "type": "object" }, + "ToolCallInputProgressNotification": { + "$schema": "http://json-schema.org/draft-07/schema#", + "description": "aKode: the model is still generating the arguments of a tool call.", + "properties": { + "callId": { + "type": "string" + }, + "target": { + "description": "File or target recognized in the partial arguments, if any.", + "type": [ + "string", + "null" + ] + }, + "threadId": { + "type": "string" + }, + "tokens": { + "description": "Approximate number of argument tokens generated so far.", + "format": "uint64", + "minimum": 0.0, + "type": "integer" + }, + "toolName": { + "type": "string" + }, + "turnId": { + "type": "string" + } + }, + "required": [ + "callId", + "threadId", + "tokens", + "toolName", + "turnId" + ], + "title": "ToolCallInputProgressNotification", + "type": "object" + }, "ToolExposureSurface": { "description": "A model-facing surface on which a tool can be exposed.", "oneOf": [ diff --git a/akode-rs/app-server-protocol/schema/json/akode_app_server_protocol.v2.schemas.json b/akode-rs/app-server-protocol/schema/json/akode_app_server_protocol.v2.schemas.json index b3004fa1..b3591086 100644 --- a/akode-rs/app-server-protocol/schema/json/akode_app_server_protocol.v2.schemas.json +++ b/akode-rs/app-server-protocol/schema/json/akode_app_server_protocol.v2.schemas.json @@ -15586,6 +15586,46 @@ "title": "Item/fileChange/patchUpdatedNotification", "type": "object" }, + { + "properties": { + "method": { + "enum": [ + "item/toolCall/inputProgress" + ], + "title": "Item/toolCall/inputProgressNotificationMethod", + "type": "string" + }, + "params": { + "$ref": "#/definitions/ToolCallInputProgressNotification" + } + }, + "required": [ + "method", + "params" + ], + "title": "Item/toolCall/inputProgressNotification", + "type": "object" + }, + { + "properties": { + "method": { + "enum": [ + "turn/serverProgress" + ], + "title": "Turn/serverProgressNotificationMethod", + "type": "string" + }, + "params": { + "$ref": "#/definitions/ServerProgressNotification" + } + }, + "required": [ + "method", + "params" + ], + "title": "Turn/serverProgressNotification", + "type": "object" + }, { "properties": { "method": { @@ -16378,6 +16418,51 @@ }, "title": "ServerNotification" }, + "ServerProgressNotification": { + "$schema": "http://json-schema.org/draft-07/schema#", + "description": "aKode: a local server is queueing the request or reading the prompt.", + "properties": { + "ahead": { + "format": "uint64", + "minimum": 0.0, + "type": [ + "integer", + "null" + ] + }, + "etaS": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "kind": { + "description": "`queue` or `prefill`.", + "type": "string" + }, + "percent": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "threadId": { + "type": "string" + }, + "turnId": { + "type": "string" + } + }, + "required": [ + "kind", + "threadId", + "turnId" + ], + "title": "ServerProgressNotification", + "type": "object" + }, "ServerRequestResolvedNotification": { "$schema": "http://json-schema.org/draft-07/schema#", "properties": { @@ -21986,6 +22071,46 @@ ], "type": "object" }, + "ToolCallInputProgressNotification": { + "$schema": "http://json-schema.org/draft-07/schema#", + "description": "aKode: the model is still generating the arguments of a tool call.", + "properties": { + "callId": { + "type": "string" + }, + "target": { + "description": "File or target recognized in the partial arguments, if any.", + "type": [ + "string", + "null" + ] + }, + "threadId": { + "type": "string" + }, + "tokens": { + "description": "Approximate number of argument tokens generated so far.", + "format": "uint64", + "minimum": 0.0, + "type": "integer" + }, + "toolName": { + "type": "string" + }, + "turnId": { + "type": "string" + } + }, + "required": [ + "callId", + "threadId", + "tokens", + "toolName", + "turnId" + ], + "title": "ToolCallInputProgressNotification", + "type": "object" + }, "ToolExposureSurface": { "description": "A model-facing surface on which a tool can be exposed.", "oneOf": [ diff --git a/akode-rs/app-server-protocol/schema/json/v2/ServerProgressNotification.json b/akode-rs/app-server-protocol/schema/json/v2/ServerProgressNotification.json new file mode 100644 index 00000000..7adcdee1 --- /dev/null +++ b/akode-rs/app-server-protocol/schema/json/v2/ServerProgressNotification.json @@ -0,0 +1,45 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "description": "aKode: a local server is queueing the request or reading the prompt.", + "properties": { + "ahead": { + "format": "uint64", + "minimum": 0.0, + "type": [ + "integer", + "null" + ] + }, + "etaS": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "kind": { + "description": "`queue` or `prefill`.", + "type": "string" + }, + "percent": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "threadId": { + "type": "string" + }, + "turnId": { + "type": "string" + } + }, + "required": [ + "kind", + "threadId", + "turnId" + ], + "title": "ServerProgressNotification", + "type": "object" +} \ No newline at end of file diff --git a/akode-rs/app-server-protocol/schema/json/v2/ToolCallInputProgressNotification.json b/akode-rs/app-server-protocol/schema/json/v2/ToolCallInputProgressNotification.json new file mode 100644 index 00000000..82ae6fdd --- /dev/null +++ b/akode-rs/app-server-protocol/schema/json/v2/ToolCallInputProgressNotification.json @@ -0,0 +1,40 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "description": "aKode: the model is still generating the arguments of a tool call.", + "properties": { + "callId": { + "type": "string" + }, + "target": { + "description": "File or target recognized in the partial arguments, if any.", + "type": [ + "string", + "null" + ] + }, + "threadId": { + "type": "string" + }, + "tokens": { + "description": "Approximate number of argument tokens generated so far.", + "format": "uint64", + "minimum": 0.0, + "type": "integer" + }, + "toolName": { + "type": "string" + }, + "turnId": { + "type": "string" + } + }, + "required": [ + "callId", + "threadId", + "tokens", + "toolName", + "turnId" + ], + "title": "ToolCallInputProgressNotification", + "type": "object" +} \ No newline at end of file diff --git a/akode-rs/app-server-protocol/schema/precomputed/app-server-exports-experimental.json.zst b/akode-rs/app-server-protocol/schema/precomputed/app-server-exports-experimental.json.zst index f73e6f27..f856edd6 100644 Binary files a/akode-rs/app-server-protocol/schema/precomputed/app-server-exports-experimental.json.zst and b/akode-rs/app-server-protocol/schema/precomputed/app-server-exports-experimental.json.zst differ diff --git a/akode-rs/app-server-protocol/schema/precomputed/app-server-exports-stable.json.zst b/akode-rs/app-server-protocol/schema/precomputed/app-server-exports-stable.json.zst index ac6d18cf..ca098453 100644 Binary files a/akode-rs/app-server-protocol/schema/precomputed/app-server-exports-stable.json.zst and b/akode-rs/app-server-protocol/schema/precomputed/app-server-exports-stable.json.zst differ diff --git a/akode-rs/app-server-protocol/schema/typescript/ServerNotification.ts b/akode-rs/app-server-protocol/schema/typescript/ServerNotification.ts index 2abfb088..76cc184d 100644 --- a/akode-rs/app-server-protocol/schema/typescript/ServerNotification.ts +++ b/akode-rs/app-server-protocol/schema/typescript/ServerNotification.ts @@ -42,6 +42,7 @@ import type { ReasoningSummaryPartAddedNotification } from "./v2/ReasoningSummar import type { ReasoningSummaryTextDeltaNotification } from "./v2/ReasoningSummaryTextDeltaNotification"; import type { ReasoningTextDeltaNotification } from "./v2/ReasoningTextDeltaNotification"; import type { RemoteControlStatusChangedNotification } from "./v2/RemoteControlStatusChangedNotification"; +import type { ServerProgressNotification } from "./v2/ServerProgressNotification"; import type { ServerRequestResolvedNotification } from "./v2/ServerRequestResolvedNotification"; import type { SkillsChangedNotification } from "./v2/SkillsChangedNotification"; import type { StrictReviewRequiredNotification } from "./v2/StrictReviewRequiredNotification"; @@ -75,6 +76,7 @@ import type { ThreadStartedNotification } from "./v2/ThreadStartedNotification"; import type { ThreadStatusChangedNotification } from "./v2/ThreadStatusChangedNotification"; import type { ThreadTokenUsageUpdatedNotification } from "./v2/ThreadTokenUsageUpdatedNotification"; import type { ThreadUnarchivedNotification } from "./v2/ThreadUnarchivedNotification"; +import type { ToolCallInputProgressNotification } from "./v2/ToolCallInputProgressNotification"; import type { TurnCompletedNotification } from "./v2/TurnCompletedNotification"; import type { TurnDiffUpdatedNotification } from "./v2/TurnDiffUpdatedNotification"; import type { TurnModerationMetadataNotification } from "./v2/TurnModerationMetadataNotification"; @@ -87,4 +89,4 @@ import type { WindowsWorldWritableWarningNotification } from "./v2/WindowsWorldW /** * Notification sent from the server to the client. */ -export type ServerNotification = { "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/readState/changed", "params": ThreadReadStateChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/deleted", "params": ThreadDeletedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "thread/reverted", "params": ThreadRevertedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/section/changed", "params": ThreadSectionChangedNotification } | { "method": "thread/attachment/updated", "params": ThreadAttachmentUpdatedNotification } | { "method": "thread/goal/updated", "params": ThreadGoalUpdatedNotification } | { "method": "thread/prediction/updated", "params": ThreadPredictionUpdatedNotification } | { "method": "thread/goal/cleared", "params": ThreadGoalClearedNotification } | { "method": "thread/queue/changed", "params": ThreadQueueChangedNotification } | { "method": "project/changed", "params": ProjectChangedNotification } | { "method": "thread/project/updated", "params": ThreadProjectUpdatedNotification } | { "method": "thread/environment/connected", "params": EnvironmentConnectionNotification } | { "method": "thread/environment/disconnected", "params": EnvironmentConnectionNotification } | { "method": "thread/settings/updated", "params": ThreadSettingsUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "autoApprovalReview/strictReviewRequired", "params": StrictReviewRequiredNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "rawResponse/completed", "params": RawResponseCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "process/outputDelta", "params": ProcessOutputDeltaNotification } | { "method": "process/exited", "params": ProcessExitedNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/gatewayOAuth/changed", "params": GatewayOAuthChangedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "remoteControl/status/changed", "params": RemoteControlStatusChangedNotification } | { "method": "externalAgentConfig/import/progress", "params": ExternalAgentConfigImportProgressNotification } | { "method": "externalAgentConfig/import/completed", "params": ExternalAgentConfigImportCompletedNotification } | { "method": "fs/changed", "params": FsChangedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "modelProvider/authRecoveryStarted", "params": AuthRecoveryNotification } | { "method": "modelProvider/authRecoveryCompleted", "params": AuthRecoveryNotification } | { "method": "turn/moderationMetadata", "params": TurnModerationMetadataNotification } | { "method": "model/safetyBuffering/updated", "params": ModelSafetyBufferingUpdatedNotification } | { "method": "warning", "params": WarningNotification } | { "method": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/item/started", "params": ThreadRealtimeItemStartedNotification } | { "method": "thread/realtime/item/transcript/delta", "params": ThreadRealtimeItemTranscriptDeltaNotification } | { "method": "thread/realtime/item/completed", "params": ThreadRealtimeItemCompletedNotification } | { "method": "thread/realtime/transcript/delta", "params": ThreadRealtimeTranscriptDeltaNotification } | { "method": "thread/realtime/transcript/done", "params": ThreadRealtimeTranscriptDoneNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/sdp", "params": ThreadRealtimeSdpNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification }; +export type ServerNotification = { "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/readState/changed", "params": ThreadReadStateChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/deleted", "params": ThreadDeletedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "thread/reverted", "params": ThreadRevertedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/section/changed", "params": ThreadSectionChangedNotification } | { "method": "thread/attachment/updated", "params": ThreadAttachmentUpdatedNotification } | { "method": "thread/goal/updated", "params": ThreadGoalUpdatedNotification } | { "method": "thread/prediction/updated", "params": ThreadPredictionUpdatedNotification } | { "method": "thread/goal/cleared", "params": ThreadGoalClearedNotification } | { "method": "thread/queue/changed", "params": ThreadQueueChangedNotification } | { "method": "project/changed", "params": ProjectChangedNotification } | { "method": "thread/project/updated", "params": ThreadProjectUpdatedNotification } | { "method": "thread/environment/connected", "params": EnvironmentConnectionNotification } | { "method": "thread/environment/disconnected", "params": EnvironmentConnectionNotification } | { "method": "thread/settings/updated", "params": ThreadSettingsUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "autoApprovalReview/strictReviewRequired", "params": StrictReviewRequiredNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "rawResponse/completed", "params": RawResponseCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "process/outputDelta", "params": ProcessOutputDeltaNotification } | { "method": "process/exited", "params": ProcessExitedNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "item/toolCall/inputProgress", "params": ToolCallInputProgressNotification } | { "method": "turn/serverProgress", "params": ServerProgressNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/gatewayOAuth/changed", "params": GatewayOAuthChangedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "remoteControl/status/changed", "params": RemoteControlStatusChangedNotification } | { "method": "externalAgentConfig/import/progress", "params": ExternalAgentConfigImportProgressNotification } | { "method": "externalAgentConfig/import/completed", "params": ExternalAgentConfigImportCompletedNotification } | { "method": "fs/changed", "params": FsChangedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "modelProvider/authRecoveryStarted", "params": AuthRecoveryNotification } | { "method": "modelProvider/authRecoveryCompleted", "params": AuthRecoveryNotification } | { "method": "turn/moderationMetadata", "params": TurnModerationMetadataNotification } | { "method": "model/safetyBuffering/updated", "params": ModelSafetyBufferingUpdatedNotification } | { "method": "warning", "params": WarningNotification } | { "method": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/item/started", "params": ThreadRealtimeItemStartedNotification } | { "method": "thread/realtime/item/transcript/delta", "params": ThreadRealtimeItemTranscriptDeltaNotification } | { "method": "thread/realtime/item/completed", "params": ThreadRealtimeItemCompletedNotification } | { "method": "thread/realtime/transcript/delta", "params": ThreadRealtimeTranscriptDeltaNotification } | { "method": "thread/realtime/transcript/done", "params": ThreadRealtimeTranscriptDoneNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/sdp", "params": ThreadRealtimeSdpNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification }; diff --git a/akode-rs/app-server-protocol/schema/typescript/ServerNotificationEnvelope.ts b/akode-rs/app-server-protocol/schema/typescript/ServerNotificationEnvelope.ts index be76b348..4610d63a 100644 --- a/akode-rs/app-server-protocol/schema/typescript/ServerNotificationEnvelope.ts +++ b/akode-rs/app-server-protocol/schema/typescript/ServerNotificationEnvelope.ts @@ -42,6 +42,7 @@ import type { ReasoningSummaryPartAddedNotification } from "./v2/ReasoningSummar import type { ReasoningSummaryTextDeltaNotification } from "./v2/ReasoningSummaryTextDeltaNotification"; import type { ReasoningTextDeltaNotification } from "./v2/ReasoningTextDeltaNotification"; import type { RemoteControlStatusChangedNotification } from "./v2/RemoteControlStatusChangedNotification"; +import type { ServerProgressNotification } from "./v2/ServerProgressNotification"; import type { ServerRequestResolvedNotification } from "./v2/ServerRequestResolvedNotification"; import type { SkillsChangedNotification } from "./v2/SkillsChangedNotification"; import type { StrictReviewRequiredNotification } from "./v2/StrictReviewRequiredNotification"; @@ -75,6 +76,7 @@ import type { ThreadStartedNotification } from "./v2/ThreadStartedNotification"; import type { ThreadStatusChangedNotification } from "./v2/ThreadStatusChangedNotification"; import type { ThreadTokenUsageUpdatedNotification } from "./v2/ThreadTokenUsageUpdatedNotification"; import type { ThreadUnarchivedNotification } from "./v2/ThreadUnarchivedNotification"; +import type { ToolCallInputProgressNotification } from "./v2/ToolCallInputProgressNotification"; import type { TurnCompletedNotification } from "./v2/TurnCompletedNotification"; import type { TurnDiffUpdatedNotification } from "./v2/TurnDiffUpdatedNotification"; import type { TurnModerationMetadataNotification } from "./v2/TurnModerationMetadataNotification"; @@ -97,4 +99,4 @@ export type ServerNotificationEnvelope = { * Optional so clients can decode notifications from older app-server * versions. Current app-server versions always populate it. */ -emittedAtMs?: number, } & ({ "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/readState/changed", "params": ThreadReadStateChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/deleted", "params": ThreadDeletedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "thread/reverted", "params": ThreadRevertedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/section/changed", "params": ThreadSectionChangedNotification } | { "method": "thread/attachment/updated", "params": ThreadAttachmentUpdatedNotification } | { "method": "thread/goal/updated", "params": ThreadGoalUpdatedNotification } | { "method": "thread/prediction/updated", "params": ThreadPredictionUpdatedNotification } | { "method": "thread/goal/cleared", "params": ThreadGoalClearedNotification } | { "method": "thread/queue/changed", "params": ThreadQueueChangedNotification } | { "method": "project/changed", "params": ProjectChangedNotification } | { "method": "thread/project/updated", "params": ThreadProjectUpdatedNotification } | { "method": "thread/environment/connected", "params": EnvironmentConnectionNotification } | { "method": "thread/environment/disconnected", "params": EnvironmentConnectionNotification } | { "method": "thread/settings/updated", "params": ThreadSettingsUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "autoApprovalReview/strictReviewRequired", "params": StrictReviewRequiredNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "rawResponse/completed", "params": RawResponseCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "process/outputDelta", "params": ProcessOutputDeltaNotification } | { "method": "process/exited", "params": ProcessExitedNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/gatewayOAuth/changed", "params": GatewayOAuthChangedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "remoteControl/status/changed", "params": RemoteControlStatusChangedNotification } | { "method": "externalAgentConfig/import/progress", "params": ExternalAgentConfigImportProgressNotification } | { "method": "externalAgentConfig/import/completed", "params": ExternalAgentConfigImportCompletedNotification } | { "method": "fs/changed", "params": FsChangedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "modelProvider/authRecoveryStarted", "params": AuthRecoveryNotification } | { "method": "modelProvider/authRecoveryCompleted", "params": AuthRecoveryNotification } | { "method": "turn/moderationMetadata", "params": TurnModerationMetadataNotification } | { "method": "model/safetyBuffering/updated", "params": ModelSafetyBufferingUpdatedNotification } | { "method": "warning", "params": WarningNotification } | { "method": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/item/started", "params": ThreadRealtimeItemStartedNotification } | { "method": "thread/realtime/item/transcript/delta", "params": ThreadRealtimeItemTranscriptDeltaNotification } | { "method": "thread/realtime/item/completed", "params": ThreadRealtimeItemCompletedNotification } | { "method": "thread/realtime/transcript/delta", "params": ThreadRealtimeTranscriptDeltaNotification } | { "method": "thread/realtime/transcript/done", "params": ThreadRealtimeTranscriptDoneNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/sdp", "params": ThreadRealtimeSdpNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification }); +emittedAtMs?: number, } & ({ "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/readState/changed", "params": ThreadReadStateChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/deleted", "params": ThreadDeletedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "thread/reverted", "params": ThreadRevertedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/section/changed", "params": ThreadSectionChangedNotification } | { "method": "thread/attachment/updated", "params": ThreadAttachmentUpdatedNotification } | { "method": "thread/goal/updated", "params": ThreadGoalUpdatedNotification } | { "method": "thread/prediction/updated", "params": ThreadPredictionUpdatedNotification } | { "method": "thread/goal/cleared", "params": ThreadGoalClearedNotification } | { "method": "thread/queue/changed", "params": ThreadQueueChangedNotification } | { "method": "project/changed", "params": ProjectChangedNotification } | { "method": "thread/project/updated", "params": ThreadProjectUpdatedNotification } | { "method": "thread/environment/connected", "params": EnvironmentConnectionNotification } | { "method": "thread/environment/disconnected", "params": EnvironmentConnectionNotification } | { "method": "thread/settings/updated", "params": ThreadSettingsUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "autoApprovalReview/strictReviewRequired", "params": StrictReviewRequiredNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "rawResponse/completed", "params": RawResponseCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "process/outputDelta", "params": ProcessOutputDeltaNotification } | { "method": "process/exited", "params": ProcessExitedNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "item/toolCall/inputProgress", "params": ToolCallInputProgressNotification } | { "method": "turn/serverProgress", "params": ServerProgressNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/gatewayOAuth/changed", "params": GatewayOAuthChangedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "remoteControl/status/changed", "params": RemoteControlStatusChangedNotification } | { "method": "externalAgentConfig/import/progress", "params": ExternalAgentConfigImportProgressNotification } | { "method": "externalAgentConfig/import/completed", "params": ExternalAgentConfigImportCompletedNotification } | { "method": "fs/changed", "params": FsChangedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "modelProvider/authRecoveryStarted", "params": AuthRecoveryNotification } | { "method": "modelProvider/authRecoveryCompleted", "params": AuthRecoveryNotification } | { "method": "turn/moderationMetadata", "params": TurnModerationMetadataNotification } | { "method": "model/safetyBuffering/updated", "params": ModelSafetyBufferingUpdatedNotification } | { "method": "warning", "params": WarningNotification } | { "method": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/item/started", "params": ThreadRealtimeItemStartedNotification } | { "method": "thread/realtime/item/transcript/delta", "params": ThreadRealtimeItemTranscriptDeltaNotification } | { "method": "thread/realtime/item/completed", "params": ThreadRealtimeItemCompletedNotification } | { "method": "thread/realtime/transcript/delta", "params": ThreadRealtimeTranscriptDeltaNotification } | { "method": "thread/realtime/transcript/done", "params": ThreadRealtimeTranscriptDoneNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/sdp", "params": ThreadRealtimeSdpNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification }); diff --git a/akode-rs/app-server-protocol/schema/typescript/v2/ServerProgressNotification.ts b/akode-rs/app-server-protocol/schema/typescript/v2/ServerProgressNotification.ts new file mode 100644 index 00000000..766b3c8a --- /dev/null +++ b/akode-rs/app-server-protocol/schema/typescript/v2/ServerProgressNotification.ts @@ -0,0 +1,12 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * aKode: a local server is queueing the request or reading the prompt. + */ +export type ServerProgressNotification = { threadId: string, turnId: string, +/** + * `queue` or `prefill`. + */ +kind: string, percent: number | null, etaS: number | null, ahead: bigint | null, }; diff --git a/akode-rs/app-server-protocol/schema/typescript/v2/ToolCallInputProgressNotification.ts b/akode-rs/app-server-protocol/schema/typescript/v2/ToolCallInputProgressNotification.ts new file mode 100644 index 00000000..36917030 --- /dev/null +++ b/akode-rs/app-server-protocol/schema/typescript/v2/ToolCallInputProgressNotification.ts @@ -0,0 +1,16 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * aKode: the model is still generating the arguments of a tool call. + */ +export type ToolCallInputProgressNotification = { threadId: string, turnId: string, callId: string, toolName: string, +/** + * File or target recognized in the partial arguments, if any. + */ +target: string | null, +/** + * Approximate number of argument tokens generated so far. + */ +tokens: bigint, }; diff --git a/akode-rs/app-server-protocol/schema/typescript/v2/index.ts b/akode-rs/app-server-protocol/schema/typescript/v2/index.ts index 334e23d8..b2fbc99d 100644 --- a/akode-rs/app-server-protocol/schema/typescript/v2/index.ts +++ b/akode-rs/app-server-protocol/schema/typescript/v2/index.ts @@ -401,6 +401,7 @@ export type { SendAddCreditsNudgeEmailParams } from "./SendAddCreditsNudgeEmailP export type { SendAddCreditsNudgeEmailResponse } from "./SendAddCreditsNudgeEmailResponse"; export type { ServerDiagnosticsGauge } from "./ServerDiagnosticsGauge"; export type { ServerDiagnosticsProcess } from "./ServerDiagnosticsProcess"; +export type { ServerProgressNotification } from "./ServerProgressNotification"; export type { ServerRequestResolvedNotification } from "./ServerRequestResolvedNotification"; export type { SessionMigration } from "./SessionMigration"; export type { SessionSource } from "./SessionSource"; @@ -566,6 +567,7 @@ export type { ThreadUnsubscribeStatus } from "./ThreadUnsubscribeStatus"; export type { ThreadUsage } from "./ThreadUsage"; export type { ThreadUsageBreakdownGroup } from "./ThreadUsageBreakdownGroup"; export type { TokenUsageBreakdown } from "./TokenUsageBreakdown"; +export type { ToolCallInputProgressNotification } from "./ToolCallInputProgressNotification"; export type { ToolRequestUserInputAnswer } from "./ToolRequestUserInputAnswer"; export type { ToolRequestUserInputOption } from "./ToolRequestUserInputOption"; export type { ToolRequestUserInputParams } from "./ToolRequestUserInputParams"; diff --git a/akode-rs/app-server-protocol/src/protocol/common.rs b/akode-rs/app-server-protocol/src/protocol/common.rs index 0864b368..d2bae06c 100644 --- a/akode-rs/app-server-protocol/src/protocol/common.rs +++ b/akode-rs/app-server-protocol/src/protocol/common.rs @@ -1924,6 +1924,8 @@ server_notification_definitions! { /// Deprecated legacy apply_patch output stream notification. FileChangeOutputDelta => "item/fileChange/outputDelta" (v2::FileChangeOutputDeltaNotification), FileChangePatchUpdated => "item/fileChange/patchUpdated" (v2::FileChangePatchUpdatedNotification), + ToolCallInputProgress => "item/toolCall/inputProgress" (v2::ToolCallInputProgressNotification), + ServerProgress => "turn/serverProgress" (v2::ServerProgressNotification), ServerRequestResolved => "serverRequest/resolved" (v2::ServerRequestResolvedNotification), McpToolCallProgress => "item/mcpToolCall/progress" (v2::McpToolCallProgressNotification), McpServerOauthLoginCompleted => "mcpServer/oauthLogin/completed" (v2::McpServerOauthLoginCompletedNotification), diff --git a/akode-rs/app-server-protocol/src/protocol/event_mapping.rs b/akode-rs/app-server-protocol/src/protocol/event_mapping.rs index 3588b017..513a52e0 100644 --- a/akode-rs/app-server-protocol/src/protocol/event_mapping.rs +++ b/akode-rs/app-server-protocol/src/protocol/event_mapping.rs @@ -429,6 +429,28 @@ pub fn item_event_to_server_notification( notification.content_token_count = item_completed_event.content_token_count; ServerNotification::ItemCompleted(notification) } + EventMsg::ServerProgress(event) => { + ServerNotification::ServerProgress(crate::protocol::v2::ServerProgressNotification { + thread_id, + turn_id, + kind: event.kind, + percent: event.percent, + eta_s: event.eta_s, + ahead: event.ahead, + }) + } + EventMsg::ToolCallInputProgress(event) => { + ServerNotification::ToolCallInputProgress( + crate::protocol::v2::ToolCallInputProgressNotification { + thread_id, + turn_id, + call_id: event.call_id, + tool_name: event.tool_name, + target: event.target, + tokens: event.tokens, + }, + ) + } EventMsg::PatchApplyUpdated(event) => { ServerNotification::FileChangePatchUpdated(FileChangePatchUpdatedNotification { thread_id, diff --git a/akode-rs/app-server-protocol/src/protocol/v2/item.rs b/akode-rs/app-server-protocol/src/protocol/v2/item.rs index 5f7eae68..633d9516 100644 --- a/akode-rs/app-server-protocol/src/protocol/v2/item.rs +++ b/akode-rs/app-server-protocol/src/protocol/v2/item.rs @@ -1677,6 +1677,35 @@ pub struct FileChangeOutputDeltaNotification { pub delta: String, } +/// aKode: the model is still generating the arguments of a tool call. +#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] +#[serde(rename_all = "camelCase")] +#[ts(export_to = "v2/")] +pub struct ToolCallInputProgressNotification { + pub thread_id: String, + pub turn_id: String, + pub call_id: String, + pub tool_name: String, + /// File or target recognized in the partial arguments, if any. + pub target: Option, + /// Approximate number of argument tokens generated so far. + pub tokens: u64, +} + +/// aKode: a local server is queueing the request or reading the prompt. +#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] +#[serde(rename_all = "camelCase")] +#[ts(export_to = "v2/")] +pub struct ServerProgressNotification { + pub thread_id: String, + pub turn_id: String, + /// `queue` or `prefill`. + pub kind: String, + pub percent: Option, + pub eta_s: Option, + pub ahead: Option, +} + #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] #[serde(rename_all = "camelCase")] #[ts(export_to = "v2/")] diff --git a/akode-rs/app-server/src/bespoke_event_handling.rs b/akode-rs/app-server/src/bespoke_event_handling.rs index b545da63..1f929cb7 100644 --- a/akode-rs/app-server/src/bespoke_event_handling.rs +++ b/akode-rs/app-server/src/bespoke_event_handling.rs @@ -1133,7 +1133,10 @@ pub(crate) async fn apply_bespoke_event_handling( } outgoing.send_server_notification(notification).await; } - msg @ (EventMsg::PatchApplyUpdated(_) | EventMsg::TerminalInteraction(_)) => { + msg @ (EventMsg::PatchApplyUpdated(_) + | EventMsg::TerminalInteraction(_) + | EventMsg::ToolCallInputProgress(_) + | EventMsg::ServerProgress(_)) => { let notification = item_event_to_server_notification( msg, &conversation_id.to_string(), diff --git a/akode-rs/app-server/src/notification_media.rs b/akode-rs/app-server/src/notification_media.rs index 51aabe6c..41e2edd9 100644 --- a/akode-rs/app-server/src/notification_media.rs +++ b/akode-rs/app-server/src/notification_media.rs @@ -97,6 +97,8 @@ pub(crate) fn without_notification_media(notification: ServerNotification) -> Se | ServerNotification::TerminalInteraction(_) | ServerNotification::FileChangeOutputDelta(_) | ServerNotification::FileChangePatchUpdated(_) + | ServerNotification::ToolCallInputProgress(_) + | ServerNotification::ServerProgress(_) | ServerNotification::ServerRequestResolved(_) | ServerNotification::McpToolCallProgress(_) | ServerNotification::McpServerOauthLoginCompleted(_) diff --git a/akode-rs/apply-patch/src/lib.rs b/akode-rs/apply-patch/src/lib.rs index a2c720e2..eb055c16 100644 --- a/akode-rs/apply-patch/src/lib.rs +++ b/akode-rs/apply-patch/src/lib.rs @@ -42,6 +42,10 @@ pub use standalone_executable::main; use crate::invocation::ExtractHeredocError; +/// One-line reminder of the patch format, appended by aKode to parse errors +/// returned to the model so that it can fix the patch on the next attempt. +pub const PATCH_FORMAT_HINT: &str = "Patch format: first line '*** Begin Patch'; then '*** Add File: ' followed by the file lines each prefixed with '+' (or '*** Update File: ' with '@@' hunks of ' ', '-', '+' lines, or '*** Delete File: '); last line '*** End Patch'. Minimal example, one item per line: '*** Begin Patch' / '*** Add File: hello.py' / '+print(\"hi\")' / '*** End Patch'."; + /// Special argv[1] flag used when the Codex executable self-invokes to run the /// internal `apply_patch` path. /// diff --git a/akode-rs/apply-patch/src/parser.rs b/akode-rs/apply-patch/src/parser.rs index 9a25e2a9..9d9e92ce 100644 --- a/akode-rs/apply-patch/src/parser.rs +++ b/akode-rs/apply-patch/src/parser.rs @@ -193,7 +193,7 @@ enum ParseMode { fn parse_patch_text(patch: &str, mode: ParseMode) -> Result { let lines: Vec<&str> = patch.trim().lines().collect(); let patch_lines = match mode { - ParseMode::Strict => check_patch_boundaries_strict(&lines)?, + ParseMode::Strict => check_patch_boundaries_strict(&lines)?.to_vec(), ParseMode::Lenient => check_patch_boundaries_lenient(&lines)?, }; @@ -227,32 +227,121 @@ fn check_patch_boundaries_strict<'a>(lines: &'a [&'a str]) -> Result<&'a [&'a st /// 4 lines total because the heredoc markers take up 2 lines and the patch text /// must have at least 2 lines. /// +/// aKode: local models (e.g. Qwen) often emit an otherwise valid patch without +/// the `*** Begin Patch` first line or without the `*** End Patch` last line, +/// or wrap it in a Markdown code fence. In lenient mode we also: +/// - strip a surrounding ``` fence (opening and closing fence both present); +/// - add `*** Begin Patch` when the first line is `*** Add File: `, +/// `*** Update File: ` or `*** Delete File: `; +/// - add `*** End Patch` when the patch starts correctly and the last line is +/// not another `***` marker (except `*** End of File`). +/// +/// Any other shape stays an error. The hunk parser still validates every line, +/// and the resulting patch goes through the same verification, sandbox and +/// approval path as a well-formed one. +/// /// If successful, returns the lines of the patch text that contain the patch /// contents, excluding the heredoc markers. fn check_patch_boundaries_lenient<'a>( original_lines: &'a [&'a str], -) -> Result<&'a [&'a str], ParseError> { +) -> Result, ParseError> { let original_parse_error = match check_patch_boundaries_strict(original_lines) { - Ok(lines) => return Ok(lines), + Ok(lines) => return Ok(lines.to_vec()), Err(e) => e, }; - match original_lines { - [first, .., last] => { + let lines = strip_code_fence(original_lines); + if lines.len() != original_lines.len() { + if let Ok(lines) = check_patch_boundaries_strict(lines) { + return Ok(lines.to_vec()); + } + } + + let (lines, parse_error) = match lines { + [first, .., last] if (first == &"<= 4 - { - let inner_lines = &original_lines[1..original_lines.len() - 1]; - check_patch_boundaries_strict(inner_lines) - } else { - Err(original_parse_error) + && lines.len() >= 4 => + { + let inner_lines = &lines[1..lines.len() - 1]; + match check_patch_boundaries_strict(inner_lines) { + Ok(inner_lines) => return Ok(inner_lines.to_vec()), + Err(inner_error) => (inner_lines, inner_error), } } - _ => Err(original_parse_error), + _ => (lines, original_parse_error), + }; + + add_missing_patch_markers(lines).ok_or(parse_error) +} + +/// Removes a Markdown code fence around the patch (```` ``` ````, ```` ```diff ````, +/// ```` ```patch ````...). Both fences must be present; otherwise the lines are +/// returned unchanged. +fn strip_code_fence<'a>(lines: &'a [&'a str]) -> &'a [&'a str] { + match lines { + [first, inner @ .., last] if lines.len() >= 3 => { + let first = first.trim(); + let info = first.strip_prefix("```").map(str::trim); + let is_fence_open = info.is_some_and(|info| { + !info.contains('`') && info.chars().all(|c| c.is_ascii_alphanumeric() || c == '-') + }); + if is_fence_open && last.trim() == "```" { + inner + } else { + lines + } + } + _ => lines, } } +/// Adds `*** Begin Patch` / `*** End Patch` when they are missing but the +/// content is unambiguously a patch. Returns `None` when the shape is anything +/// else, so the caller can report the original error. +fn add_missing_patch_markers<'a>(lines: &[&'a str]) -> Option> { + let first = lines.first()?.trim(); + let last = lines.last()?.trim(); + let starts_with_hunk = [ADD_FILE_MARKER, UPDATE_FILE_MARKER, DELETE_FILE_MARKER] + .iter() + .any(|marker| first.starts_with(marker.trim_end())); + let has_begin = first == BEGIN_PATCH_MARKER; + if !has_begin && !starts_with_hunk { + return None; + } + if has_begin && lines.len() < 2 { + return None; + } + let has_end = lines.len() > 1 && last == END_PATCH_MARKER; + if !has_end && last.starts_with("***") && last != EOF_MARKER { + // Some other (possibly misspelled) marker in last position: ambiguous. + let is_hunk_header = [ADD_FILE_MARKER, DELETE_FILE_MARKER] + .iter() + .any(|marker| last.starts_with(marker.trim_end())); + if !is_hunk_header { + return None; + } + } + // A stray `*** Begin Patch` or `*** End Patch` in the middle is ambiguous too. + let inner_start = usize::from(has_begin); + let inner_end = lines.len() - usize::from(has_end); + if lines[inner_start..inner_end] + .iter() + .any(|line| matches!(line.trim(), BEGIN_PATCH_MARKER | END_PATCH_MARKER)) + { + return None; + } + let mut normalized = Vec::with_capacity(lines.len() + 2); + if !has_begin { + normalized.push(BEGIN_PATCH_MARKER); + } + normalized.extend_from_slice(lines); + if !has_end { + normalized.push(END_PATCH_MARKER); + } + Some(normalized) +} + fn check_start_and_end_lines_strict( first_line: Option<&&str>, last_line: Option<&&str>, @@ -636,6 +725,8 @@ fn test_parse_patch_lenient() { parse_patch_text(&patch_text_with_missing_closing_heredoc, ParseMode::Strict), Err(expected_error) ); + // aKode: a trailing `*** Update File:` header is not completed with + // `*** End Patch` (the hunk would be empty), so the error is unchanged. assert_eq!( parse_patch_text(&patch_text_with_missing_closing_heredoc, ParseMode::Lenient), Err(InvalidPatchError( @@ -644,6 +735,178 @@ fn test_parse_patch_lenient() { ); } +#[cfg(test)] +fn add_hello_args(patch: &str) -> ApplyPatchArgs { + ApplyPatchArgs { + hunks: vec![AddFile { + path: PathBuf::from("hello.py"), + contents: "print(1)\nprint(2)\n".to_string(), + }], + patch: patch.to_string(), + workdir: None, + environment_id: None, + } +} + +#[cfg(test)] +const NORMALIZED_HELLO_PATCH: &str = + "*** Begin Patch\n*** Add File: hello.py\n+print(1)\n+print(2)\n*** End Patch"; + +#[test] +fn test_lenient_adds_missing_begin_patch() { + let patch = "*** Add File: hello.py\n+print(1)\n+print(2)\n*** End Patch\n"; + assert_eq!( + parse_patch_text(patch, ParseMode::Lenient), + Ok(add_hello_args(NORMALIZED_HELLO_PATCH)) + ); + assert_eq!( + parse_patch_text(patch, ParseMode::Strict), + Err(InvalidPatchError( + "The first line of the patch must be '*** Begin Patch'".to_string() + )) + ); +} + +#[test] +fn test_lenient_adds_missing_end_patch() { + let patch = "*** Begin Patch\n*** Add File: hello.py\n+print(1)\n+print(2)\n"; + assert_eq!( + parse_patch_text(patch, ParseMode::Lenient), + Ok(add_hello_args(NORMALIZED_HELLO_PATCH)) + ); + assert_eq!( + parse_patch_text(patch, ParseMode::Strict), + Err(InvalidPatchError( + "The last line of the patch must be '*** End Patch'".to_string() + )) + ); +} + +#[test] +fn test_lenient_adds_both_markers() { + let patch = "*** Add File: hello.py\n+print(1)\n+print(2)"; + assert_eq!( + parse_patch_text(patch, ParseMode::Lenient), + Ok(add_hello_args(NORMALIZED_HELLO_PATCH)) + ); +} + +#[test] +fn test_lenient_adds_markers_for_update_and_delete() { + let update = "*** Update File: file2.py\n import foo\n+bar"; + let args = parse_patch_text(update, ParseMode::Lenient).expect("update parses"); + assert_eq!( + args.patch, + "*** Begin Patch\n*** Update File: file2.py\n import foo\n+bar\n*** End Patch" + ); + assert!(matches!(args.hunks.as_slice(), [UpdateFile { .. }])); + + let delete = "*** Delete File: old.txt\n*** End Patch"; + let args = parse_patch_text(delete, ParseMode::Lenient).expect("delete parses"); + assert_eq!( + args.hunks, + vec![DeleteFile { + path: PathBuf::from("old.txt") + }] + ); + + let delete_last = "*** Begin Patch\n*** Delete File: old.txt"; + let args = parse_patch_text(delete_last, ParseMode::Lenient).expect("delete parses"); + assert_eq!( + args.hunks, + vec![DeleteFile { + path: PathBuf::from("old.txt") + }] + ); +} + +#[test] +fn test_lenient_strips_code_fence() { + for fence in ["```", "```diff", "```patch", "``` text"] { + let full = format!("{fence}\n{NORMALIZED_HELLO_PATCH}\n```\n"); + assert_eq!( + parse_patch_text(&full, ParseMode::Lenient), + Ok(add_hello_args(NORMALIZED_HELLO_PATCH)), + "fence {fence:?} with markers" + ); + let bare = format!("{fence}\n*** Add File: hello.py\n+print(1)\n+print(2)\n```"); + assert_eq!( + parse_patch_text(&bare, ParseMode::Lenient), + Ok(add_hello_args(NORMALIZED_HELLO_PATCH)), + "fence {fence:?} without markers" + ); + assert!(parse_patch_text(&full, ParseMode::Strict).is_err()); + } +} + +#[test] +fn test_lenient_keeps_ambiguous_patches_as_errors() { + let first_line_error = + InvalidPatchError("The first line of the patch must be '*** Begin Patch'".to_string()); + let last_line_error = + InvalidPatchError("The last line of the patch must be '*** End Patch'".to_string()); + + // Text before the first hunk. + assert_eq!( + parse_patch_text( + "Here is the patch:\n*** Add File: hello.py\n+print(1)\n*** End Patch", + ParseMode::Lenient + ), + Err(first_line_error.clone()) + ); + // Only the opening fence. + assert_eq!( + parse_patch_text( + "```diff\n*** Add File: hello.py\n+print(1)\n*** End Patch", + ParseMode::Lenient + ), + Err(first_line_error.clone()) + ); + // Misspelled end marker. + assert_eq!( + parse_patch_text( + "*** Begin Patch\n*** Add File: hello.py\n+print(1)\n*** End Patch ***", + ParseMode::Lenient + ), + Err(last_line_error.clone()) + ); + assert_eq!( + parse_patch_text( + "*** Begin Patch\n*** Add File: hello.py\n+print(1)\n*** End", + ParseMode::Lenient + ), + Err(last_line_error.clone()) + ); + // A stray end marker in the middle, with trailing text after it. + assert_eq!( + parse_patch_text( + "*** Add File: hello.py\n+print(1)\n*** End Patch\nDone!", + ParseMode::Lenient + ), + Err(first_line_error.clone()) + ); + assert_eq!( + parse_patch_text( + "*** Begin Patch\n*** Add File: hello.py\n+print(1)\n*** End Patch\nDone!", + ParseMode::Lenient + ), + Err(last_line_error) + ); + // Not a patch at all. + assert_eq!( + parse_patch_text("print(1)", ParseMode::Lenient), + Err(first_line_error) + ); + // Lines without the `+` prefix are still rejected by the hunk parser. + assert!( + parse_patch_text( + "*** Add File: hello.py\nprint(1)\n*** End Patch", + ParseMode::Lenient + ) + .is_err() + ); +} + #[test] fn test_parse_patch_environment_id_preamble() { assert_eq!( diff --git a/akode-rs/config/defaults.toml b/akode-rs/config/defaults.toml index 9072c32c..41f01b38 100644 --- a/akode-rs/config/defaults.toml +++ b/akode-rs/config/defaults.toml @@ -15,3 +15,31 @@ project_root_markers = [".git"] [history] persistence = "save-all" + +# aKode 0.9.1: nella sandbox predefinita (`:workspace`, scrittura solo nella +# cartella del progetto e in /tmp) la rete è attiva ma passa dal proxy di rete +# locale, che lascia passare solo i registri dei pacchetti elencati qui; le altre +# destinazioni ricevono 403 e la rete diretta resta bloccata da Seatbelt. +# In ~/.akode/config.toml: +# [features.network_proxy.domains] +# "gitlab.com" = "allow" # aggiunge un dominio +# "pub.dev" = "deny" # ne toglie uno +# Per tornare alla sandbox senza rete delle versioni precedenti: +# [sandbox_workspace_write] +# network_access = false +[features.network_proxy] +enabled = true + +[features.network_proxy.domains] +"pypi.org" = "allow" +"files.pythonhosted.org" = "allow" +"registry.npmjs.org" = "allow" +"registry.yarnpkg.com" = "allow" +"pub.dev" = "allow" +"storage.googleapis.com" = "allow" +"crates.io" = "allow" +"static.crates.io" = "allow" +"index.crates.io" = "allow" +"github.com" = "allow" +"codeload.github.com" = "allow" +"objects.githubusercontent.com" = "allow" diff --git a/akode-rs/config/src/config_toml.rs b/akode-rs/config/src/config_toml.rs index f1b19289..2da3bac0 100644 --- a/akode-rs/config/src/config_toml.rs +++ b/akode-rs/config/src/config_toml.rs @@ -736,6 +736,9 @@ pub struct ToolsToml { pub web_search: Option, pub experimental_request_user_input: Option, pub update_plan: Option, + /// aKode: offer the `write_file` tool (path + whole content), with the same + /// sandbox and approval rules as `apply_patch`. Default: true. + pub write_file: Option, } #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema)] diff --git a/akode-rs/core/config.schema.json b/akode-rs/core/config.schema.json index b240325a..f2242338 100644 --- a/akode-rs/core/config.schema.json +++ b/akode-rs/core/config.schema.json @@ -5079,6 +5079,10 @@ } ], "default": null + }, + "write_file": { + "description": "aKode: offer the `write_file` tool (path + whole content), with the same sandbox and approval rules as `apply_patch`. Default: true.", + "type": "boolean" } }, "type": "object" diff --git a/akode-rs/core/src/agent/control/spawn_publication_tests.rs b/akode-rs/core/src/agent/control/spawn_publication_tests.rs index 92ab049e..2df4c624 100644 --- a/akode-rs/core/src/agent/control/spawn_publication_tests.rs +++ b/akode-rs/core/src/agent/control/spawn_publication_tests.rs @@ -242,7 +242,7 @@ async fn failed_spawn_edge_publication_cleanup() { .expect_err("lost commit acknowledgement rejects spawn"); assert_eq!( error.to_string(), - "Fatal error: failed to persist spawned agent relationship" + "Errore fatale: failed to persist spawned agent relationship" ); assert_publication_closed(&harness, &graph, parent).await; } diff --git a/akode-rs/core/src/config/config_loader_tests.rs b/akode-rs/core/src/config/config_loader_tests.rs index f0230c44..7c332ad1 100644 --- a/akode-rs/core/src/config/config_loader_tests.rs +++ b/akode-rs/core/src/config/config_loader_tests.rs @@ -1961,6 +1961,9 @@ async fn network_requirements_start_proxy_for_legacy_and_permission_configs() -> "[{table}]\nenabled = true\n[{table}.domains]\n'api.example.com' = 'allow'\n" ); let codex_home = tempdir()?; + // aKode: the packaged defaults enable `network_proxy`; this test checks + // requirements without the feature, so turn it off explicitly. + let config_toml = format!("{config_toml}\n[features]\nnetwork_proxy = false\n"); tokio::fs::write(codex_home.path().join(CONFIG_TOML_FILE), config_toml).await?; let config = ConfigBuilder::without_managed_config_for_tests() .codex_home(codex_home.path().to_path_buf()) @@ -2040,7 +2043,9 @@ auth = ["bearer"]"#, false, ), ( - "credential_masking = true", + // aKode: the packaged defaults enable `network_proxy`; keep this row + // about requirements without the feature. + "credential_masking = true\nnetwork_proxy = false", "[experimental_network]\nallow_local_binding = true", false, false, diff --git a/akode-rs/core/src/config/config_tests.rs b/akode-rs/core/src/config/config_tests.rs index f55557c4..3848ecfa 100644 --- a/akode-rs/core/src/config/config_tests.rs +++ b/akode-rs/core/src/config/config_tests.rs @@ -2164,6 +2164,12 @@ respect_system_proxy = false #[tokio::test] async fn experimental_network_requirements_enable_proxy_without_feature() -> std::io::Result<()> { let codex_home = TempDir::new()?; + // aKode: the packaged defaults enable `network_proxy`; this test is about + // requirements without the feature. + std::fs::write( + codex_home.path().join(CONFIG_TOML_FILE), + "[features]\nnetwork_proxy = false\n", + )?; let config = ConfigBuilder::without_managed_config_for_tests() .codex_home(codex_home.path().to_path_buf()) .fallback_cwd(Some(codex_home.path().to_path_buf())) @@ -3463,7 +3469,9 @@ async fn explicit_builtin_workspace_profile_ignores_legacy_workspace_write_setti default_permissions: Some(BUILT_IN_PERMISSION_PROFILE_WORKSPACE.to_string()), sandbox_workspace_write: Some(SandboxWorkspaceWrite { writable_roots: vec![extra_root.path().abs()], - network_access: true, + // aKode: the built-in workspace profile has network (through the + // managed proxy) by default; the legacy `false` must be ignored too. + network_access: false, exclude_tmpdir_env_var: true, exclude_slash_tmp: true, }), @@ -3480,7 +3488,7 @@ async fn explicit_builtin_workspace_profile_ignores_legacy_workspace_write_setti let policy = config.permissions.file_system_sandbox_policy(); assert_eq!( config.permissions.network_sandbox_policy(), - NetworkSandboxPolicy::Restricted + NetworkSandboxPolicy::Enabled ); assert!( !policy.entries.iter().any(|entry| matches!( @@ -11260,10 +11268,34 @@ async fn permission_profile_override_falls_back_when_disallowed_by_requirements( PermissionProfile::read_only() ); // Prepare the proxy while the candidate permits network, before fallback. + // aKode: the packaged defaults add the package registries to the allowlist. + let packaged_registries = [ + "codeload.github.com", + "crates.io", + "files.pythonhosted.org", + "github.com", + "index.crates.io", + "objects.githubusercontent.com", + "pub.dev", + "pypi.org", + "registry.npmjs.org", + "registry.yarnpkg.com", + "static.crates.io", + "storage.googleapis.com", + ]; let expected_network = NetworkProxySpec::from_config_and_constraints( NetworkProxyConfig { enabled: true, proxy_url: "http://127.0.0.1:43128".to_string(), + domains: Some(akode_network_proxy::NetworkDomainPermissions { + entries: packaged_registries + .iter() + .map(|pattern| akode_network_proxy::NetworkDomainPermissionEntry { + pattern: (*pattern).to_string(), + permission: akode_network_proxy::NetworkDomainPermission::Allow, + }) + .collect(), + }), ..Default::default() }, /*requirements*/ None, diff --git a/akode-rs/core/src/config/mcp_network_policy_tests.rs b/akode-rs/core/src/config/mcp_network_policy_tests.rs index 066b05c0..a38c133e 100644 --- a/akode-rs/core/src/config/mcp_network_policy_tests.rs +++ b/akode-rs/core/src/config/mcp_network_policy_tests.rs @@ -251,7 +251,8 @@ const MIXED_DOMAINS: &str = r#" "[::1]" = "allow" "#; -#[test_case("domains = { 'allowed.example' = 'allow' }", "outside.invalid", true, &["allowed.example"]; "allowlist miss")] +// aKode: the packaged defaults add the package registries to the proxy allowlist. +#[test_case("domains = { 'allowed.example' = 'allow' }", "outside.invalid", true, &["allowed.example", "codeload.github.com", "crates.io", "files.pythonhosted.org", "github.com", "index.crates.io", "objects.githubusercontent.com", "pub.dev", "pypi.org", "registry.npmjs.org", "registry.yarnpkg.com", "static.crates.io", "storage.googleapis.com"]; "allowlist miss")] #[test_case(MIXED_DOMAINS, "127.0.0.1", false, &["192.168.0.2", "[::1]"]; "wildcard cannot grant loopback")] #[test_case(MIXED_DOMAINS, "192.168.0.1", false, &["192.168.0.2", "[::1]"]; "wildcard cannot grant private address")] #[tokio::test] diff --git a/akode-rs/core/src/config/mod.rs b/akode-rs/core/src/config/mod.rs index 2a700fa5..9e5fe56c 100644 --- a/akode-rs/core/src/config/mod.rs +++ b/akode-rs/core/src/config/mod.rs @@ -215,6 +215,7 @@ pub use permission_profile_selection::ResolvedPermissionProfileSelection; pub use permission_profile_selection::resolve_permission_profile_selection; pub use permissions::CompiledPermissionProfile; pub use permissions::WorkspaceWriteSettings; +pub use permissions::akode_default_workspace_profile; pub use permissions::compile_permission_profile; pub(crate) use permissions::is_builtin_permission_profile_name; pub use permissions::network_proxy_config_from_profile_network; @@ -1271,6 +1272,9 @@ pub struct Config { /// Whether to register the update_plan tool. pub update_plan_enabled: bool, + /// aKode: whether to register the `write_file` tool (`[tools] write_file`). + pub write_file_tool_enabled: bool, + /// Policy for collecting and validating tool runtimes. pub tool_registry: ToolRegistryConfig, @@ -2980,6 +2984,14 @@ fn resolve_experimental_request_user_input_enabled(config_toml: &ConfigToml) -> .is_none_or(|config| config.enabled) } +fn resolve_write_file_tool_enabled(config_toml: &ConfigToml) -> bool { + config_toml + .tools + .as_ref() + .and_then(|tools| tools.write_file) + .unwrap_or(true) +} + fn resolve_update_plan_enabled(config_toml: &ConfigToml) -> bool { config_toml .tools @@ -4140,6 +4152,7 @@ impl Config { let experimental_request_user_input_enabled = resolve_experimental_request_user_input_enabled(&cfg); let update_plan_enabled = resolve_update_plan_enabled(&cfg); + let write_file_tool_enabled = resolve_write_file_tool_enabled(&cfg); let tool_registry = ToolRegistryConfig { error_on_tool_collisions: cfg .features @@ -4954,6 +4967,7 @@ impl Config { web_search_backend, experimental_request_user_input_enabled, update_plan_enabled, + write_file_tool_enabled, tool_registry, code_mode, background_terminal_max_timeout, diff --git a/akode-rs/core/src/config/permissions.rs b/akode-rs/core/src/config/permissions.rs index afea75f6..1d67e602 100644 --- a/akode-rs/core/src/config/permissions.rs +++ b/akode-rs/core/src/config/permissions.rs @@ -113,13 +113,28 @@ fn builtin_permission_profile( *exclude_tmpdir_env_var, *exclude_slash_tmp, ), - None => PermissionProfile::workspace_write(), + // aKode 0.9.1: without explicit `[sandbox_workspace_write]` settings the + // built-in workspace profile has network access, routed through the managed + // proxy and its package-registry allowlist (`[features.network_proxy]` in the + // packaged defaults). Filesystem access is unchanged. + None => akode_default_workspace_profile(), }), BUILT_IN_DANGER_FULL_ACCESS_PROFILE => Some(PermissionProfile::Disabled), _ => None, } } +/// aKode: the default workspace-write profile, with network access enabled (filtered +/// by the managed network proxy allowlist when the `network_proxy` feature is on). +pub fn akode_default_workspace_profile() -> PermissionProfile { + PermissionProfile::workspace_write_with( + &[], + NetworkSandboxPolicy::Enabled, + /*exclude_tmpdir_env_var*/ false, + /*exclude_slash_tmp*/ false, + ) +} + pub(crate) fn validate_user_permission_profile_names( permissions: Option<&PermissionsToml>, ) -> io::Result<()> { diff --git a/akode-rs/core/src/guardian/response_resampling.rs b/akode-rs/core/src/guardian/response_resampling.rs index 776e98c1..41cfc46b 100644 --- a/akode-rs/core/src/guardian/response_resampling.rs +++ b/akode-rs/core/src/guardian/response_resampling.rs @@ -73,6 +73,7 @@ impl ResponseResampling { ResponseEvent::OutputItemAdded(_) | ResponseEvent::OutputTextDelta(_) | ResponseEvent::ToolCallInputDelta { .. } + | ResponseEvent::ServerProgress { .. } | ResponseEvent::ReasoningSummaryDelta { .. } | ResponseEvent::ReasoningSummaryDone { .. } | ResponseEvent::ReasoningContentDelta { .. } diff --git a/akode-rs/core/src/guardian/snapshots/akode_core__guardian__tests__guardian_followup_review_request_layout.snap b/akode-rs/core/src/guardian/snapshots/akode_core__guardian__tests__guardian_followup_review_request_layout.snap index 22bc358a..7dfa0ed7 100644 --- a/akode-rs/core/src/guardian/snapshots/akode_core__guardian__tests__guardian_followup_review_request_layout.snap +++ b/akode-rs/core/src/guardian/snapshots/akode_core__guardian__tests__guardian_followup_review_request_layout.snap @@ -1,13 +1,14 @@ --- source: core/src/guardian/tests.rs +assertion_line: 2296 expression: "format!(\"{}\\n\\nshared_prompt_cache_key: {}\\nfollowup_contains_first_rationale: {}\",\nnormalize_guardian_snapshot_paths(format_guardian_requests_snapshot(\"Guardian follow-up review request layout\",\n&[(\"Initial Guardian Review Request\", &requests[0]),\n(\"Follow-up Guardian Review Request\", &requests[1]),],)),\nfirst_body[\"prompt_cache_key\"] == second_body[\"prompt_cache_key\"],\nsecond_body.to_string().contains(first_rationale),)" --- Scenario: Guardian follow-up review request layout ## Window 1 -- request 1 (request; Initial Guardian Review Request) -- -00:additional_tools/developer (1; hash=7758f662cd124827): - - namespace/functions; hash=70d14ec929ba5cd7 +00:additional_tools/developer (1; hash=633c75daaa992024): + - namespace/functions; hash=84d701b5b5f9f8fc - custom/exec - function/wait 01:message/developer: diff --git a/akode-rs/core/src/guardian/snapshots/akode_core__guardian__tests__guardian_review_request_layout.snap b/akode-rs/core/src/guardian/snapshots/akode_core__guardian__tests__guardian_review_request_layout.snap index f3c25197..1adf4484 100644 --- a/akode-rs/core/src/guardian/snapshots/akode_core__guardian__tests__guardian_review_request_layout.snap +++ b/akode-rs/core/src/guardian/snapshots/akode_core__guardian__tests__guardian_review_request_layout.snap @@ -1,13 +1,14 @@ --- source: core/src/guardian/tests.rs +assertion_line: 1843 expression: "normalize_guardian_snapshot_paths(format_guardian_requests_snapshot(\"Guardian review request layout\",\n&[(\"Guardian Review Request\", &request)],))" --- Scenario: Guardian review request layout ## Window 1 -- request 1 (request; Guardian Review Request) -- -00:additional_tools/developer (1; hash=7758f662cd124827): - - namespace/functions; hash=70d14ec929ba5cd7 +00:additional_tools/developer (1; hash=633c75daaa992024): + - namespace/functions; hash=84d701b5b5f9f8fc - custom/exec - function/wait 01:message/developer: diff --git a/akode-rs/core/src/session/loop_guard.rs b/akode-rs/core/src/session/loop_guard.rs index 6fb63d07..77c9bec0 100644 --- a/akode-rs/core/src/session/loop_guard.rs +++ b/akode-rs/core/src/session/loop_guard.rs @@ -13,6 +13,11 @@ pub(crate) const IDENTICAL_CALLS_MESSAGE: &str = "Il modello ripete la stessa chiamata a strumento con gli stessi argomenti: turno interrotto."; pub(crate) const REPEATED_TEXT_MESSAGE: &str = "Il modello ripete lo stesso testo: risposta interrotta."; +/// aKode: before stopping the turn, the model gets one warning (as a harness message). +pub(crate) const LOOP_NUDGE_ID: &str = "akode-loop-guard"; +pub(crate) const LOOP_NUDGE_TEXT: &str = "[aKode] You repeated the same tool call and got the same result each time. Repeating it again will not work and the turn will be stopped. Read the last error message carefully and change approach: use a different tool or different arguments (for example exec_command to run commands, write_file or apply_patch to create files)."; +pub(crate) const LOOP_NUDGE_NOTICE: &str = + "Il modello ripete la stessa chiamata: aKode lo avvisa una volta prima di fermare il turno."; pub(crate) const SANDBOX_HINT: &str = "Sembra un blocco della sandbox: usa /permissions per concedere più accesso."; diff --git a/akode-rs/core/src/session/turn.rs b/akode-rs/core/src/session/turn.rs index ec517819..e1698089 100644 --- a/akode-rs/core/src/session/turn.rs +++ b/akode-rs/core/src/session/turn.rs @@ -500,6 +500,8 @@ pub(crate) async fn run_turn( let mut stop_hook_active = false; // Reminders sent this turn for announced-but-not-executed actions (`[agent] announce_nudges`). let mut announce_nudges_sent: u32 = 0; + // aKode: the loop guard first warns the model once, then stops the turn. + let mut loop_nudge_sent = false; // Although from the perspective of codex.rs, TurnDiffTracker has the lifecycle of a Task which contains // many turns, from the perspective of the user, it is a single turn. let turn_diff_tracker = Arc::new(tokio::sync::Mutex::new( @@ -727,6 +729,37 @@ pub(crate) async fn run_turn( } else { None }; + if loop_message.is_some() + && !loop_nudge_sent + && let Some(nudge) = build_hook_prompt_message( + &[akode_protocol::items::HookPromptFragment { + text: super::loop_guard::LOOP_NUDGE_TEXT.to_string(), + hook_run_id: super::loop_guard::LOOP_NUDGE_ID.to_string(), + metadata: akode_protocol::models::ContentItemMetadata::harness(), + }], + &sess.item_id_generator, + ) + { + loop_nudge_sent = true; + tracing::info!( + turn_id = %turn_context.sub_id, + "akode: repeated tool call; warning the model once before stopping" + ); + sess.send_event( + &turn_context, + EventMsg::Warning(WarningEvent { + message: super::loop_guard::LOOP_NUDGE_NOTICE.to_string(), + }), + ) + .await; + sess.record_response_item_and_emit_turn_item( + &turn_context, + &step_context.settings.model_info, + nudge, + ) + .await; + continue; + } if let Some(message) = loop_message { let event = EventMsg::Error(ErrorEvent { misalignment: None, @@ -2238,6 +2271,8 @@ pub(super) fn realtime_text_for_event(msg: &EventMsg) -> Option, + ) + }); } if let Some(turn_item) = handle_non_tool_response_item( sess.as_ref(), @@ -3326,6 +3369,23 @@ async fn try_run_sampling_request( error_or_panic("OutputTextDelta without active item".to_string()); } } + ResponseEvent::ServerProgress { + kind, + percent, + eta_s, + ahead, + } => { + sess.send_event( + &turn_context, + EventMsg::ServerProgress(akode_protocol::protocol::ServerProgressEvent { + kind, + percent, + eta_s, + ahead, + }), + ) + .await; + } ResponseEvent::ToolCallInputDelta { item_id: _, call_id, diff --git a/akode-rs/core/src/tools/handlers/apply_patch.rs b/akode-rs/core/src/tools/handlers/apply_patch.rs index 214f86bc..2bd1f58c 100644 --- a/akode-rs/core/src/tools/handlers/apply_patch.rs +++ b/akode-rs/core/src/tools/handlers/apply_patch.rs @@ -28,6 +28,7 @@ use crate::tools::events::ToolEventCtx; use crate::tools::handlers::apply_granted_turn_permissions; use crate::tools::handlers::apply_patch_spec::create_apply_patch_freeform_tool; use crate::tools::handlers::apply_patch_spec::create_apply_patch_function_tool; +use crate::tools::handlers::apply_patch_spec::create_write_file_tool; use crate::tools::handlers::file_system_sandbox_policy_context_for_cwd; use crate::tools::handlers::resolve_tool_environment; use crate::tools::handlers::selected_executor; @@ -70,6 +71,9 @@ const APPLY_PATCH_ARGUMENT_DIFF_BUFFER_INTERVAL: Duration = Duration::from_milli pub struct ApplyPatchHandler { multi_environment: bool, tool_type: ApplyPatchToolType, + /// aKode: this handler serves the `write_file` tool (path + whole content), + /// converted into an `*** Add File` patch. + write_file: bool, } impl ApplyPatchHandler { @@ -77,6 +81,17 @@ impl ApplyPatchHandler { Self { multi_environment, tool_type, + write_file: false, + } + } + + /// The `write_file` tool: a JSON function tool that goes through the same + /// verification, sandbox, approval and hook path as `apply_patch`. + pub(crate) fn write_file() -> Self { + Self { + multi_environment: false, + tool_type: ApplyPatchToolType::Function, + write_file: true, } } } @@ -90,10 +105,39 @@ impl Default for ApplyPatchHandler { } } -/// Arguments of the JSON function variant of `apply_patch`. +/// Arguments of the JSON function variant of `apply_patch`, or of `write_file`. #[derive(serde::Deserialize)] -struct ApplyPatchFunctionArgs { - input: String, +#[serde(untagged)] +enum ApplyPatchFunctionArgs { + Patch { input: String }, + WriteFile { path: String, content: String }, +} + +/// aKode: reminder appended to a successful `write_file`, so that the model checks +/// the new file instead of declaring the task done untested. +const WRITE_FILE_VERIFY_HINT: &str = "\nBefore you finish, verify the file: run it, its tests or a quick check (with sample input if it reads stdin, in a non-interactive mode if it opens windows) and fix what fails."; + +/// aKode: converts `write_file` arguments into an `*** Add File` patch (which +/// creates the file or replaces its whole content). Every content line gets the +/// `+` prefix, so no content can be read as a patch marker. +pub(crate) fn write_file_patch(path: &str, content: &str) -> Result { + let path = path.trim(); + if path.is_empty() || path.contains(['\n', '\r']) { + return Err(FunctionCallError::RespondToModel( + "write_file expects a non-empty single-line `path`".to_string(), + )); + } + let mut patch = format!("*** Begin Patch\n*** Add File: {path}\n"); + if content.is_empty() { + patch.push_str("+\n"); + } + for line in content.lines() { + patch.push('+'); + patch.push_str(line.strip_suffix('\r').unwrap_or(line)); + patch.push('\n'); + } + patch.push_str("*** End Patch"); + Ok(patch) } /// Extracts the patch text from either the freeform or the function payload. @@ -101,13 +145,15 @@ fn apply_patch_input(payload: &ToolPayload) -> Result match payload { ToolPayload::Custom { input } => Ok(input.clone()), ToolPayload::Function { arguments } => { - serde_json::from_str::(arguments) - .map(|args| args.input) - .map_err(|err| { - FunctionCallError::RespondToModel(format!( - "apply_patch expects JSON arguments {{\"input\": \"\"}}: {err}" - )) - }) + match serde_json::from_str::(arguments) { + Ok(ApplyPatchFunctionArgs::Patch { input }) => Ok(input), + Ok(ApplyPatchFunctionArgs::WriteFile { path, content }) => { + write_file_patch(&path, &content) + } + Err(err) => Err(FunctionCallError::RespondToModel(format!( + "expected JSON arguments {{\"input\": \"\"}} for apply_patch or {{\"path\": \"\", \"content\": \"\"}} for write_file: {err}" + ))), + } } ToolPayload::ToolSearch { .. } => Err(FunctionCallError::RespondToModel( "apply_patch handler received unsupported payload".to_string(), @@ -322,10 +368,17 @@ fn apply_patch_payload_command(payload: &ToolPayload) -> Option { impl ToolExecutor for ApplyPatchHandler { fn tool_name(&self) -> ToolName { - ToolName::plain("apply_patch") + if self.write_file { + ToolName::plain("write_file") + } else { + ToolName::plain("apply_patch") + } } fn spec(&self) -> ToolSpec { + if self.write_file { + return create_write_file_tool(); + } match self.tool_type { ApplyPatchToolType::Freeform => { create_apply_patch_freeform_tool(self.multi_environment) @@ -371,7 +424,10 @@ impl ApplyPatchHandler { call_id, tool_name, }; - let content = execute_prepared_patch(request, Some(&tracker), tool_ctx).await?; + let mut content = execute_prepared_patch(request, Some(&tracker), tool_ctx).await?; + if self.write_file && content.contains("Success.") { + content.push_str(WRITE_FILE_VERIFY_HINT); + } Ok(boxed_tool_output(ApplyPatchToolOutput::from_text(content))) } } @@ -383,7 +439,7 @@ impl CoreToolRuntime for ApplyPatchHandler { ) -> Result { let input = apply_patch_input(&invocation.payload)?; let args = akode_apply_patch::parse_patch(&input).map_err(|err| { - FunctionCallError::RespondToModel(format!("apply_patch verification failed: {err}")) + patch_parse_error_for_model(&err) })?; let environment_id = require_environment_id(args.environment_id.as_deref(), self.multi_environment)?; @@ -423,7 +479,7 @@ impl CoreToolRuntime for ApplyPatchHandler { ) -> Result { let patch = updated_hook_command(&updated_input)?; let args = akode_apply_patch::parse_patch(patch).map_err(|err| { - FunctionCallError::RespondToModel(format!("apply_patch verification failed: {err}")) + patch_parse_error_for_model(&err) })?; if let Some(id) = require_environment_id(args.environment_id.as_deref(), self.multi_environment)? @@ -464,6 +520,26 @@ impl CoreToolRuntime for ApplyPatchHandler { } } +/// Parse errors go back to the model with a one-line reminder of the format, +/// so that local models can fix the patch on the next attempt (aKode). +fn patch_parse_error_for_model(err: &akode_apply_patch::ParseError) -> FunctionCallError { + FunctionCallError::RespondToModel(format!( + "apply_patch verification failed: {err}\n{}", + akode_apply_patch::PATCH_FORMAT_HINT + )) +} + +fn patch_correctness_error_for_model(err: &akode_apply_patch::ApplyPatchError) -> FunctionCallError { + match err { + akode_apply_patch::ApplyPatchError::ParseError(parse_error) => { + patch_parse_error_for_model(parse_error) + } + err => FunctionCallError::RespondToModel(format!( + "apply_patch verification failed: {err}" + )), + } +} + #[allow(clippy::too_many_arguments)] pub(crate) async fn intercept_apply_patch( command: &[String], @@ -508,9 +584,7 @@ pub(crate) async fn prepare_intercepted_patch( prepare_verified_patch(changes, turn_environment.clone(), step_context).map(Some) } akode_apply_patch::MaybeApplyPatchVerified::CorrectnessError(parse_error) => { - Err(FunctionCallError::RespondToModel(format!( - "apply_patch verification failed: {parse_error}" - ))) + Err(patch_correctness_error_for_model(&parse_error)) } akode_apply_patch::MaybeApplyPatchVerified::ShellParseError(error) => { tracing::trace!("Failed to parse apply_patch input, {error:?}"); @@ -528,9 +602,7 @@ pub(crate) async fn prepare_patch_request( let args = match akode_apply_patch::parse_patch(patch_input) { Ok(args) => args, Err(parse_error) => { - return Err(FunctionCallError::RespondToModel(format!( - "apply_patch verification failed: {parse_error}" - ))); + return Err(patch_parse_error_for_model(&parse_error)); } }; let fs = turn_environment.environment().get_filesystem(); @@ -547,9 +619,7 @@ pub(crate) async fn prepare_patch_request( prepare_verified_patch(changes, turn_environment.clone(), step_context) } akode_apply_patch::MaybeApplyPatchVerified::CorrectnessError(parse_error) => { - Err(FunctionCallError::RespondToModel(format!( - "apply_patch verification failed: {parse_error}" - ))) + Err(patch_correctness_error_for_model(&parse_error)) } akode_apply_patch::MaybeApplyPatchVerified::ShellParseError(error) => { tracing::trace!("Failed to parse apply_patch input, {error:?}"); diff --git a/akode-rs/core/src/tools/handlers/apply_patch_spec.rs b/akode-rs/core/src/tools/handlers/apply_patch_spec.rs index 1da5e645..d94eb6d1 100644 --- a/akode-rs/core/src/tools/handlers/apply_patch_spec.rs +++ b/akode-rs/core/src/tools/handlers/apply_patch_spec.rs @@ -67,6 +67,36 @@ Grammar (Lark):\n{APPLY_PATCH_LARK_GRAMMAR}" }) } +/// aKode: `write_file`, a plain JSON function tool to create a file or replace +/// its whole content. Models that only know JSON function calling (and look for a +/// "write" tool) use it instead of hand-writing the patch format; it runs through +/// the same apply_patch verification, sandbox and approvals. +pub fn create_write_file_tool() -> ToolSpec { + ToolSpec::Function(ResponsesApiTool { + name: "write_file".to_string(), + description: "Create a file or replace its whole content. Use it to write new files or to rewrite a file completely; for small edits to an existing file use apply_patch. Parent directories are created. Same sandbox and approval rules as apply_patch.".to_string(), + strict: false, + defer_loading: None, + parameters: JsonSchema::object( + BTreeMap::from([ + ( + "path".to_string(), + JsonSchema::string(Some( + "File path, relative to the working directory or absolute.".to_string(), + )), + ), + ( + "content".to_string(), + JsonSchema::string(Some("The complete new content of the file.".to_string())), + ), + ]), + Some(vec!["path".to_string(), "content".to_string()]), + Some(false.into()), + ), + output_schema: None, + }) +} + #[cfg(test)] #[path = "apply_patch_spec_tests.rs"] mod tests; diff --git a/akode-rs/core/src/tools/handlers/apply_patch_tests.rs b/akode-rs/core/src/tools/handlers/apply_patch_tests.rs index 9937aae2..ee307b62 100644 --- a/akode-rs/core/src/tools/handlers/apply_patch_tests.rs +++ b/akode-rs/core/src/tools/handlers/apply_patch_tests.rs @@ -435,3 +435,47 @@ fn write_permissions_for_windows_paths_uses_executor_uris() { )]), ); } + +#[test] +fn write_file_patch_adds_plus_prefixes_and_markers() { + let patch = write_file_patch("src/a.py", "print(1)\n*** End Patch\n\nx").expect("patch"); + assert_eq!( + patch, + "*** Begin Patch\n*** Add File: src/a.py\n+print(1)\n+*** End Patch\n+\n+x\n*** End Patch" + ); + let args = akode_apply_patch::parse_patch(&patch).expect("parses"); + assert_eq!( + args.hunks, + vec![akode_apply_patch::Hunk::AddFile { + path: std::path::PathBuf::from("src/a.py"), + contents: "print(1)\n*** End Patch\n\nx\n".to_string(), + }] + ); +} + +#[test] +fn write_file_patch_rejects_bad_paths_and_accepts_empty_content() { + assert!(write_file_patch("", "x").is_err()); + assert!(write_file_patch("a\nb", "x").is_err()); + let patch = write_file_patch("empty.txt", "").expect("patch"); + assert!(akode_apply_patch::parse_patch(&patch).is_ok()); +} + +#[test] +fn function_payload_accepts_write_file_arguments() { + let payload = ToolPayload::Function { + arguments: serde_json::json!({"path": "b.txt", "content": "hi"}).to_string(), + }; + assert_eq!( + apply_patch_input(&payload).expect("input"), + "*** Begin Patch\n*** Add File: b.txt\n+hi\n*** End Patch" + ); + let payload = ToolPayload::Function { + arguments: serde_json::json!({"input": "*** Begin Patch"}).to_string(), + }; + assert_eq!(apply_patch_input(&payload).expect("input"), "*** Begin Patch"); + let payload = ToolPayload::Function { + arguments: serde_json::json!({"file": "b.txt"}).to_string(), + }; + assert!(apply_patch_input(&payload).is_err()); +} diff --git a/akode-rs/core/src/tools/handlers/shell_spec.rs b/akode-rs/core/src/tools/handlers/shell_spec.rs index e6ef5fe8..1fbbf6ae 100644 --- a/akode-rs/core/src/tools/handlers/shell_spec.rs +++ b/akode-rs/core/src/tools/handlers/shell_spec.rs @@ -112,7 +112,7 @@ pub fn create_write_stdin_tool() -> ToolSpec { ( "session_id".to_string(), JsonSchema::number(Some( - "Identifier of the running unified exec session.".to_string(), + "Session ID printed by an earlier exec_command whose process is still running (\"Process running with session ID N\"). Never invent one.".to_string(), )), ), ( @@ -138,7 +138,7 @@ pub fn create_write_stdin_tool() -> ToolSpec { ToolSpec::Function(ResponsesApiTool { name: "write_stdin".to_string(), description: - "Writes characters to an existing unified exec session and returns recent output." + "Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files." .to_string(), strict: false, defer_loading: None, diff --git a/akode-rs/core/src/tools/handlers/shell_spec_tests.rs b/akode-rs/core/src/tools/handlers/shell_spec_tests.rs index 7f8007b1..13955cc6 100644 --- a/akode-rs/core/src/tools/handlers/shell_spec_tests.rs +++ b/akode-rs/core/src/tools/handlers/shell_spec_tests.rs @@ -98,7 +98,7 @@ fn write_stdin_tool_matches_expected_spec() { ( "session_id".to_string(), JsonSchema::number(Some( - "Identifier of the running unified exec session.".to_string(), + "Session ID printed by an earlier exec_command whose process is still running (\"Process running with session ID N\"). Never invent one.".to_string(), )), ), ( @@ -126,7 +126,7 @@ fn write_stdin_tool_matches_expected_spec() { ToolSpec::Function(ResponsesApiTool { name: "write_stdin".to_string(), description: - "Writes characters to an existing unified exec session and returns recent output." + "Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files." .to_string(), strict: false, defer_loading: None, diff --git a/akode-rs/core/src/tools/handlers/unified_exec.rs b/akode-rs/core/src/tools/handlers/unified_exec.rs index b1164895..81d5a4b9 100644 --- a/akode-rs/core/src/tools/handlers/unified_exec.rs +++ b/akode-rs/core/src/tools/handlers/unified_exec.rs @@ -20,6 +20,7 @@ use std::path::PathBuf; use std::sync::Arc; mod exec_command; +mod network_note; pub(crate) mod preparation; mod write_stdin; @@ -47,22 +48,58 @@ pub(crate) fn terminal_session_for_input( &invocation.step_context.environments, /*environment_id*/ None, )?; - invocation + let result = invocation .session .services .unified_exec_manager .resolve_terminal(args.session_id) .await - .map(ToolEnvironments::Terminal) - .map_err(|err| { - FunctionCallError::RespondToModel(format!( - "{} failed: {err}", - invocation.tool_name.name + .map(ToolEnvironments::Terminal); + match result { + Ok(environments) => Ok(environments), + Err(crate::unified_exec::UnifiedExecError::UnknownProcessId { process_id }) => { + Err(FunctionCallError::RespondToModel( + unknown_session_message( + &invocation.session.services.unified_exec_manager, + &invocation.tool_name.name, + process_id, + ) + .await, )) - }) + } + Err(err) => Err(FunctionCallError::RespondToModel(format!( + "{} failed: {err}", + invocation.tool_name.name + ))), + } }) } +/// Error for a `session_id` that does not exist (e.g. invented by the model): +/// lists the sessions that are still running and points to `exec_command`. +pub(crate) async fn unknown_session_message( + manager: &crate::unified_exec::UnifiedExecProcessManager, + tool_name: &str, + process_id: i32, +) -> String { + let running = manager.list_processes().await; + let running = if running.is_empty() { + "none".to_string() + } else { + running + .iter() + .map(|info| format!("{} (`{}`)", info.process_id, info.command)) + .collect::>() + .join(", ") + }; + format!( + "{tool_name} failed: Unknown process id {process_id}. Running sessions: {running}. \ +{tool_name} only works with a session_id returned by an earlier exec_command whose process \ +is still running; do not invent ids. It cannot write files or start commands: to run a \ +command call exec_command; to create or rewrite a file call write_file (or apply_patch)." + ) +} + #[derive(Debug, Deserialize)] pub(crate) struct ExecCommandArgs { pub(crate) cmd: String, diff --git a/akode-rs/core/src/tools/handlers/unified_exec/exec_command.rs b/akode-rs/core/src/tools/handlers/unified_exec/exec_command.rs index 756a2e9a..234dee62 100644 --- a/akode-rs/core/src/tools/handlers/unified_exec/exec_command.rs +++ b/akode-rs/core/src/tools/handlers/unified_exec/exec_command.rs @@ -224,6 +224,7 @@ impl ExecCommandHandler { let hook_command = prepared.hook_command.clone(); let tool_cwd = (!prepared.turn_environment.environment().is_remote()).then(|| prepared.cwd.clone()); + let network_note_context = network_note_context(&prepared, &context).await; let request = ExecCommandRequest { prepared, process_id, @@ -236,6 +237,10 @@ impl ExecCommandHandler { } None => manager.exec_command(request, &context).await, }; + let result = result.map(|mut response| { + append_network_note(&mut response.raw_output, &network_note_context); + response + }); match result { Ok(response) => Ok(boxed_tool_output(response)), Err(UnifiedExecError::SandboxDenied { @@ -244,7 +249,12 @@ impl ExecCommandHandler { output_omitted_bytes, .. }) => { - let output_text = output.aggregated_output.text; + let mut output_text = output.aggregated_output.text; + if let Some(note) = + super::network_note::network_note(&output_text, &network_note_context) + { + output_text.push_str(¬e); + } let original_token_count = original_token_count.unwrap_or_else(|| approx_token_count(&output_text)); Ok(boxed_tool_output(ExecCommandToolOutput { @@ -277,6 +287,49 @@ impl ExecCommandHandler { } } +/// aKode: what the model needs to know to explain a network failure (see +/// `network_note`). Computed before the command runs. +async fn network_note_context( + prepared: &super::preparation::PreparedExecCommand, + context: &UnifiedExecContext, +) -> super::network_note::NetworkNoteContext { + let escalated = prepared + .permissions + .sandbox_permissions + .requests_sandbox_override(); + let sandbox_disabled = matches!( + prepared.turn_environment.permission_profile(), + akode_protocol::models::PermissionProfile::Disabled + ); + let approval_policy = context.step_context.settings.approval_policy(); + let can_request_escalation = + crate::exec_policy::prompt_is_rejected_by_policy(approval_policy, /*prompt_is_rule*/ false) + .is_none(); + let allowed_domains = match context.step_context.turn.network.as_ref() { + Some(network) => network + .current_cfg() + .await + .ok() + .and_then(|cfg| cfg.allowed_domains()) + .unwrap_or_default(), + None => Vec::new(), + }; + super::network_note::NetworkNoteContext { + sandboxed: !escalated && !sandbox_disabled, + can_request_escalation, + allowed_domains, + } +} + +fn append_network_note( + output: &mut CapturedStream, + context: &super::network_note::NetworkNoteContext, +) { + if let Some(note) = super::network_note::network_note(&output.text, context) { + output.text.push_str(¬e); + } +} + fn one_shot_exec_command_spec(spec: ToolSpec) -> ToolSpec { let ToolSpec::Function(mut spec) = spec else { unreachable!("exec_command has a function schema"); diff --git a/akode-rs/core/src/tools/handlers/unified_exec/network_note.rs b/akode-rs/core/src/tools/handlers/unified_exec/network_note.rs new file mode 100644 index 00000000..332337df --- /dev/null +++ b/akode-rs/core/src/tools/handlers/unified_exec/network_note.rs @@ -0,0 +1,124 @@ +//! aKode: explains to the model that a network failure inside the sandbox comes +//! from the sandbox network policy, not from a broken connection. +//! +//! Local models tend to read `Could not resolve host` or a proxy `403` as "no +//! internet" and give up (e.g. on `pip install`). The note tells them what is +//! reachable and how to ask the user for an unsandboxed run. + +/// Output fragments printed by common tools (pip, npm, curl, git, cargo, dart...) +/// when DNS or the connection is refused by the sandbox or by the network proxy. +const NETWORK_FAILURE_PATTERNS: &[&str] = &[ + // DNS blocked by the sandbox (macOS / glibc / Node / Python). + "nodename nor servname provided", + "could not resolve host", + "temporary failure in name resolution", + "name or service not known", + "getaddrinfo enotfound", + "getaddrinfo eai_again", + "failed to establish a new connection", + "network is unreachable", + "failed to lookup address information", + "failed host lookup", + // Domain refused by the aKode network proxy (allowlist). + "domain not in allowlist", + "blocked-by-allowlist", + "blocked-by-denylist", + "domain denied by the sandbox policy", + "tunnel connection failed: 403", + "connect tunnel failed, response 403", +]; + +pub(crate) struct NetworkNoteContext { + /// The command ran inside the sandbox (no escalation, sandbox not disabled). + pub(crate) sandboxed: bool, + /// The approval policy lets the model ask for an unsandboxed run. + pub(crate) can_request_escalation: bool, + /// Domains reachable through the sandbox network proxy, if any. + pub(crate) allowed_domains: Vec, +} + +pub(crate) fn looks_like_network_failure(output: &str) -> bool { + let output = output.to_ascii_lowercase(); + NETWORK_FAILURE_PATTERNS + .iter() + .any(|pattern| output.contains(pattern)) +} + +/// Returns the note to append to the command output, or `None` when the +/// output does not look like a network failure or the command was not sandboxed. +pub(crate) fn network_note(output: &str, context: &NetworkNoteContext) -> Option { + if !context.sandboxed || !looks_like_network_failure(output) { + return None; + } + let reachable = if context.allowed_domains.is_empty() { + "The sandbox blocks all network access.".to_string() + } else { + format!( + "Inside the sandbox only these hosts are reachable: {}.", + context.allowed_domains.join(", ") + ) + }; + let next_step = if context.can_request_escalation { + "If the command needs another host, rerun it with `sandbox_permissions: \"require_escalated\"` and a short `justification`, so the user can approve running it outside the sandbox. Do not conclude that there is no internet connection." + } else { + "The current approval policy does not allow running outside the sandbox: tell the user which command needs network access instead of concluding that there is no internet connection." + }; + Some(format!( + "\n[aKode] Network note: this failure comes from the sandbox network policy, not from a broken connection. {reachable} {next_step}" + )) +} + +#[cfg(test)] +mod tests { + use super::*; + use pretty_assertions::assert_eq; + + fn context(sandboxed: bool, can_request_escalation: bool) -> NetworkNoteContext { + NetworkNoteContext { + sandboxed, + can_request_escalation, + allowed_domains: vec!["pypi.org".to_string()], + } + } + + const PIP_DNS_FAILURE: &str = "WARNING: Retrying (Retry(total=2)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /simple/numpy/\nERROR: No matching distribution found for numpy"; + + #[test] + fn detects_common_network_failures() { + for output in [ + PIP_DNS_FAILURE, + "curl: (6) Could not resolve host: example.com", + "curl: (56) CONNECT tunnel failed, response 403", + "npm ERR! request to https://registry.npmjs.org/x failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org", + "ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))", + "fatal: unable to access 'https://gitlab.com/x.git/': Could not resolve host: gitlab.com", + ] { + assert!(looks_like_network_failure(output), "{output}"); + } + assert!(!looks_like_network_failure("ModuleNotFoundError: No module named 'numpy'")); + assert!(!looks_like_network_failure("Successfully installed numpy-2.1.0")); + } + + #[test] + fn note_only_for_sandboxed_commands() { + assert_eq!(network_note(PIP_DNS_FAILURE, &context(false, true)), None); + assert_eq!(network_note("all good", &context(true, true)), None); + let note = network_note(PIP_DNS_FAILURE, &context(true, true)).expect("note"); + assert!(note.contains("not from a broken connection")); + assert!(note.contains("only these hosts are reachable: pypi.org.")); + assert!(note.contains("require_escalated")); + } + + #[test] + fn note_without_escalation_asks_to_tell_the_user() { + let note = network_note(PIP_DNS_FAILURE, &NetworkNoteContext { + sandboxed: true, + can_request_escalation: false, + allowed_domains: Vec::new(), + }) + .expect("note"); + assert!(note.contains("The sandbox blocks all network access.")); + assert!(note.contains("tell the user")); + assert!(!note.contains("require_escalated")); + } +} diff --git a/akode-rs/core/src/tools/handlers/unified_exec/write_stdin.rs b/akode-rs/core/src/tools/handlers/unified_exec/write_stdin.rs index 3d0557d0..b10f3f37 100644 --- a/akode-rs/core/src/tools/handlers/unified_exec/write_stdin.rs +++ b/akode-rs/core/src/tools/handlers/unified_exec/write_stdin.rs @@ -111,7 +111,21 @@ impl WriteStdinHandler { }), }, ) - .await + .await; + let response = match response { + Err(UnifiedExecError::UnknownProcessId { process_id }) => { + return Err(FunctionCallError::RespondToModel( + super::unknown_session_message( + &session.services.unified_exec_manager, + "write_stdin", + process_id, + ) + .await, + )); + } + response => response, + }; + let response = response .map_err(|err| { let message = match err { UnifiedExecError::StdinApproval(ToolError::Rejected(reason)) => { diff --git a/akode-rs/core/src/tools/mod.rs b/akode-rs/core/src/tools/mod.rs index aeca2ab7..bb5e7dc1 100644 --- a/akode-rs/core/src/tools/mod.rs +++ b/akode-rs/core/src/tools/mod.rs @@ -20,6 +20,7 @@ pub(crate) mod router; pub(crate) mod runtimes; pub(crate) mod sandboxing; pub(crate) mod spec_plan; +pub(crate) mod tool_call_progress; pub(crate) mod tool_dispatch_trace; mod tool_namespaces_info; mod user_messaging; diff --git a/akode-rs/core/src/tools/parallel.rs b/akode-rs/core/src/tools/parallel.rs index 2131d71a..ecb22592 100644 --- a/akode-rs/core/src/tools/parallel.rs +++ b/akode-rs/core/src/tools/parallel.rs @@ -111,6 +111,8 @@ impl ToolCallRuntime { cancellation_token: CancellationToken, ) -> impl std::future::Future> { let error_call = call.clone(); + let failure_session = Arc::clone(&self.session); + let failure_turn = Arc::clone(&self.step_context.turn); let source = call.direct_source(); let recorder = self.session.services.executed_tool_calls.clone(); let item_id_generator = Arc::clone(&self.session.item_id_generator); @@ -139,6 +141,19 @@ impl ToolCallRuntime { } Err(FunctionCallError::Fatal(message)) => return Err(CodexErr::Fatal(message)), Err(other) => { + if let FunctionCallError::RespondToModel(message) = &other { + // aKode: show every failed tool call in the client (the model + // gets the full error and usually retries). + let message = tool_failure_notice(&error_call.tool_name.name, message); + failure_session + .send_event( + &failure_turn, + akode_protocol::protocol::EventMsg::Warning( + akode_protocol::protocol::WarningEvent { message }, + ), + ) + .await; + } ResponseItemEnvelope::new(Self::failure_response(error_call, other).into()) } }; @@ -1082,3 +1097,73 @@ mod observation_tests; #[cfg(test)] #[path = "parallel_trace_tests.rs"] mod trace_tests; + +/// Prefix of the client notice for a failed tool call; the TUI renders these +/// warnings as a compact `✗` line. +pub const TOOL_FAILURE_NOTICE_PREFIX: &str = "✗ "; + +/// One compact line for a failed tool call, e.g. +/// `✗ apply_patch: manca '*** Begin Patch' · riprovo`. +pub(crate) fn tool_failure_notice(tool_name: &str, error: &str) -> String { + const MAX_CHARS: usize = 120; + let summary = if error.contains("must be '*** Begin Patch'") { + "manca '*** Begin Patch'".to_string() + } else if error.contains("must be '*** End Patch'") { + "manca '*** End Patch'".to_string() + } else if let Some(rest) = error.split("Unknown process id ").nth(1) { + let id: String = rest.chars().take_while(char::is_ascii_digit).collect(); + format!("la sessione {id} non esiste") + } else { + let line = error.lines().next().unwrap_or_default().trim(); + let line = line + .strip_prefix(&format!("{tool_name} failed: ")) + .or_else(|| line.strip_prefix(&format!("{tool_name} verification failed: "))) + .unwrap_or(line); + if line.chars().count() > MAX_CHARS { + let truncated: String = line.chars().take(MAX_CHARS).collect(); + format!("{truncated}…") + } else { + line.to_string() + } + }; + format!("{TOOL_FAILURE_NOTICE_PREFIX}{tool_name}: {summary} · riprovo") +} + +#[cfg(test)] +mod tool_failure_notice_tests { + use super::tool_failure_notice; + use pretty_assertions::assert_eq; + + #[test] + fn compact_notices() { + assert_eq!( + tool_failure_notice( + "apply_patch", + "apply_patch verification failed: invalid patch: The first line of the patch must be '*** Begin Patch'\nPatch format: ..." + ), + "✗ apply_patch: manca '*** Begin Patch' · riprovo" + ); + assert_eq!( + tool_failure_notice( + "apply_patch", + "apply_patch verification failed: invalid patch: The last line of the patch must be '*** End Patch'" + ), + "✗ apply_patch: manca '*** End Patch' · riprovo" + ); + assert_eq!( + tool_failure_notice( + "write_stdin", + "write_stdin failed: Unknown process id 42. Running sessions: none." + ), + "✗ write_stdin: la sessione 42 non esiste · riprovo" + ); + assert_eq!( + tool_failure_notice("exec_command", "exec_command failed: boom\ndetails"), + "✗ exec_command: boom · riprovo" + ); + let long = "x".repeat(300); + let notice = tool_failure_notice("tool", &long); + assert!(notice.ends_with("… · riprovo")); + assert!(notice.chars().count() < 160); + } +} diff --git a/akode-rs/core/src/tools/spec_plan.rs b/akode-rs/core/src/tools/spec_plan.rs index 529938b0..638ed4dc 100644 --- a/akode-rs/core/src/tools/spec_plan.rs +++ b/akode-rs/core/src/tools/spec_plan.rs @@ -1370,6 +1370,11 @@ fn add_core_utility_tools(context: &CoreToolPlanContext<'_>, registry: &mut Tool if let Some(tool_type) = context.model_info.apply_patch_tool_type.clone() { let include_environment_id = matches!(environment_mode, ToolEnvironmentMode::Multiple); registry.add(ApplyPatchHandler::new(include_environment_id, tool_type)); + // aKode: a plain "write the whole file" tool, through the same apply_patch + // pipeline (sandbox, approvals, hooks, events). Single environment only. + if turn_context.config.write_file_tool_enabled && !include_environment_id { + registry.add(ApplyPatchHandler::write_file()); + } } if context diff --git a/akode-rs/core/src/tools/tool_call_progress.rs b/akode-rs/core/src/tools/tool_call_progress.rs new file mode 100644 index 00000000..5fa881b9 --- /dev/null +++ b/akode-rs/core/src/tools/tool_call_progress.rs @@ -0,0 +1,175 @@ +//! aKode: progress events while the model is still generating the arguments of +//! a function tool call (for example a whole file inside `apply_patch`). +//! +//! Local models need minutes to write a long file; without these events the +//! client shows nothing and the user thinks aKode is stuck. + +use std::time::Duration; +use std::time::Instant; + +use akode_protocol::protocol::EventMsg; +use akode_protocol::protocol::ToolCallInputProgressEvent; + +use crate::session::turn_context::TurnContext; +use crate::tools::registry::ToolArgumentDiffConsumer; + +/// Minimum interval between two progress events for the same call. +const PROGRESS_INTERVAL: Duration = Duration::from_millis(500); +/// Argument size (in estimated tokens) below which no event is sent: short +/// calls finish before the user could notice anything. +const MIN_TOKENS: u64 = 40; +/// Prefix of the argument text kept to recognize the target. +const TARGET_SCAN_BYTES: usize = 4096; + +pub(crate) struct ToolCallProgressConsumer { + tool_name: String, + deltas: u64, + bytes: u64, + head: String, + target: Option, + last_sent_at: Option, +} + +impl ToolCallProgressConsumer { + pub(crate) fn new(tool_name: impl Into) -> Self { + Self { + tool_name: tool_name.into(), + deltas: 0, + bytes: 0, + head: String::new(), + target: None, + last_sent_at: None, + } + } + + /// Estimated tokens: servers usually send one delta per generated token, + /// but some batch them, so fall back on the byte count (about 4 bytes per token). + fn tokens(&self) -> u64 { + self.deltas.max(self.bytes / 4) + } + + fn push(&mut self, delta: &str) { + self.deltas += 1; + self.bytes += delta.len() as u64; + if self.target.is_none() && self.head.len() < TARGET_SCAN_BYTES { + self.head.push_str(delta); + self.target = find_target(&self.head); + } + } + + fn progress_event(&mut self, call_id: String, now: Instant) -> Option { + let tokens = self.tokens(); + if tokens < MIN_TOKENS { + return None; + } + if self + .last_sent_at + .is_some_and(|last| now.duration_since(last) < PROGRESS_INTERVAL) + { + return None; + } + self.last_sent_at = Some(now); + Some(EventMsg::ToolCallInputProgress(ToolCallInputProgressEvent { + call_id, + tool_name: self.tool_name.clone(), + target: self.target.clone(), + tokens, + })) + } +} + +impl ToolArgumentDiffConsumer for ToolCallProgressConsumer { + fn consume_diff( + &mut self, + _turn: &TurnContext, + call_id: String, + diff: &str, + ) -> Option { + self.push(diff); + self.progress_event(call_id, Instant::now()) + } +} + +/// Recognizes the file being written in partial JSON arguments: an +/// `apply_patch` header, a `"path"`/`"file_path"` field or a shell redirection +/// such as `cat > file << EOF`. Returns the file name without directories. +fn find_target(args: &str) -> Option { + for marker in ["*** Add File: ", "*** Update File: ", "*** Delete File: "] { + if let Some(rest) = args.split(marker).nth(1) { + return complete_value(rest, &["\\n", "\n", "\""]); + } + } + for key in ["\"path\":", "\"file_path\":", "\"filename\":"] { + if let Some(rest) = args.split(key).nth(1) { + let rest = rest.trim_start().strip_prefix('"')?; + return complete_value(rest, &["\""]); + } + } + if let Some(rest) = args.split("cat > ").nth(1).or_else(|| args.split("cat >").nth(1)) { + return complete_value(rest.trim_start(), &[" ", "\\n", "<"]); + } + None +} + +/// Returns the value up to the first terminator, only once a terminator has +/// arrived (so a half-streamed name is not shown). +fn complete_value(rest: &str, terminators: &[&str]) -> Option { + let end = terminators + .iter() + .filter_map(|terminator| rest.find(terminator)) + .min()?; + let value = rest[..end].trim().trim_matches(['\'', '"']); + if value.is_empty() { + return None; + } + let name = value.rsplit(['/', '\\']).next().unwrap_or(value); + (!name.is_empty()).then(|| name.to_string()) +} + +#[cfg(test)] +mod tests { + use super::*; + use pretty_assertions::assert_eq; + + #[test] + fn finds_targets() { + assert_eq!( + find_target(r#"{"input":"*** Begin Patch\n*** Add File: /tmp/x/sovrapposizione_fourier.py\n+#!"#), + Some("sovrapposizione_fourier.py".to_string()) + ); + assert_eq!(find_target(r#"{"input":"*** Add File: /tmp/x/sovra"#), None); + assert_eq!( + find_target(r#"{"path": "src/main.rs", "content": "fn"#), + Some("main.rs".to_string()) + ); + assert_eq!( + find_target(r#"{"cmd":"cat > /tmp/p/fourier.py << 'EOF'\n"#), + Some("fourier.py".to_string()) + ); + assert_eq!(find_target(r#"{"cmd":"ls -la"}"#), None); + } + + #[test] + fn throttles_and_skips_short_calls() { + let mut consumer = ToolCallProgressConsumer::new("apply_patch"); + let start = Instant::now(); + consumer.push(r#"{"input":"*** Add File: a.py\n"#); + assert!(consumer.progress_event("c".to_string(), start).is_none()); + for _ in 0..100 { + consumer.push("x"); + } + let Some(EventMsg::ToolCallInputProgress(event)) = + consumer.progress_event("c".to_string(), start) + else { + panic!("expected a progress event"); + }; + assert_eq!(event.target.as_deref(), Some("a.py")); + assert_eq!(event.tokens, 101); + assert!(consumer.progress_event("c".to_string(), start).is_none()); + assert!( + consumer + .progress_event("c".to_string(), start + PROGRESS_INTERVAL) + .is_some() + ); + } +} diff --git a/akode-rs/core/src/turn_timing.rs b/akode-rs/core/src/turn_timing.rs index 34d85b3e..01bd0918 100644 --- a/akode-rs/core/src/turn_timing.rs +++ b/akode-rs/core/src/turn_timing.rs @@ -534,6 +534,7 @@ fn response_event_records_turn_ttft(event: &ResponseEvent) -> bool { | ResponseEvent::SafetyBuffering(_) | ResponseEvent::ServerReasoningIncluded(_) | ResponseEvent::ToolCallInputDelta { .. } + | ResponseEvent::ServerProgress { .. } | ResponseEvent::Completed { .. } | ResponseEvent::ReasoningSummaryPartAdded { .. } | ResponseEvent::RateLimits(_) diff --git a/akode-rs/core/tests/suite/current_time_reminder.rs b/akode-rs/core/tests/suite/current_time_reminder.rs index 491c1584..b2db2bfd 100644 --- a/akode-rs/core/tests/suite/current_time_reminder.rs +++ b/akode-rs/core/tests/suite/current_time_reminder.rs @@ -667,7 +667,7 @@ async fn time_provider_failure_stops_before_inference() -> Result<()> { }; assert_eq!( error.message, - "Fatal error: failed to read current time: test clock unavailable" + "Errore fatale: failed to read current time: test clock unavailable" ); assert_eq!(error.codex_error_info, Some(CodexErrorInfo::Other)); diff --git a/akode-rs/core/tests/suite/remote_env_required_skills_tests.rs b/akode-rs/core/tests/suite/remote_env_required_skills_tests.rs index 82dc0546..63453055 100644 --- a/akode-rs/core/tests/suite/remote_env_required_skills_tests.rs +++ b/akode-rs/core/tests/suite/remote_env_required_skills_tests.rs @@ -150,7 +150,7 @@ async fn required_environment_skill_gates_inference(availability: Availability) assert_eq!( errors, vec![ - "Fatal error: Required skill \"review\" from environment \"required\" is unavailable" + "Errore fatale: Required skill \"review\" from environment \"required\" is unavailable" ] ); test.submit_turn_with_environments( diff --git a/akode-rs/core/tests/suite/rollout_budget.rs b/akode-rs/core/tests/suite/rollout_budget.rs index ecd5abad..46cdd0e0 100644 --- a/akode-rs/core/tests/suite/rollout_budget.rs +++ b/akode-rs/core/tests/suite/rollout_budget.rs @@ -233,7 +233,7 @@ async fn invalid_provider_rollout_budget_units_fail_without_retry() -> Result<() }; assert_eq!( error.message, - "Fatal error: response.completed usage.codex_rollout_budget_units must be finite and non-negative" + "Errore fatale: response.completed usage.codex_rollout_budget_units must be finite and non-negative" ); assert_eq!(error.codex_error_info, Some(CodexErrorInfo::Other)); wait_for_event(&test.codex, |event| { diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__cached_stdio_stays_dormant_in_a_new_chat_until_first_use.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__cached_stdio_stays_dormant_in_a_new_chat_until_first_use.snap index 111d5ce1..8fb93a0d 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__cached_stdio_stays_dormant_in_a_new_chat_until_first_use.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__cached_stdio_stays_dormant_in_a_new_chat_until_first_use.snap @@ -16,7 +16,7 @@ Settings: tool_choice: "auto" tools (11; hash=4d4c5864372f536e): - function/exec_command: Runs a command in a PTY, returning output or a session ID for ongoing interaction.; args=[cmd, justification, login, max_output_tokens, prefix_rule, sandbox_permissions, shell, tty, workdir, yield_time_ms]; hash=c04108e51a8548c5 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - function/list_mcp_resources: Lists resources provided by MCP servers. Resources allow servers to share data that provides cont...; args=[cursor, server]; hash=6792edaff13561bd - function/list_mcp_resource_templates: Lists resource templates provided by MCP servers. Parameterized resource templates allow servers ...; args=[cursor, server]; hash=60f17c90ef7a4ebb - function/read_mcp_resource: Read a specific resource from an MCP server given the server name and resource URI.; args=[server, uri]; hash=24246896b39008ae diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_plugin_guidance_follows_model_and_survives_resume.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_plugin_guidance_follows_model_and_survives_resume.snap index 38ac9480..a9791ef3 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_plugin_guidance_follows_model_and_survives_resume.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_plugin_guidance_follows_model_and_survives_resume.snap @@ -17,7 +17,7 @@ Settings: tool_choice: "auto" tools (7; hash=4bc85f667bb09668): - function/exec_command: Runs a command in a PTY, returning output or a session ID for ongoing interaction.; args=[cmd, justification, login, max_output_tokens, prefix_rule, sandbox_permissions, shell, tty, workdir, yield_time_ms]; hash=c04108e51a8548c5 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - function/request_user_input: Request user input for one to three short questions and wait for the response. This tool is only ...; args=[questions]; hash=64a729b25c424fc6 - custom/apply_patch: The `apply_patch` tool can be used to edit files. This is a FREEFORM tool, so do not wrap the pat...; hash=dea9f12b0111a4ba - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=1908de9c0be7118a diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_selected_plugin_wording_apps_false_simplified_false.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_selected_plugin_wording_apps_false_simplified_false.snap index 04277940..9b556971 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_selected_plugin_wording_apps_false_simplified_false.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_selected_plugin_wording_apps_false_simplified_false.snap @@ -17,7 +17,7 @@ Settings: tool_choice: "auto" tools (11; hash=2123887d18ce7e32): - function/exec_command: Runs a command in a PTY, returning output or a session ID for ongoing interaction.; args=[cmd, justification, login, max_output_tokens, prefix_rule, sandbox_permissions, shell, tty, workdir, yield_time_ms]; hash=c04108e51a8548c5 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - function/list_mcp_resources: Lists resources provided by MCP servers. Resources allow servers to share data that provides cont...; args=[cursor, server]; hash=6792edaff13561bd - function/list_mcp_resource_templates: Lists resource templates provided by MCP servers. Parameterized resource templates allow servers ...; args=[cursor, server]; hash=60f17c90ef7a4ebb - function/read_mcp_resource: Read a specific resource from an MCP server given the server name and resource URI.; args=[server, uri]; hash=24246896b39008ae diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_selected_plugin_wording_apps_true_simplified_false.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_selected_plugin_wording_apps_true_simplified_false.snap index 160a9d22..0ad4c002 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_selected_plugin_wording_apps_true_simplified_false.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_selected_plugin_wording_apps_true_simplified_false.snap @@ -17,7 +17,7 @@ Settings: tool_choice: "auto" tools (12; hash=2a0c7daad939067d): - function/exec_command: Runs a command in a PTY, returning output or a session ID for ongoing interaction.; args=[cmd, justification, login, max_output_tokens, prefix_rule, sandbox_permissions, shell, tty, workdir, yield_time_ms]; hash=c04108e51a8548c5 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - function/list_mcp_resources: Lists resources provided by MCP servers. Resources allow servers to share data that provides cont...; args=[cursor, server]; hash=6792edaff13561bd - function/list_mcp_resource_templates: Lists resource templates provided by MCP servers. Parameterized resource templates allow servers ...; args=[cursor, server]; hash=60f17c90ef7a4ebb - function/read_mcp_resource: Read a specific resource from an MCP server given the server name and resource URI.; args=[server, uri]; hash=24246896b39008ae diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_selected_plugin_wording_apps_true_simplified_true.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_selected_plugin_wording_apps_true_simplified_true.snap index 41c3515d..8486317f 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_selected_plugin_wording_apps_true_simplified_true.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__catalog_selected_plugin_wording_apps_true_simplified_true.snap @@ -17,7 +17,7 @@ Settings: tool_choice: "auto" tools (12; hash=2a0c7daad939067d): - function/exec_command: Runs a command in a PTY, returning output or a session ID for ongoing interaction.; args=[cmd, justification, login, max_output_tokens, prefix_rule, sandbox_permissions, shell, tty, workdir, yield_time_ms]; hash=c04108e51a8548c5 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - function/list_mcp_resources: Lists resources provided by MCP servers. Resources allow servers to share data that provides cont...; args=[cursor, server]; hash=6792edaff13561bd - function/list_mcp_resource_templates: Lists resource templates provided by MCP servers. Parameterized resource templates allow servers ...; args=[cursor, server]; hash=60f17c90ef7a4ebb - function/read_mcp_resource: Read a specific resource from an MCP server given the server name and resource URI.; args=[server, uri]; hash=24246896b39008ae diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__context_management_tools__catalog_context_tool_definitions_follow_captured_models.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__context_management_tools__catalog_context_tool_definitions_follow_captured_models.snap index d867846a..4094ca3b 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__context_management_tools__catalog_context_tool_definitions_follow_captured_models.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__context_management_tools__catalog_context_tool_definitions_follow_captured_models.snap @@ -24,7 +24,7 @@ Settings: - tool_search: # Tool discovery Searches over deferred tool metadata with BM25 and exposes matching tools for t...; args=[limit, query]; hash=b573ed69c0b0e6c7 - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=1908de9c0be7118a - web_search; hash=f103e327c6870a46 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 -- request 1 (turn) -- 00:message/developer: diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__dynamic_tools__dynamic_tools_update_preserves_pending_calls_and_survives_resume.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__dynamic_tools__dynamic_tools_update_preserves_pending_calls_and_survives_resume.snap index 3380b95e..da23b2a1 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__dynamic_tools__dynamic_tools_update_preserves_pending_calls_and_survives_resume.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__dynamic_tools__dynamic_tools_update_preserves_pending_calls_and_survives_resume.snap @@ -23,7 +23,7 @@ Settings: - function/request_user_input_async: Ask the user one or more questions during ongoing work. Use this tool only to request missing inf...; args=[questions]; hash=d6d74f33db330162 - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=1908de9c0be7118a - web_search; hash=f103e327c6870a46 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - namespace/clock: Tools for reading and waiting on time.; hash=a80435c7a3a3943f - function/curr_time - function/sleep diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__guardian_checkpoint_migration.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__guardian_checkpoint_migration.snap index 72f7a28f..e03cd6eb 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__guardian_checkpoint_migration.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__guardian_checkpoint_migration.snap @@ -22,7 +22,7 @@ Settings: - tool_search: # Tool discovery Searches over deferred tool metadata with BM25 and exposes matching tools for t...; args=[limit, query]; hash=b573ed69c0b0e6c7 - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=1908de9c0be7118a - web_search; hash=f103e327c6870a46 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 -- request 1 (turn) -- 00:message/developer: diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__guardian_extra_policy__extra_policy_reaches_guardian_review.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__guardian_extra_policy__extra_policy_reaches_guardian_review.snap index fdd284c5..947027b3 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__guardian_extra_policy__extra_policy_reaches_guardian_review.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__guardian_extra_policy__extra_policy_reaches_guardian_review.snap @@ -22,7 +22,7 @@ Settings: - tool_search: # Tool discovery Searches over deferred tool metadata with BM25 and exposes matching tools for t...; args=[limit, query]; hash=b573ed69c0b0e6c7 - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=1908de9c0be7118a - web_search; hash=f103e327c6870a46 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 -- request 1 (turn) -- 00:message/developer: You are Codex, a coding agent based on GPT-5. You and the user share one workspace, and your job is to c...rate with them until their goal is genuinely handled. [hash=2a3efec66e7f8963] diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__guardian_sender_context__cross_host_sender_context.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__guardian_sender_context__cross_host_sender_context.snap index 7f988b15..e0516a0c 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__guardian_sender_context__cross_host_sender_context.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__guardian_sender_context__cross_host_sender_context.snap @@ -17,7 +17,7 @@ Settings: tool_choice: "auto" tools (7; hash=4bc85f667bb09668): - function/exec_command: Runs a command in a PTY, returning output or a session ID for ongoing interaction.; args=[cmd, justification, login, max_output_tokens, prefix_rule, sandbox_permissions, shell, tty, workdir, yield_time_ms]; hash=c04108e51a8548c5 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - function/request_user_input: Request user input for one to three short questions and wait for the response. This tool is only ...; args=[questions]; hash=64a729b25c424fc6 - custom/apply_patch: The `apply_patch` tool can be used to edit files. This is a FREEFORM tool, so do not wrap the pat...; hash=dea9f12b0111a4ba - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=1908de9c0be7118a diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__incremental_tools__incremental_tools_responses_api.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__incremental_tools__incremental_tools_responses_api.snap index 31fd1540..77985145 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__incremental_tools__incremental_tools_responses_api.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__incremental_tools__incremental_tools_responses_api.snap @@ -19,7 +19,7 @@ Settings: - custom/exec: Run JavaScript code to orchestrate/compose tool calls - Evaluates the provided JavaScript code in...; hash=9226aa5c0caf3b05 - function/wait: Waits on a yielded `exec` cell and returns new output or completion. - Use `wait` only after `exe...; args=[cell_id, max_tokens, terminate, yield_time_ms]; hash=6692d8f6c55be489 - function/exec_command: Runs a command in a PTY, returning output or a session ID for ongoing interaction. exec tool dec...; args=[cmd, justification, login, max_output_tokens, prefix_rule, sandbox_permissions, shell, tty, workdir, yield_time_ms]; hash=759843fc2a7d41a0 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output. exec tool decla...; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=e6405481b30a43c1 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files. exec tool decla...; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=e6405481b30a43c1 - function/request_user_input: Request user input for one to three short questions and wait for the response. This tool is only ...; args=[questions]; hash=64a729b25c424fc6 - custom/apply_patch: The `apply_patch` tool can be used to edit files. This is a FREEFORM tool, so do not wrap the pat...; hash=11c5b5ed4fb972e8 - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=0e7abbd0a5b17fb9 diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__mcp_sharing__shared_mcp_keeps_tools_and_model_requested_input_per_chat.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__mcp_sharing__shared_mcp_keeps_tools_and_model_requested_input_per_chat.snap index 9785fd70..50f7594c 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__mcp_sharing__shared_mcp_keeps_tools_and_model_requested_input_per_chat.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__mcp_sharing__shared_mcp_keeps_tools_and_model_requested_input_per_chat.snap @@ -17,7 +17,7 @@ Settings: tool_choice: "auto" tools (11; hash=a079637661e48f3a): - function/exec_command: Runs a command in a PTY, returning output or a session ID for ongoing interaction.; args=[cmd, justification, login, max_output_tokens, prefix_rule, sandbox_permissions, shell, tty, workdir, yield_time_ms]; hash=c04108e51a8548c5 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - function/list_mcp_resources: Lists resources provided by MCP servers. Resources allow servers to share data that provides cont...; args=[cursor, server]; hash=6792edaff13561bd - function/list_mcp_resource_templates: Lists resource templates provided by MCP servers. Parameterized resource templates allow servers ...; args=[cursor, server]; hash=60f17c90ef7a4ebb - function/read_mcp_resource: Read a specific resource from an MCP server given the server name and resource URI.; args=[server, uri]; hash=24246896b39008ae diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__mcp_tool_discovery_Direct.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__mcp_tool_discovery_Direct.snap index 4d11431a..02d9d070 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__mcp_tool_discovery_Direct.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__mcp_tool_discovery_Direct.snap @@ -17,7 +17,7 @@ Settings: tool_choice: "auto" tools (11; hash=2b93aeb57ddb3eb5): - function/exec_command: Runs a command in a PTY, returning output or a session ID for ongoing interaction.; args=[cmd, justification, login, max_output_tokens, prefix_rule, sandbox_permissions, shell, tty, workdir, yield_time_ms]; hash=c04108e51a8548c5 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - function/list_mcp_resources: Lists resources provided by MCP servers. Resources allow servers to share data that provides cont...; args=[cursor, server]; hash=6792edaff13561bd - function/list_mcp_resource_templates: Lists resource templates provided by MCP servers. Parameterized resource templates allow servers ...; args=[cursor, server]; hash=60f17c90ef7a4ebb - function/read_mcp_resource: Read a specific resource from an MCP server given the server name and resource URI.; args=[server, uri]; hash=24246896b39008ae diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__model_catalog_refresh_preserves_tools_and_history.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__model_catalog_refresh_preserves_tools_and_history.snap index 128d3c6d..a14741ce 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__model_catalog_refresh_preserves_tools_and_history.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__model_catalog_refresh_preserves_tools_and_history.snap @@ -19,7 +19,7 @@ Settings: - function/request_user_input: Request user input for one to three short questions and wait for the response. This tool is only ...; args=[questions]; hash=64a729b25c424fc6 - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=1908de9c0be7118a - web_search; hash=8586237e354ee5ed - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - namespace/multi_agent_v1: Tools for spawning and managing sub-agents.; hash=94c598b3c6ca141b - function/close_agent - function/resume_agent diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__model_instructions__originator_catalog_instructions_and_tools.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__model_instructions__originator_catalog_instructions_and_tools.snap index 3773d19b..1751169a 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__model_instructions__originator_catalog_instructions_and_tools.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__model_instructions__originator_catalog_instructions_and_tools.snap @@ -19,7 +19,7 @@ Settings: - function/request_user_input: Request user input for one to three short questions and wait for the response. This tool is only ...; args=[questions]; hash=64a729b25c424fc6 - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=1908de9c0be7118a - web_search; hash=8586237e354ee5ed - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - namespace/multi_agent_v1: Tools for spawning and managing sub-agents.; hash=6ac4ec60e68e50c0 - function/close_agent - function/resume_agent diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__provider_capabilities__custom_provider_capabilities.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__provider_capabilities__custom_provider_capabilities.snap index 4388ca6d..a14149c0 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__provider_capabilities__custom_provider_capabilities.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__provider_capabilities__custom_provider_capabilities.snap @@ -17,7 +17,7 @@ Settings: tool_choice: "auto" tools (6; hash=9a4caaeb38e57991): - function/exec_command: Runs a command in a PTY, returning output or a session ID for ongoing interaction.; args=[cmd, justification, login, max_output_tokens, prefix_rule, sandbox_permissions, shell, tty, workdir, yield_time_ms]; hash=c04108e51a8548c5 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - function/request_user_input: Request user input for one to three short questions and wait for the response. This tool is only ...; args=[questions]; hash=64a729b25c424fc6 - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=1908de9c0be7118a - namespace/collaboration: Tools for spawning and managing sub-agents.; hash=3cbf715dc154e1b7 diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__skill_catalog_dedup__repository_skill_turn_grant.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__skill_catalog_dedup__repository_skill_turn_grant.snap index a50c215e..8ea89a22 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__skill_catalog_dedup__repository_skill_turn_grant.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__skill_catalog_dedup__repository_skill_turn_grant.snap @@ -23,7 +23,7 @@ Settings: - tool_search: # Tool discovery Searches over deferred tool metadata with BM25 and exposes matching tools for t...; args=[limit, query]; hash=b573ed69c0b0e6c7 - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=1908de9c0be7118a - web_search; hash=f103e327c6870a46 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 -- request 1 (request) -- 00:message/developer: You are Codex, a coding agent based on GPT-5. You and the user share one workspace, and your job is to c...rate with them until their goal is genuinely handled. [hash=2a3efec66e7f8963] diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__subagent_browser_auth.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__subagent_browser_auth.snap index 5474b9c8..c3eabb73 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__subagent_browser_auth.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__subagent_browser_auth.snap @@ -25,7 +25,7 @@ Settings: - tool_search: # Tool discovery Searches over deferred tool metadata with BM25 and exposes matching tools for t...; args=[limit, query]; hash=b573ed69c0b0e6c7 - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=1908de9c0be7118a - web_search; hash=f103e327c6870a46 - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 -- request 1 (turn) -- 00:message/developer: diff --git a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__web_search__literature_search_and_open.snap b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__web_search__literature_search_and_open.snap index 219ffedb..d3d69571 100644 --- a/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__web_search__literature_search_and_open.snap +++ b/akode-rs/core/tests/suite/snapshots/all__suite__scenarios__web_search__literature_search_and_open.snap @@ -21,7 +21,7 @@ Settings: - function/request_user_input: Request user input for one to three short questions and wait for the response. This tool is only ...; args=[questions]; hash=64a729b25c424fc6 - tool_search: # Tool discovery Searches over deferred tool metadata with BM25 and exposes matching tools for t...; args=[limit, query]; hash=b573ed69c0b0e6c7 - function/view_image: View a local image file from the filesystem when visual inspection is needed. Use this for images...; args=[path]; hash=1908de9c0be7118a - - function/write_stdin: Writes characters to an existing unified exec session and returns recent output.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 + - function/write_stdin: Writes characters to a process that an earlier exec_command left running and returns recent output. It cannot start commands or write files: use exec_command to run a command and write_file or apply_patch to create files.; args=[chars, max_output_tokens, session_id, yield_time_ms]; hash=7fb62d8a3e2df4e2 - namespace/web: Tools in the web namespace.; hash=dd6e98ab1f4ddce6 - function/run -- request 1 (turn) -- diff --git a/akode-rs/core/tests/suite/subagent_notifications.rs b/akode-rs/core/tests/suite/subagent_notifications.rs index 489f2fd8..09830aa9 100644 --- a/akode-rs/core/tests/suite/subagent_notifications.rs +++ b/akode-rs/core/tests/suite/subagent_notifications.rs @@ -3630,7 +3630,7 @@ async fn failed_spawn_edge_leaves_no_child_history(fork_context: bool) -> Result tool_output .function_call_output_text(SPAWN_CALL_ID) .as_deref(), - Some("collab spawn failed: Fatal error: failed to persist spawned agent relationship") + Some("collab spawn failed: Errore fatale: failed to persist spawned agent relationship") ); assert!( child_requests.requests().is_empty(), diff --git a/akode-rs/linux-sandbox/src/bwrap_tests.rs b/akode-rs/linux-sandbox/src/bwrap_tests.rs index 3df789d9..f2caea26 100644 --- a/akode-rs/linux-sandbox/src/bwrap_tests.rs +++ b/akode-rs/linux-sandbox/src/bwrap_tests.rs @@ -1583,7 +1583,7 @@ fn root_prefix_unreadable_globs_fail_closed_on_linux() { assert_eq!( error.to_string(), - "Fatal error: unreadable glob `/**/*.env` cannot be safely expanded; use a pattern with a non-root directory prefix" + "Errore fatale: unreadable glob `/**/*.env` cannot be safely expanded; use a pattern with a non-root directory prefix" ); } diff --git a/akode-rs/otel/src/events/session_telemetry.rs b/akode-rs/otel/src/events/session_telemetry.rs index e4e329bf..cb37024d 100644 --- a/akode-rs/otel/src/events/session_telemetry.rs +++ b/akode-rs/otel/src/events/session_telemetry.rs @@ -1394,6 +1394,7 @@ impl SessionTelemetry { ResponseEvent::Completed { .. } => "completed".into(), ResponseEvent::OutputTextDelta(_) => "text_delta".into(), ResponseEvent::ToolCallInputDelta { .. } => "tool_input_delta".into(), + ResponseEvent::ServerProgress { .. } => "server_progress".into(), ResponseEvent::ReasoningSummaryDelta { .. } => "reasoning_summary_delta".into(), ResponseEvent::ReasoningSummaryDone { .. } => "reasoning_summary_done".into(), ResponseEvent::ReasoningContentDelta { .. } => "reasoning_content_delta".into(), diff --git a/akode-rs/protocol/src/error.rs b/akode-rs/protocol/src/error.rs index 8f1fbdc7..0d9c967c 100644 --- a/akode-rs/protocol/src/error.rs +++ b/akode-rs/protocol/src/error.rs @@ -225,7 +225,7 @@ pub enum CodexErrorDetails { /// Gateway credentials require user action before requests can resume. #[error("{0}")] GatewayLoginRequired(String), - #[error("Fatal error: {0}")] + #[error("Errore fatale: {0}")] Fatal(String), // ----------------------------------------------------------------- // Automatic conversions for common external error types diff --git a/akode-rs/protocol/src/protocol.rs b/akode-rs/protocol/src/protocol.rs index 48c76ee1..3a625994 100644 --- a/akode-rs/protocol/src/protocol.rs +++ b/akode-rs/protocol/src/protocol.rs @@ -1701,6 +1701,12 @@ pub enum EventMsg { /// Latest model-generated structured changes for an `apply_patch` call. PatchApplyUpdated(PatchApplyUpdatedEvent), + /// aKode: the model is still generating the arguments of a tool call. + ToolCallInputProgress(ToolCallInputProgressEvent), + + /// aKode: a local server is queueing the request or reading the prompt. + ServerProgress(ServerProgressEvent), + /// Notification that a patch application has finished. PatchApplyEnd(PatchApplyEndEvent), @@ -4084,6 +4090,35 @@ pub struct PatchApplyUpdatedEvent { pub changes: HashMap, } +/// aKode: progress of a tool call whose arguments are still streaming from the +/// model (e.g. a whole file inside `apply_patch`), so clients can show that the +/// model is writing instead of looking stuck. +#[derive(Debug, Clone, Deserialize, Serialize, JsonSchema, TS)] +pub struct ToolCallInputProgressEvent { + /// Identifier of the tool call being generated. + pub call_id: String, + /// Name of the tool. + pub tool_name: String, + /// File or target recognized in the partial arguments, if any. + pub target: Option, + /// Approximate number of argument tokens generated so far. + pub tokens: u64, +} + +/// aKode: progress reported by a local server before generation starts (imeAI +/// gateway): waiting in the queue or reading the prompt. +#[derive(Debug, Clone, Deserialize, Serialize, JsonSchema, TS)] +pub struct ServerProgressEvent { + /// `queue` or `prefill`. + pub kind: String, + /// Prompt read so far, 0-100 (prefill). + pub percent: Option, + /// Estimated seconds left. + pub eta_s: Option, + /// Requests ahead in the queue. + pub ahead: Option, +} + #[derive(Debug, Clone, Deserialize, Serialize, JsonSchema, TS)] pub struct PatchApplyEndEvent { /// Identifier for the PatchApplyBegin that finished. diff --git a/akode-rs/rollout-trace/src/protocol_event.rs b/akode-rs/rollout-trace/src/protocol_event.rs index 8f9da539..8a06dbf7 100644 --- a/akode-rs/rollout-trace/src/protocol_event.rs +++ b/akode-rs/rollout-trace/src/protocol_event.rs @@ -420,6 +420,8 @@ pub(crate) fn tool_runtime_trace_event(event: &EventMsg) -> Option Option<&'static s | EventMsg::StreamError(_) | EventMsg::PatchApplyBegin(_) | EventMsg::PatchApplyUpdated(_) + | EventMsg::ToolCallInputProgress(_) + | EventMsg::ServerProgress(_) | EventMsg::PatchApplyEnd(_) | EventMsg::TurnDiff(_) | EventMsg::RealtimeConversationListVoicesResponse(_) diff --git a/akode-rs/rollout/src/policy.rs b/akode-rs/rollout/src/policy.rs index 7aaa88b4..b997f046 100644 --- a/akode-rs/rollout/src/policy.rs +++ b/akode-rs/rollout/src/policy.rs @@ -202,6 +202,8 @@ fn persisted_event_msg( | EventMsg::StreamError(_) | EventMsg::PatchApplyBegin(_) | EventMsg::PatchApplyUpdated(_) + | EventMsg::ToolCallInputProgress(_) + | EventMsg::ServerProgress(_) | EventMsg::TurnDiff(_) | EventMsg::RealtimeConversationListVoicesResponse(_) | EventMsg::McpStartupUpdate(_) diff --git a/akode-rs/thread-manager-sample/src/main.rs b/akode-rs/thread-manager-sample/src/main.rs index 785a8164..a181e90a 100644 --- a/akode-rs/thread-manager-sample/src/main.rs +++ b/akode-rs/thread-manager-sample/src/main.rs @@ -467,6 +467,8 @@ async fn run_turn(thread: &CodexThread, thread_id: &str, prompt: String) -> anyh | EventMsg::ItemCompleted(_) | EventMsg::PatchApplyBegin(_) | EventMsg::PatchApplyUpdated(_) + | EventMsg::ToolCallInputProgress(_) + | EventMsg::ServerProgress(_) | EventMsg::TerminalInteraction(_) | EventMsg::ExecCommandBegin(_) | EventMsg::ExecCommandOutputDelta(_) diff --git a/akode-rs/tools/src/function_call_error.rs b/akode-rs/tools/src/function_call_error.rs index 1ab8335b..8a6c2f5c 100644 --- a/akode-rs/tools/src/function_call_error.rs +++ b/akode-rs/tools/src/function_call_error.rs @@ -5,6 +5,6 @@ use thiserror::Error; pub enum FunctionCallError { #[error("{0}")] RespondToModel(String), - #[error("Fatal error: {0}")] + #[error("Errore fatale: {0}")] Fatal(String), } diff --git a/akode-rs/tui/src/app/app_server_event_targets.rs b/akode-rs/tui/src/app/app_server_event_targets.rs index 543f3e98..f0483e30 100644 --- a/akode-rs/tui/src/app/app_server_event_targets.rs +++ b/akode-rs/tui/src/app/app_server_event_targets.rs @@ -121,6 +121,10 @@ pub(super) fn server_notification_thread_target( ServerNotification::FileChangePatchUpdated(notification) => { Some(notification.thread_id.as_str()) } + ServerNotification::ToolCallInputProgress(notification) => { + Some(notification.thread_id.as_str()) + } + ServerNotification::ServerProgress(notification) => Some(notification.thread_id.as_str()), ServerNotification::ServerRequestResolved(notification) => { Some(notification.thread_id.as_str()) } diff --git a/akode-rs/tui/src/app/experimental_features_tests.rs b/akode-rs/tui/src/app/experimental_features_tests.rs index e12ca3fa..de27a989 100644 --- a/akode-rs/tui/src/app/experimental_features_tests.rs +++ b/akode-rs/tui/src/app/experimental_features_tests.rs @@ -10,7 +10,7 @@ async fn experimental_features_use_selected_server_profile_and_preserve_task_set let selected = AbsolutePathBuf::from_absolute_path(home.path().join("work.config.toml"))?; let managed = home.path().join("managed.toml"); std::fs::write(home.path().join("config.toml"), "# unselected\n")?; - std::fs::write(&selected, "[features]\nnetwork_proxy = true\n")?; + std::fs::write(&selected, "[features]\nprevent_idle_sleep = true\n")?; // The provider lives in the managed layer so both user files stay as written. std::fs::write( &managed, @@ -50,7 +50,7 @@ async fn experimental_features_use_selected_server_profile_and_preserve_task_set let (mut app, mut events, _ops) = make_test_app_with_channels().await; let before = (app.config.clone(), app.chat_widget.config_ref().clone()); let updates = vec![ - ("network_proxy".to_string(), false), + ("prevent_idle_sleep".to_string(), false), ("multi_agent".to_string(), false), ]; let (response_tx, response_rx) = oneshot::channel(); diff --git a/akode-rs/tui/src/app/snapshots/akode_tui__app__composer_hints__tests__composer_usage_notice.snap b/akode-rs/tui/src/app/snapshots/akode_tui__app__composer_hints__tests__composer_usage_notice.snap index 243d14e4..86c0f7d8 100644 --- a/akode-rs/tui/src/app/snapshots/akode_tui__app__composer_hints__tests__composer_usage_notice.snap +++ b/akode-rs/tui/src/app/snapshots/akode_tui__app__composer_hints__tests__composer_usage_notice.snap @@ -1,5 +1,6 @@ --- source: tui/src/app/composer_hints_tests.rs +assertion_line: 121 expression: "crate::chatwidget::tests::helpers::normalize_snapshot_paths(snapshots.join(\"\\n\\n\"))" --- 80 columns, 10 rows, running=false, queued=false @@ -9,10 +10,10 @@ Conversation breakdown. ⚠ 5h limit: 8% left · /status -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s - ? for shortcuts ⚠ 1 warning · f2 to view + ? per le scorciatoie ⚠ 1 warning · f2 to view 80 columns, 12 rows, running=true, queued=false diff --git a/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__empty_state_animation_tests__fresh_thread_header.snap b/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__empty_state_animation_tests__fresh_thread_header.snap index 66b262d8..3959b451 100644 --- a/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__empty_state_animation_tests__fresh_thread_header.snap +++ b/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__empty_state_animation_tests__fresh_thread_header.snap @@ -1,5 +1,6 @@ --- source: tui/src/app/empty_state_animation_tests.rs +assertion_line: 194 expression: "format!(\"enabled:\\n{}\\n---\\ndisabled:\\n{}\", text(after), text(&before))" --- enabled: @@ -43,10 +44,10 @@ enabled: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s - ? for shortcuts ⚠ 1 warning · f2 to view + ? per le scorciatoie ⚠ 1 warning · f2 to view --- disabled: @@ -89,7 +90,7 @@ disabled: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s - ? for shortcuts ⚠ 1 warning · f2 to view + ? per le scorciatoie ⚠ 1 warning · f2 to view diff --git a/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__input_tests__raw_paste_burst_render.snap b/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__input_tests__raw_paste_burst_render.snap index b591ae6a..b50a9778 100644 --- a/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__input_tests__raw_paste_burst_render.snap +++ b/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__input_tests__raw_paste_burst_render.snap @@ -1,5 +1,6 @@ --- source: tui/src/app/owned_transcript_input_tests.rs +assertion_line: 815 expression: "format!(\"During paste:\\n{during_paste}\\n\\nAfter flush:\\n{}\", screen(&tui))" --- During paste: @@ -23,10 +24,10 @@ Before paste -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie After flush: After paste diff --git a/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__tests__prompt_navigation.snap b/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__tests__prompt_navigation.snap index 4bad1011..edcde2cd 100644 --- a/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__tests__prompt_navigation.snap +++ b/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__tests__prompt_navigation.snap @@ -14,7 +14,7 @@ expression: "normalize_snapshot_paths(buffer_text(crate::custom_terminal::test_s -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s Browsing · ↑↓/jk scroll · ←→/hl prompts · ⌃t details · ↵ rewind · esc back diff --git a/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__tests__recap_tail_spacing.snap b/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__tests__recap_tail_spacing.snap index 835b7e76..c2d18764 100644 --- a/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__tests__recap_tail_spacing.snap +++ b/akode-rs/tui/src/app/snapshots/akode_tui__app__owned_transcript__tests__recap_tail_spacing.snap @@ -1,5 +1,6 @@ --- source: tui/src/app/owned_transcript_tests.rs +assertion_line: 319 expression: "normalize_snapshot_paths(snapshots.join(\"\\n\\n\"))" --- 80x10, Recap at tail @@ -9,10 +10,10 @@ History 20 -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 80x10, Message after recap @@ -21,10 +22,10 @@ History 20 • Follow-up response. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 80x10, Live message after recap @@ -33,10 +34,10 @@ History 20 • Streaming response. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 80x12, Recap at tail History 19 @@ -47,10 +48,10 @@ History 20 -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 80x12, Message after recap History 20 @@ -61,10 +62,10 @@ History 20 • Follow-up response. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 80x12, Live message after recap History 20 @@ -75,10 +76,10 @@ History 20 • Streaming response. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 32x12, Recap at tail History 20 @@ -89,10 +90,10 @@ History 20 -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cos ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 32x12, Message after recap @@ -103,10 +104,10 @@ History 20 • Follow-up response. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cos ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 32x12, Live message after recap @@ -117,58 +118,58 @@ History 20 • Streaming response. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cos ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 80x7, Recap at tail Next: Review the changes. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 80x7, Message after recap • Follow-up response. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 80x7, Live message after recap • Streaming response. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 32x6, Recap at tail -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cos ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 32x6, Message after recap -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cos ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 32x6, Live message after recap -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cos ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie diff --git a/akode-rs/tui/src/app/snapshots/akode_tui__app__tests__allocated_stream_table.snap b/akode-rs/tui/src/app/snapshots/akode_tui__app__tests__allocated_stream_table.snap index 289e744f..5644ad79 100644 --- a/akode-rs/tui/src/app/snapshots/akode_tui__app__tests__allocated_stream_table.snap +++ b/akode-rs/tui/src/app/snapshots/akode_tui__app__tests__allocated_stream_table.snap @@ -1,5 +1,6 @@ --- source: tui/src/app/tests.rs +assertion_line: 9031 expression: normalize_snapshot_paths(frame.as_str()) --- history-33 @@ -22,7 +23,7 @@ history-39 five six seven white orange -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie diff --git a/akode-rs/tui/src/app/snapshots/akode_tui__app__tests__owned_prompt_revert_retained_history.snap b/akode-rs/tui/src/app/snapshots/akode_tui__app__tests__owned_prompt_revert_retained_history.snap index beb87420..e3b37a1b 100644 --- a/akode-rs/tui/src/app/snapshots/akode_tui__app__tests__owned_prompt_revert_retained_history.snap +++ b/akode-rs/tui/src/app/snapshots/akode_tui__app__tests__owned_prompt_revert_retained_history.snap @@ -1,12 +1,13 @@ --- source: tui/src/app/tests.rs +assertion_line: 11205 expression: transcript --- - /init - create an AGENTS.md file with instructions for aKode - /status - show current session configuration - /permissions - choose what aKode is allowed to do - /model - choose what model and reasoning effort to use - /review - review any changes and find issues + /init - crea un file AGENTS.md con le istruzioni per aKode + /status - mostra la configurazione della sessione + /permissions - scegli cosa può fare aKode + /model - scegli il modello e lo sforzo di ragionamento + /review - rivedi le modifiche e trova i problemi › retained prompt diff --git a/akode-rs/tui/src/app/snapshots/akode_tui__app__thread_title__tests__automatic_thread_title_pending.snap b/akode-rs/tui/src/app/snapshots/akode_tui__app__thread_title__tests__automatic_thread_title_pending.snap index 889eaf70..92094ee3 100644 --- a/akode-rs/tui/src/app/snapshots/akode_tui__app__thread_title__tests__automatic_thread_title_pending.snap +++ b/akode-rs/tui/src/app/snapshots/akode_tui__app__thread_title__tests__automatic_thread_title_pending.snap @@ -1,10 +1,10 @@ --- source: tui/src/app/thread_title_tests.rs -assertion_line: 302 +assertion_line: 349 expression: "normalize_snapshot_paths(format!(\"terminal title: {}\\nfooter:\\n{}\",\napp.chat_widget.last_terminal_title.as_deref().unwrap_or_default(),\nrender_bottom_popup(&app.chat_widget, 120)))" --- terminal title: project footer: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - gpt-5.2 default · /tmp/project · ← for agents + gpt-5.2 default · /tmp/project · ← per gli agenti diff --git a/akode-rs/tui/src/app/snapshots/akode_tui__app__thread_title__tests__manual_rename_cancels_thread_title.snap b/akode-rs/tui/src/app/snapshots/akode_tui__app__thread_title__tests__manual_rename_cancels_thread_title.snap index fed420f1..30355c5f 100644 --- a/akode-rs/tui/src/app/snapshots/akode_tui__app__thread_title__tests__manual_rename_cancels_thread_title.snap +++ b/akode-rs/tui/src/app/snapshots/akode_tui__app__thread_title__tests__manual_rename_cancels_thread_title.snap @@ -1,8 +1,8 @@ --- source: tui/src/app/thread_title_tests.rs -assertion_line: 363 +assertion_line: 452 expression: normalize_snapshot_paths(popup) --- -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - gpt-5.2 default · /tmp/project · Keep this title · ← for agents + gpt-5.2 default · /tmp/project · Keep this title · ← per gli agenti diff --git a/akode-rs/tui/src/app/snapshots/akode_tui__app__turn_tips__tests__turn_tip_placements.snap b/akode-rs/tui/src/app/snapshots/akode_tui__app__turn_tips__tests__turn_tip_placements.snap index b19b2784..f02f1739 100644 --- a/akode-rs/tui/src/app/snapshots/akode_tui__app__turn_tips__tests__turn_tip_placements.snap +++ b/akode-rs/tui/src/app/snapshots/akode_tui__app__turn_tips__tests__turn_tip_placements.snap @@ -1,5 +1,6 @@ --- source: tui/src/app/turn_tips_tests.rs +assertion_line: 393 expression: "crate::chatwidget::tests::helpers::normalize_snapshot_paths(screens.join(\"\\n\\n\"))" --- working=true, response rows=1, 80x12 @@ -11,18 +12,18 @@ Response row 0 └ Tip: Try /help. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie working=true, response rows=1, 80x6 • Working (0s • esc to interrupt) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie working=false, response rows=1, 80x12 › Show a response. @@ -33,10 +34,10 @@ working=false, response rows=1, 80x12 Worked for [duration] • [completion time] -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie working=false, response rows=1, 80x24 @@ -59,10 +60,10 @@ Response row 0 -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie Completion tip selected, 80x24 @@ -85,10 +86,10 @@ Response row 0 Copying 5 chars… -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie working=false, response rows=30, 80x12 › Show a response. @@ -99,10 +100,10 @@ working=false, response rows=30, 80x12 Worked for [duration] • [completion time] -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie working=false, response rows=1, 80x9 • Done. @@ -110,10 +111,10 @@ working=false, response rows=1, 80x9 Worked for [duration] • [completion time] -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie working=false, response rows=1, 80x10 › Show a response. @@ -122,10 +123,10 @@ working=false, response rows=1, 80x10 Worked for [duration] • [completion time] -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie working=false, response rows=1, 80x11 › Show a response. @@ -135,10 +136,10 @@ working=false, response rows=1, 80x11 Worked for [duration] • [completion time] -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie working=false, response rows=1, 12x12 @@ -149,13 +150,13 @@ working=false, response rows=1, 12x12 [completion time] -› Ask aKode +› Chiedi ad ctx 0% … - ? for shor + ? per le s working=false, response rows=1, 80x4 -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts + ? per le scorciatoie diff --git a/akode-rs/tui/src/app/snapshots/akode_tui__app__turn_tips__tests__working_tip_mouse_down.snap b/akode-rs/tui/src/app/snapshots/akode_tui__app__turn_tips__tests__working_tip_mouse_down.snap index c1d272da..91636c1a 100644 --- a/akode-rs/tui/src/app/snapshots/akode_tui__app__turn_tips__tests__working_tip_mouse_down.snap +++ b/akode-rs/tui/src/app/snapshots/akode_tui__app__turn_tips__tests__working_tip_mouse_down.snap @@ -1,5 +1,6 @@ --- source: tui/src/app/turn_tips_tests.rs +assertion_line: 486 expression: "crate::chatwidget::tests::helpers::normalize_working_snapshot(screen)" --- Response row 0 @@ -22,7 +23,7 @@ Response row 9 └ Tip: Try /help. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie diff --git a/akode-rs/tui/src/app/snapshots/akode_tui__app__turn_tips__tests__working_tip_selected.snap b/akode-rs/tui/src/app/snapshots/akode_tui__app__turn_tips__tests__working_tip_selected.snap index 0f40b875..f7007793 100644 --- a/akode-rs/tui/src/app/snapshots/akode_tui__app__turn_tips__tests__working_tip_selected.snap +++ b/akode-rs/tui/src/app/snapshots/akode_tui__app__turn_tips__tests__working_tip_selected.snap @@ -22,7 +22,7 @@ Response row 9 └ Tip: Try /help. Copying 5 chars… -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie diff --git a/akode-rs/tui/src/app/tests.rs b/akode-rs/tui/src/app/tests.rs index b39b6367..3486a37a 100644 --- a/akode-rs/tui/src/app/tests.rs +++ b/akode-rs/tui/src/app/tests.rs @@ -5415,7 +5415,7 @@ async fn open_agent_picker_prompts_when_subagents_disabled() -> Result<()> { Box::pin(app.open_agent_picker(&mut app_server)).await; assert_snapshot!(render_bottom_popup(&app.chat_widget, /*width*/ 80), @r###" Enable subagents? - › As Subagents are disabled in this TUI session. + › Ch Subagents are disabled in this TUI session. 12 /s › 1. Yes, enable Save on the server for new threads without changing diff --git a/akode-rs/tui/src/app/tests/.session_lifecycle_requests.rs.pending-snap b/akode-rs/tui/src/app/tests/.session_lifecycle_requests.rs.pending-snap index 9a27dbb7..88f333be 100644 --- a/akode-rs/tui/src/app/tests/.session_lifecycle_requests.rs.pending-snap +++ b/akode-rs/tui/src/app/tests/.session_lifecycle_requests.rs.pending-snap @@ -151,3 +151,41 @@ {"run_id":"1794698556-692652000","line":5483,"new":null,"old":null} {"run_id":"1794698556-692652000","line":5561,"new":null,"old":null} {"run_id":"1794698556-692652000","line":5900,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":406,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":427,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":446,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":468,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":4849,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":4945,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":4947,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":4988,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":4988,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":5283,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":4328,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":5060,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":5900,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":5946,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":3065,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":5483,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":5561,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":5946,"new":null,"old":null} +{"run_id":"1794865052-522483000","line":5900,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":406,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":427,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":446,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":468,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":4849,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":4945,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":4947,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":4988,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":4988,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":5283,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":4328,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":5060,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":5900,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":5946,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":3065,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":5946,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":5483,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":5561,"new":null,"old":null} +{"run_id":"1794866448-875628000","line":5900,"new":null,"old":null} diff --git a/akode-rs/tui/src/app/tests/agents_navigation_tests.rs b/akode-rs/tui/src/app/tests/agents_navigation_tests.rs index ceacda0c..dc6ba289 100644 --- a/akode-rs/tui/src/app/tests/agents_navigation_tests.rs +++ b/akode-rs/tui/src/app/tests/agents_navigation_tests.rs @@ -30,7 +30,7 @@ async fn agents_navigation_opens_the_command_center_on_every_target() -> Result< let composer = render_bottom_popup(&app.chat_widget, /*width*/ 96); let footer = composer.lines().last().expect("composer footer").trim(); insta::allow_duplicates! { - insta::assert_snapshot!(normalize_snapshot_paths(footer), @"127.0.0.1:9 · GPT-5.6-Sol · /tmp/project · ← for agents ctx 0% · -- t/s"); + insta::assert_snapshot!(normalize_snapshot_paths(footer), @"127.0.0.1:9 · GPT-5.6-Sol · /tmp/project · ← per gli agenti ctx 0% · -- t/s"); } app.handle_tui_event( &mut tui, @@ -109,7 +109,7 @@ async fn externally_archived_thread_keeps_advertised_agents_navigation() -> Resu .await?; } assert!(app.chat_widget.composer_is_empty()); - assert!(render_bottom_popup(&app.chat_widget, /*width*/ 96).contains("for agents")); + assert!(render_bottom_popup(&app.chat_widget, /*width*/ 96).contains("per gli agenti")); app.handle_tui_event( &mut tui, &mut app_server, diff --git a/akode-rs/tui/src/app/tests/fresh_sparkle_tests.rs b/akode-rs/tui/src/app/tests/fresh_sparkle_tests.rs index 967c00f8..4c41cc8c 100644 --- a/akode-rs/tui/src/app/tests/fresh_sparkle_tests.rs +++ b/akode-rs/tui/src/app/tests/fresh_sparkle_tests.rs @@ -562,7 +562,7 @@ async fn astra_picker_confirms_the_model_at_application_after_an_automatic_updat let lines = rendered.lines().collect::>(); let prompt = lines .iter() - .position(|line| line.contains("Ask aKode to do anything")) + .position(|line| line.contains("Chiedi ad aKode qualsiasi cosa")) .expect("empty composer shows its placeholder"); let composer = lines[prompt.saturating_sub(1)..=prompt + 1].join("\n"); snapshots.push(format!("{picker}:\n{composer}")); @@ -697,7 +697,7 @@ async fn session_only_astra_picker_shows_stars_only_on_an_untouched_task() -> Re let lines = rendered.lines().collect::>(); let prompt = lines .iter() - .position(|line| line.contains("Ask aKode to do anything")) + .position(|line| line.contains("Chiedi ad aKode qualsiasi cosa")) .expect("empty composer shows its placeholder"); let composer = lines[prompt.saturating_sub(1)..=prompt + 1].join("\n"); assert_eq!( diff --git a/akode-rs/tui/src/app/tests/key_chords.rs b/akode-rs/tui/src/app/tests/key_chords.rs index 8790ec42..aab16ddd 100644 --- a/akode-rs/tui/src/app/tests/key_chords.rs +++ b/akode-rs/tui/src/app/tests/key_chords.rs @@ -174,7 +174,7 @@ async fn global_chord_keeps_hints_and_completes_before_deadline() -> Result<()> render_bottom_popup(&app.chat_widget, /*width*/ 80) .replace(&test_path_display("/tmp/project"), "/tmp/project"), @" - › Ask aKode to do anything + › Chiedi ad aKode qualsiasi cosa ⌃x then · ⌃t open transcript · ⌃u interrupt turn · esc cancel " diff --git a/akode-rs/tui/src/app/tests/new_session_tests.rs b/akode-rs/tui/src/app/tests/new_session_tests.rs index 294a1394..0092f9a3 100644 --- a/akode-rs/tui/src/app/tests/new_session_tests.rs +++ b/akode-rs/tui/src/app/tests/new_session_tests.rs @@ -518,9 +518,9 @@ async fn replacement_uses_server_defaults_and_preserves_explicit_launch_settings let rendered = render_bottom_popup(&app.chat_widget, /*width*/ 140) .replace(&server_config.cwd.display().to_string(), ""); insta::assert_snapshot!(rendered, @r" - › Ask aKode to do anything + › Chiedi ad aKode qualsiasi cosa - server-model high · · ← for agents + server-model high · · ← per gli agenti "); } if explicit.starts_with("profile_summary") { diff --git a/akode-rs/tui/src/app/tests/projectless_tests.rs b/akode-rs/tui/src/app/tests/projectless_tests.rs index 0f8214dd..95953805 100644 --- a/akode-rs/tui/src/app/tests/projectless_tests.rs +++ b/akode-rs/tui/src/app/tests/projectless_tests.rs @@ -166,7 +166,7 @@ sandbox = "unelevated" let (next, _) = app.load_new_session_config(&server).await?; assert_eq!( next.permissions.permission_profile(), - &PermissionProfile::workspace_write() + &crate::legacy_core::config::akode_default_workspace_profile() ); let before = app.chat_widget.thread_id(); app.change_working_directory( @@ -354,7 +354,7 @@ async fn local_projectless_defaults_respect_trust_scope_and_explicit_settings() ), ( &if expected_profile == ":workspace" { - PermissionProfile::workspace_write() + crate::legacy_core::config::akode_default_workspace_profile() } else { PermissionProfile::read_only() }, diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__active_reconnect__reconnect_failed.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__active_reconnect__reconnect_failed.snap index a76e679a..9918c824 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__active_reconnect__reconnect_failed.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__active_reconnect__reconnect_failed.snap @@ -6,6 +6,6 @@ Automatic reconnect timed out while connecting to the server. • Reconnect failed — check the endpoint, then relaunch (0s) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa ⌃c quit diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__background_exit_tests__embedded_exit_running_sessions.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__background_exit_tests__embedded_exit_running_sessions.snap index 0c85ba79..707c0a41 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__background_exit_tests__embedded_exit_running_sessions.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__background_exit_tests__embedded_exit_running_sessions.snap @@ -1,9 +1,10 @@ --- source: tui/src/app/tests/background_exit_tests.rs +assertion_line: 62 expression: "render_bottom_popup(&app.chat_widget, 90)" --- Quit and stop running sessions? -› Ask aKo Quitting this TUI will stop its running sessions. +› Chiedi Quitting this TUI will stop its running sessions. 127.0.0 -- t/s › 1. Stay in aKode diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__background_task_defaults_tests__review_regression_agents_overview_creation_is_fresh_but_returning_is_not.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__background_task_defaults_tests__review_regression_agents_overview_creation_is_fresh_but_returning_is_not.snap index 685cf320..2302767e 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__background_task_defaults_tests__review_regression_agents_overview_creation_is_fresh_but_returning_is_not.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__background_task_defaults_tests__review_regression_agents_overview_creation_is_fresh_but_returning_is_not.snap @@ -1,10 +1,11 @@ --- source: tui/src/app/tests/background_task_defaults_tests.rs +assertion_line: 192 expression: "format!(\"created from the dashboard:\\n{}\\nreturned to the existing task:\\n{}\",\nbefore_footer(&created), before_footer(&returned))" --- created from the dashboard: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ returned to the existing task: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__buffered_replay__steers_after_returning_to_a_running_turn.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__buffered_replay__steers_after_returning_to_a_running_turn.snap index 5ccf422c..dc4fd90e 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__buffered_replay__steers_after_returning_to_a_running_turn.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__buffered_replay__steers_after_returning_to_a_running_turn.snap @@ -13,6 +13,6 @@ expression: "normalize_snapshot_paths(render_bottom_popup(&app.chat_widget, 80)) ↳ follow-up ⇧← edit last queued message -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__fresh_sparkle_tests__astra_picker_confirms_the_model_at_application_after_an_automatic_update.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__fresh_sparkle_tests__astra_picker_confirms_the_model_at_application_after_an_automatic_update.snap index 7c13ea64..67fbb60d 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__fresh_sparkle_tests__astra_picker_confirms_the_model_at_application_after_an_automatic_update.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__fresh_sparkle_tests__astra_picker_confirms_the_model_at_application_after_an_automatic_update.snap @@ -1,12 +1,13 @@ --- source: tui/src/app/tests/fresh_sparkle_tests.rs +assertion_line: 572 expression: "snapshots.join(\"\\n\\n\")" --- default no-op: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa default changes model: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__fresh_sparkle_tests__session_only_astra_picker_shows_stars_only_on_an_untouched_task.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__fresh_sparkle_tests__session_only_astra_picker_shows_stars_only_on_an_untouched_task.snap index 8e673d8b..69daadcf 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__fresh_sparkle_tests__session_only_astra_picker_shows_stars_only_on_an_untouched_task.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__fresh_sparkle_tests__session_only_astra_picker_shows_stars_only_on_an_untouched_task.snap @@ -1,11 +1,12 @@ --- source: tui/src/app/tests/fresh_sparkle_tests.rs +assertion_line: 734 expression: "snapshots.join(\"\\n\\n\")" --- untouched: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ typed then erased: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__marketplace_upgrade_tests__marketplace_upgrade_warning.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__marketplace_upgrade_tests__marketplace_upgrade_warning.snap index 29c16fb1..05b897cf 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__marketplace_upgrade_tests__marketplace_upgrade_warning.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__marketplace_upgrade_tests__marketplace_upgrade_warning.snap @@ -1,5 +1,6 @@ --- source: tui/src/app/tests/marketplace_upgrade_tests.rs +assertion_line: 103 expression: "normalize_snapshot_paths(format!(\"Warning notice:\\n{notice}\\n\\nFirst warning details:\\n{first_details}\\n\\nSecond warning details:\\n{second_details}\"))" --- Warning notice: @@ -15,10 +16,10 @@ Warning notice: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s - ? for shortcuts ⚠ 2 warnings · f2 to view + ? per le scorciatoie ⚠ 2 warnings · f2 to view First warning details: diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_buffered_replay_reconciles_captions.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_buffered_replay_reconciles_captions.snap index 28e9f8a5..1d9578cf 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_buffered_replay_reconciles_captions.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_buffered_replay_reconciles_captions.snap @@ -1,5 +1,6 @@ --- source: tui/src/app/tests/realtime_requests.rs +assertion_line: 901 expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)" --- @@ -8,13 +9,13 @@ expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)" ██▄▄██▄▄██ /tmp/project ██▀████▀██ - To get started, describe a task or try one of these commands: + Per iniziare descrivi un compito o prova uno di questi comandi: - /init - create an AGENTS.md file with instructions for aKode - /status - show current session configuration - /permissions - choose what aKode is allowed to do - /model - choose what model and reasoning effort to use - /review - review any changes and find issues + /init - crea un file AGENTS.md con le istruzioni per aKode + /status - mostra la configurazione della sessione + /permissions - scegli cosa può fare aKode + /model - scegli il modello e lo sforzo di ragionamento + /review - rivedi le modifiche e trova i problemi › buffered question diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_completed_after_thread_switch.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_completed_after_thread_switch.snap index ab6b9878..c7abd787 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_completed_after_thread_switch.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_completed_after_thread_switch.snap @@ -1,5 +1,6 @@ --- source: tui/src/app/tests/realtime_requests.rs +assertion_line: 1109 expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)" --- @@ -8,13 +9,13 @@ expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)" ██▄▄██▄▄██ /tmp/project ██▀████▀██ - To get started, describe a task or try one of these commands: + Per iniziare descrivi un compito o prova uno di questi comandi: - /init - create an AGENTS.md file with instructions for aKode - /status - show current session configuration - /permissions - choose what aKode is allowed to do - /model - choose what model and reasoning effort to use - /review - review any changes and find issues + /init - crea un file AGENTS.md con le istruzioni per aKode + /status - mostra la configurazione della sessione + /permissions - scegli cosa può fare aKode + /model - scegli il modello e lo sforzo di ragionamento + /review - rivedi le modifiche e trova i problemi • Earlier answer • spoken complete diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_partial_completed_after_thread_switch.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_partial_completed_after_thread_switch.snap index af9bfee0..347a8ed8 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_partial_completed_after_thread_switch.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_partial_completed_after_thread_switch.snap @@ -1,16 +1,17 @@ --- source: tui/src/app/tests/realtime_requests.rs +assertion_line: 485 expression: "normalize_voice_snapshot_directory(&format!(\"Other task:\\n{other_ui}\\nRestored owner:\\n{}\\n{rendered}\",\nrender_bottom_popup(&app.chat_widget, 80)), &app.config.cwd,)" --- Other task: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s Restored owner: voice ● listening f9 mute /voice stop mic ▁▁▁▁▁▁ codex ▁▁▁▁▁▁ -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s @@ -19,12 +20,12 @@ Restored owner: ██▄▄██▄▄██ /tmp/project ██▀████▀██ - To get started, describe a task or try one of these commands: + Per iniziare descrivi un compito o prova uno di questi comandi: - /init - create an AGENTS.md file with instructions for aKode - /status - show current session configuration - /permissions - choose what aKode is allowed to do - /model - choose what model and reasoning effort to use - /review - review any changes and find issues + /init - crea un file AGENTS.md con le istruzioni per aKode + /status - mostra la configurazione della sessione + /permissions - scegli cosa può fare aKode + /model - scegli il modello e lo sforzo di ragionamento + /review - rivedi le modifiche e trova i problemi › spoken partial completed diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_replay_reconciles_matching_captions.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_replay_reconciles_matching_captions.snap index bf67041a..c1f3f81b 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_replay_reconciles_matching_captions.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__realtime_requests__voice_replay_reconciles_matching_captions.snap @@ -1,5 +1,6 @@ --- source: tui/src/app/tests/realtime_requests.rs +assertion_line: 726 expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)" --- @@ -8,13 +9,13 @@ expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)" ██▄▄██▄▄██ /tmp/project ██▀████▀██ - To get started, describe a task or try one of these commands: + Per iniziare descrivi un compito o prova uno di questi comandi: - /init - create an AGENTS.md file with instructions for aKode - /status - show current session configuration - /permissions - choose what aKode is allowed to do - /model - choose what model and reasoning effort to use - /review - review any changes and find issues + /init - crea un file AGENTS.md con le istruzioni per aKode + /status - mostra la configurazione della sessione + /permissions - scegli cosa può fare aKode + /model - scegli il modello e lo sforzo di ragionamento + /review - rivedi le modifiche e trova i problemi › show & tests diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__session_lifecycle_requests__cloud_composer_receipts.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__session_lifecycle_requests__cloud_composer_receipts.snap index 56955e25..78ba5a5a 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__session_lifecycle_requests__cloud_composer_receipts.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__session_lifecycle_requests__cloud_composer_receipts.snap @@ -10,7 +10,7 @@ expression: "rendered_receipts.join(\"\\n\\n\")" • Working (0s • esc to interrupt) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s @@ -28,7 +28,7 @@ expression: "rendered_receipts.join(\"\\n\\n\")" ↳ follow up ⇧← edit last queued message -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s @@ -47,6 +47,6 @@ expression: "rendered_receipts.join(\"\\n\\n\")" ↳ follow up ⇧← edit last queued message -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__startup_frame_tests__startup_tip_in_transcript.snap b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__startup_frame_tests__startup_tip_in_transcript.snap index e198d28a..b8ce5ec9 100644 --- a/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__startup_frame_tests__startup_tip_in_transcript.snap +++ b/akode-rs/tui/src/app/tests/snapshots/akode_tui__app__tests__startup_frame_tests__startup_tip_in_transcript.snap @@ -1,5 +1,6 @@ --- source: tui/src/app/tests/startup_frame_tests.rs +assertion_line: 64 expression: "normalize_snapshot_paths(normalize_agent_center_snapshot(snapshots.join(\"\\n\\n\")))" --- 80 columns @@ -19,10 +20,10 @@ expression: "normalize_snapshot_paths(normalize_agent_center_snapshot(snapshots. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie 32 columns @@ -41,7 +42,7 @@ expression: "normalize_snapshot_paths(normalize_agent_center_snapshot(snapshots. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cos ctx 0% · -- t/s - ? for shortcuts + ? per le scorciatoie diff --git a/akode-rs/tui/src/app/tests/startup.rs b/akode-rs/tui/src/app/tests/startup.rs index b9ed4bd2..63943ca5 100644 --- a/akode-rs/tui/src/app/tests/startup.rs +++ b/akode-rs/tui/src/app/tests/startup.rs @@ -211,7 +211,7 @@ fn startup_bottom_pane() -> (BottomPane, UnboundedReceiver) { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: true, animations_enabled: true, effects: Default::default(), diff --git a/akode-rs/tui/src/app/tests/startup_defaults_tests.rs b/akode-rs/tui/src/app/tests/startup_defaults_tests.rs index b5e67232..6f2c3e8d 100644 --- a/akode-rs/tui/src/app/tests/startup_defaults_tests.rs +++ b/akode-rs/tui/src/app/tests/startup_defaults_tests.rs @@ -753,7 +753,7 @@ async fn fresh_startup_reads_destination_and_cleared_model_uses_catalog() -> Res let rendered = render_bottom_popup(&app.chat_widget, /*width*/ 160) .replace(&destination.path().display().to_string(), ""); insta::assert_snapshot!(rendered, @r" - › Ask aKode to do anything + › Chiedi ad aKode qualsiasi cosa GPT-6.1-Sol high · "); diff --git a/akode-rs/tui/src/app/thread_events.rs b/akode-rs/tui/src/app/thread_events.rs index c613c5ad..a2291769 100644 --- a/akode-rs/tui/src/app/thread_events.rs +++ b/akode-rs/tui/src/app/thread_events.rs @@ -328,6 +328,8 @@ impl ThreadEventStore { notification.as_ref(), ServerNotification::RawResponseItemCompleted(_) | ServerNotification::FileChangePatchUpdated(_) + | ServerNotification::ToolCallInputProgress(_) + | ServerNotification::ServerProgress(_) | ServerNotification::ServerRequestResolved(_) | ServerNotification::McpToolCallProgress(_) | ServerNotification::ThreadAttachmentUpdated(_) diff --git a/akode-rs/tui/src/app/thread_routing.rs b/akode-rs/tui/src/app/thread_routing.rs index 72845314..a0c3c619 100644 --- a/akode-rs/tui/src/app/thread_routing.rs +++ b/akode-rs/tui/src/app/thread_routing.rs @@ -1231,6 +1231,8 @@ impl App { | ServerNotification::ThreadSettingsUpdated(_) | ServerNotification::McpToolCallProgress(_) | ServerNotification::FileChangePatchUpdated(_) + | ServerNotification::ToolCallInputProgress(_) + | ServerNotification::ServerProgress(_) | ServerNotification::ServerRequestResolved(_) | ServerNotification::ThreadRealtimeOutputAudioDelta(_) | ServerNotification::ThreadRealtimeSdp(_) diff --git a/akode-rs/tui/src/bottom_pane/chat_composer.rs b/akode-rs/tui/src/bottom_pane/chat_composer.rs index 935a5723..74bffae5 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer.rs +++ b/akode-rs/tui/src/bottom_pane/chat_composer.rs @@ -5058,7 +5058,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ), rx, @@ -5105,11 +5105,12 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); - let area = Rect::new(0, 0, 40, 6); + // aKode: the Italian hint ("? per le scorciatoie") needs a little more width. + let area = Rect::new(0, 0, 48, 6); let mut buf = Buffer::empty(area); composer.render(area, &mut buf); @@ -5124,7 +5125,7 @@ mod tests { let mut hint_row: Option<(u16, String)> = None; for y in 0..area.height { let row = row_to_string(y); - if row.contains("? for shortcuts") { + if row.contains("? per le scorciatoie") { hint_row = Some((y, row)); break; } @@ -5159,7 +5160,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_footer_hint_override(Some(vec![("K".to_string(), "label".to_string())])); @@ -5197,7 +5198,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_footer_hint_override(Some(vec![("K".to_string(), "label".to_string())])); @@ -5246,7 +5247,7 @@ mod tests { /*has_input_focus*/ true, sender, enhanced_keys_supported, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); setup(&mut composer); @@ -5421,7 +5422,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); let area = Rect::new(0, 0, 40, 5); @@ -5443,7 +5444,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_status_line_enabled(/*enabled*/ true); @@ -5502,7 +5503,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_text_content_with_mention_bindings( @@ -5530,7 +5531,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_text_content_with_mention_bindings( @@ -5581,7 +5582,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_text_content_with_mention_bindings( @@ -5617,7 +5618,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); let url = "https://github.com/openai/codex/pull/20252"; @@ -5723,7 +5724,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -5752,7 +5753,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -6021,7 +6022,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -6050,7 +6051,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_vim_enabled(/*enabled*/ true); @@ -6113,7 +6114,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ true, ); composer.set_vim_enabled(/*enabled*/ true); @@ -6145,7 +6146,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ true, ); composer.set_vim_enabled(/*enabled*/ true); @@ -6180,7 +6181,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ true, ); composer.set_collaboration_modes_enabled(/*enabled*/ true); @@ -6226,7 +6227,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ true, ); composer.set_vim_enabled(/*enabled*/ true); @@ -6257,7 +6258,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ true, ); composer.set_vim_enabled(/*enabled*/ true); @@ -6282,7 +6283,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -6306,7 +6307,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -6332,7 +6333,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -6400,7 +6401,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -6433,7 +6434,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_steer_enabled(/*enabled*/ true); @@ -6474,7 +6475,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_steer_enabled(/*enabled*/ true); @@ -6508,7 +6509,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_steer_enabled(/*enabled*/ true); @@ -6539,7 +6540,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_vim_enabled(/*enabled*/ true); @@ -6579,7 +6580,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); let area = Rect::new(0, 0, 80, 10); @@ -6615,7 +6616,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -6661,7 +6662,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); let remote_image_url = "https://example.com/one.png".to_string(); @@ -6703,7 +6704,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -6746,7 +6747,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -6786,7 +6787,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_steer_enabled(true); @@ -6812,7 +6813,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -6842,7 +6843,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_text_content("$".to_string(), Vec::new(), Vec::new()); @@ -7547,7 +7548,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_text_content("$".to_string(), Vec::new(), Vec::new()); @@ -7585,7 +7586,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_text_content("$goog".to_string(), Vec::new(), Vec::new()); @@ -7895,7 +7896,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8141,7 +8142,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8168,7 +8169,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8201,7 +8202,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8244,7 +8245,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8285,7 +8286,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8329,7 +8330,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8378,7 +8379,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_plugin_mentions(Some(vec![PluginCapabilitySummary { @@ -8430,7 +8431,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8462,7 +8463,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_mentions_v2_enabled(/*enabled*/ true); @@ -8498,7 +8499,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8529,7 +8530,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8553,7 +8554,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8587,7 +8588,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8636,7 +8637,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8724,7 +8725,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8769,7 +8770,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8799,7 +8800,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8835,7 +8836,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8868,7 +8869,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8899,7 +8900,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8928,7 +8929,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -8962,7 +8963,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_steer_enabled(true); @@ -8990,7 +8991,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_steer_enabled(true); @@ -9032,7 +9033,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_steer_enabled(false); @@ -9077,7 +9078,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -9118,7 +9119,7 @@ mod tests { /*has_input_focus*/ true, sender.clone(), /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -9224,7 +9225,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -9261,7 +9262,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); type_chars_humanlike(&mut composer, &input.chars().collect::>()); @@ -9287,7 +9288,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_service_tier_commands_enabled(/*enabled*/ true); @@ -9362,7 +9363,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -9414,7 +9415,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_steer_enabled(true); @@ -9467,7 +9468,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.draft.textarea.insert_str("restore me"); @@ -9505,7 +9506,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_task_running(/*running*/ true); @@ -9549,7 +9550,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_queue_submissions(/*queue_submissions*/ true); @@ -9585,7 +9586,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_task_running(/*running*/ true); @@ -9634,7 +9635,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer @@ -9670,7 +9671,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_task_running(/*running*/ true); @@ -9703,7 +9704,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); let mut keymap = RuntimeKeymap::defaults(); @@ -9729,7 +9730,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_task_running(/*running*/ true); @@ -9767,7 +9768,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_task_running(/*running*/ true); @@ -9813,7 +9814,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -9841,7 +9842,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_task_running(/*running*/ true); @@ -9871,7 +9872,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -9896,7 +9897,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -9940,7 +9941,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_collaboration_modes_enabled(/*enabled*/ true); @@ -9962,7 +9963,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_collaboration_modes_enabled(/*enabled*/ true); @@ -9983,7 +9984,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10015,7 +10016,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10043,7 +10044,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_task_running(/*running*/ false); @@ -10072,7 +10073,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10099,7 +10100,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10149,7 +10150,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_collaboration_modes_enabled(/*enabled*/ true); @@ -10187,7 +10188,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10454,7 +10455,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10533,7 +10534,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10610,7 +10611,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10652,7 +10653,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10697,7 +10698,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10734,7 +10735,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10783,7 +10784,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); let path = PathBuf::from("/tmp/image1.png"); @@ -10821,7 +10822,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10855,7 +10856,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); let remote_image_url = "https://example.com/remote.png".to_string(); @@ -10889,7 +10890,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); let remote_image_urls = vec![ @@ -10921,7 +10922,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -10976,7 +10977,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_text_content("hello".to_string(), Vec::new(), Vec::new()); @@ -11008,7 +11009,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11042,7 +11043,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11074,7 +11075,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11109,7 +11110,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11134,7 +11135,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11177,7 +11178,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11220,7 +11221,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11263,7 +11264,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11316,7 +11317,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); let path = PathBuf::from("/tmp/image2.png"); @@ -11355,7 +11356,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); let path = PathBuf::from("/tmp/image_dup.png"); @@ -11384,7 +11385,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); let path = PathBuf::from("/tmp/image3.png"); @@ -11427,7 +11428,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11453,7 +11454,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11513,7 +11514,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11576,7 +11577,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11617,7 +11618,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11641,7 +11642,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11678,7 +11679,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11856,7 +11857,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11885,7 +11886,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11932,7 +11933,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -11971,7 +11972,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12004,7 +12005,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12034,7 +12035,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12077,7 +12078,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12102,7 +12103,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12127,7 +12128,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_collaboration_modes_enabled(/*enabled*/ true); @@ -12161,7 +12162,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12205,7 +12206,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_text_content("!git status".to_string(), Vec::new(), Vec::new()); @@ -12225,7 +12226,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_text_content("!git status".to_string(), Vec::new(), Vec::new()); @@ -12245,7 +12246,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_text_content("git status".to_string(), Vec::new(), Vec::new()); @@ -12265,7 +12266,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12293,7 +12294,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12327,7 +12328,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12353,7 +12354,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12380,7 +12381,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12411,7 +12412,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12432,7 +12433,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12457,7 +12458,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12494,7 +12495,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12514,7 +12515,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12559,7 +12560,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -12596,7 +12597,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/history_search.rs b/akode-rs/tui/src/bottom_pane/chat_composer/history_search.rs index 2848cbd8..784f3740 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/history_search.rs +++ b/akode-rs/tui/src/bottom_pane/chat_composer/history_search.rs @@ -558,7 +558,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -609,7 +609,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -642,7 +642,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer @@ -667,7 +667,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -700,7 +700,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer @@ -723,7 +723,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_text_content("draft".to_string(), Vec::new(), Vec::new()); @@ -781,7 +781,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer @@ -819,7 +819,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer @@ -848,7 +848,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.history.record_local_submission(HistoryEntry::new( @@ -909,7 +909,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer @@ -980,7 +980,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer @@ -1050,7 +1050,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer @@ -1079,7 +1079,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer @@ -1118,7 +1118,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -1149,7 +1149,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); @@ -1184,7 +1184,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer @@ -1217,7 +1217,7 @@ mod tests { /*has_input_focus*/ true, sender, /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/history_search_paste_tests.rs b/akode-rs/tui/src/bottom_pane/chat_composer/history_search_paste_tests.rs index 9cd7e1b9..7b4294ab 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/history_search_paste_tests.rs +++ b/akode-rs/tui/src/bottom_pane/chat_composer/history_search_paste_tests.rs @@ -22,7 +22,7 @@ fn composer_with_history() -> ChatComposer { /*has_input_focus*/ true, AppEventSender::new(tx), /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); for entry in ["git status", "git log"] { diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/slash_input.rs b/akode-rs/tui/src/bottom_pane/chat_composer/slash_input.rs index 7528f16b..7fa22b5d 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/slash_input.rs +++ b/akode-rs/tui/src/bottom_pane/chat_composer/slash_input.rs @@ -613,7 +613,7 @@ mod tests { /*has_input_focus*/ true, AppEventSender::new(tx), /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ) } diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__snapshot_tests__voice_composer.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__snapshot_tests__voice_composer.snap index ff176b75..48419141 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__snapshot_tests__voice_composer.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__snapshot_tests__voice_composer.snap @@ -1,10 +1,11 @@ --- source: tui/src/bottom_pane/chat_composer/snapshot_tests.rs +assertion_line: 153 expression: rows --- voice ● listening /voice mute /voice stop -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__a_fresh_astra_response_waits_for_the_pending_command_to_leave.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__a_fresh_astra_response_waits_for_the_pending_command_to_leave.snap index b0d27c05..74489190 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__a_fresh_astra_response_waits_for_the_pending_command_to_leave.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__a_fresh_astra_response_waits_for_the_pending_command_to_leave.snap @@ -1,6 +1,6 @@ --- source: tui/src/bottom_pane/chat_composer/sparkle_tests.rs -assertion_line: 561 +assertion_line: 563 expression: "format!(\"command during startup:\\n{}\\n\\nafter command:\\n{}\", text(&pending),\ntext(&completed))" --- command during startup: @@ -13,6 +13,6 @@ command during startup: after command: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__canceled_history_search_restores_visible_stars_only_before_the_original_deadline.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__canceled_history_search_restores_visible_stars_only_before_the_original_deadline.snap index bc8acd15..f5a24903 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__canceled_history_search_restores_visible_stars_only_before_the_original_deadline.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__canceled_history_search_restores_visible_stars_only_before_the_original_deadline.snap @@ -1,13 +1,14 @@ --- source: tui/src/bottom_pane/chat_composer/sparkle_tests.rs +assertion_line: 696 expression: "snapshots.join(\"\\n\\n\")" --- expires while open: false initial: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left searching: › stored draft @@ -15,16 +16,16 @@ searching: reverse-i-search: stored enter accept · esc cancel after escape: ⠁ ⡀ ⠄ ⠄ ⠄ -› Ask aKode to do anything ⠈ +› Chiedi ad aKode qualsiasi cosa ⠈ ⠠ ⠠ ⢀ ⢀ ⡀ ⠄ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left expires while open: true initial: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left searching: › stored draft @@ -32,6 +33,6 @@ searching: reverse-i-search: stored enter accept · esc cancel after escape: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__cleared_recovered_draft_keeps_sparkle_dismissed.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__cleared_recovered_draft_keeps_sparkle_dismissed.snap index 5099dfc5..6e68b876 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__cleared_recovered_draft_keeps_sparkle_dismissed.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__cleared_recovered_draft_keeps_sparkle_dismissed.snap @@ -1,9 +1,9 @@ --- source: tui/src/bottom_pane/chat_composer/sparkle_tests.rs -assertion_line: 900 +assertion_line: 903 expression: "text(&draw(&pane.composer, 80, now).0)" --- -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__disconnected_sparkle_edits_are_tracked_between_renders.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__disconnected_sparkle_edits_are_tracked_between_renders.snap index 39f10fb3..67a7d171 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__disconnected_sparkle_edits_are_tracked_between_renders.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__disconnected_sparkle_edits_are_tracked_between_renders.snap @@ -1,27 +1,28 @@ --- source: tui/src/bottom_pane/chat_composer/sparkle_tests.rs +assertion_line: 524 expression: "snapshots.join(\"\\n\\n\")" --- gpt-6-astra before disconnect: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left after typing and erasing without rendering: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left gpt-5.5 before disconnect: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left after typing and erasing without rendering: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__history_search_acceptance_and_cancellation_update_sparkles_before_rendering.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__history_search_acceptance_and_cancellation_update_sparkles_before_rendering.snap index ba645736..7d5cf5d2 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__history_search_acceptance_and_cancellation_update_sparkles_before_rendering.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__history_search_acceptance_and_cancellation_update_sparkles_before_rendering.snap @@ -1,15 +1,16 @@ --- source: tui/src/bottom_pane/chat_composer/sparkle_tests.rs +assertion_line: 632 expression: "snapshots.join(\"\\n\\n\")" --- accept: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left escape: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__history_search_preserves_a_held_sparkle_command_without_reclassifying_it.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__history_search_preserves_a_held_sparkle_command_without_reclassifying_it.snap index 6550babe..06a560fc 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__history_search_preserves_a_held_sparkle_command_without_reclassifying_it.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__history_search_preserves_a_held_sparkle_command_without_reclassifying_it.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/chat_composer/sparkle_tests.rs +assertion_line: 757 expression: "snapshots.join(\"\\n\\n\")" --- gpt-6-astra @@ -10,14 +11,14 @@ searching with an explicit pasted query: reverse-i-search: history enter accept · esc cancel after canceling and erasing the slash: ⠁ ⡀ ⠄ ⠄ ⠄ -› Ask aKode to do anything ⠈ +› Chiedi ad aKode qualsiasi cosa ⠈ ⠠ ⠠ ⢀ ⢀ ⡀ ⠄ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left after /model selects Astra: ⠁ ⡀ ⠄ ⠄ ⠄ -› Ask aKode to do anything ⠈ +› Chiedi ad aKode qualsiasi cosa ⠈ ⠠ ⠠ ⢀ ⢀ ⡀ ⠄ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left gpt-5.5 searching with an explicit pasted query: @@ -27,11 +28,11 @@ searching with an explicit pasted query: reverse-i-search: history enter accept · esc cancel after canceling and erasing the slash: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left after /model selects Astra: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__review_regression_canceling_a_held_slash_restores_sparkle_command_tracking.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__review_regression_canceling_a_held_slash_restores_sparkle_command_tracking.snap index 3933fd72..e61e07cd 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__review_regression_canceling_a_held_slash_restores_sparkle_command_tracking.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__review_regression_canceling_a_held_slash_restores_sparkle_command_tracking.snap @@ -1,27 +1,28 @@ --- source: tui/src/bottom_pane/chat_composer/sparkle_tests.rs +assertion_line: 949 expression: "snapshots.join(\"\\n\\n\")" --- gpt-6-astra after immediately canceling the held slash: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left after /model: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left gpt-5.5 after immediately canceling the held slash: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left after /model: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__shortcut_help_hides_visible_sparkles_without_restarting_their_deadline.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__shortcut_help_hides_visible_sparkles_without_restarting_their_deadline.snap index 36be1d39..fc1b02b7 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__shortcut_help_hides_visible_sparkles_without_restarting_their_deadline.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__shortcut_help_hides_visible_sparkles_without_restarting_their_deadline.snap @@ -1,13 +1,14 @@ --- source: tui/src/bottom_pane/chat_composer/sparkle_tests.rs +assertion_line: 454 expression: "snapshots.join(\"\\n\\n\")" --- expires during help: false initial: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left shortcut help: Keyboard shortcuts @@ -29,21 +30,21 @@ shortcut help: /keymap customize -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa ? / esc close after closing: ⠁ ⡀ ⠄ ⠄ ⠄ -› Ask aKode to do anything ⠈ +› Chiedi ad aKode qualsiasi cosa ⠈ ⠠ ⠠ ⢀ ⢀ ⡀ ⠄ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left expires during help: true initial: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left shortcut help: Keyboard shortcuts @@ -65,11 +66,11 @@ shortcut help: /keymap customize -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa ? / esc close after closing: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__shortcut_help_preserves_an_unused_sparkle_but_literal_question_marks_do_not.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__shortcut_help_preserves_an_unused_sparkle_but_literal_question_marks_do_not.snap index e5dce392..bd59513d 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__shortcut_help_preserves_an_unused_sparkle_but_literal_question_marks_do_not.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__shortcut_help_preserves_an_unused_sparkle_but_literal_question_marks_do_not.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/chat_composer/sparkle_tests.rs +assertion_line: 367 expression: "snapshots.join(\"\\n\\n\")" --- shortcut help: @@ -23,15 +24,15 @@ shortcut help: /keymap customize -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa ? / esc close after /model selects Astra: ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left literal pasted question mark: @@ -41,6 +42,6 @@ literal pasted question mark: after clearing and selecting Astra: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__sparkle_fades_without_adding_dots_and_finishes_by_fifteen_seconds.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__sparkle_fades_without_adding_dots_and_finishes_by_fifteen_seconds.snap index 9a814702..7a0e7f66 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__sparkle_fades_without_adding_dots_and_finishes_by_fifteen_seconds.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__sparkle_fades_without_adding_dots_and_finishes_by_fifteen_seconds.snap @@ -1,19 +1,20 @@ --- source: tui/src/bottom_pane/chat_composer/sparkle_tests.rs +assertion_line: 217 expression: "format!(\"before fade:\\n{}\\nfading:\\n{}\\nfinished:\\n{}\", text(&last),\ntext(&fading), text(&finished))" --- before fade: ⠁ ⠄ ⢀ ⠈ ⠁ ⡀ ⠂ ⠄ -› Ask aKode to do anything ⠈ ⠈ ⠂ ⠁ ⠂ +› Chiedi ad aKode qualsiasi cosa ⠈ ⠂ ⠁ ⠂ ⢀⠐ ⠄ ⠄ ⢀ ⠠ ⠄ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left fading: ⠁ ⠄ ⢀ ⠈ ⠁ ⡀ ⠂ ⠄ -› Ask aKode to do anything ⠈ ⠈ ⠂ ⠁ +› Chiedi ad aKode qualsiasi cosa ⠈ ⠂ ⠁ ⠐ ⠄ ⠄ ⢀ ⠠ ⠄ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left finished: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__sparkle_matches_the_original_starfield_and_protects_the_placeholder_and_cursor.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__sparkle_matches_the_original_starfield_and_protects_the_placeholder_and_cursor.snap index f65c967c..052076b0 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__sparkle_matches_the_original_starfield_and_protects_the_placeholder_and_cursor.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__sparkle__tests__sparkle_matches_the_original_starfield_and_protects_the_placeholder_and_cursor.snap @@ -1,12 +1,13 @@ --- source: tui/src/bottom_pane/chat_composer/sparkle_tests.rs +assertion_line: 171 expression: "snapshots.join(\"\\n\\n\")" --- 40 columns, cursor Some((2, 1)) ⠈ ⢀ -›⠁Ask aKode to do anything ⠈ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⢀ ⠠ ⠄ ⠠ - ? for shortcuts 100% context left + 100% context left first input: › x @@ -15,9 +16,9 @@ first input: 80 columns, cursor Some((2, 1)) ⠈ ⢀ ⠁ ⠂ -›⠁Ask aKode to do anything ⠈ ⠁ +›⠁Chiedi ad aKode qualsiasi cosa ⠈ ⠁ ⢀ ⠠ ⠄ ⠠ ⢀ ⠠ ⡀ - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left first input: › x diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__status_surface__tests__fullscreen_plan_cycle_hint.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__status_surface__tests__fullscreen_plan_cycle_hint.snap index 17d1f064..e5b0814a 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__status_surface__tests__fullscreen_plan_cycle_hint.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__status_surface__tests__fullscreen_plan_cycle_hint.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/chat_composer/status_surface_tests.rs +assertion_line: 399 expression: wide --- @@ -14,4 +15,4 @@ expression: wide › Ask aKode MODEL · ~/project · Context 20% used - ⏸ plan mode attivo (shift+tab per cambiare) · ? for shortcuts + ⏸ plan mode attivo (shift+tab per cambiare) · ? per le scorciatoie diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__status_surface__tests__persistent_status_and_messages.snap b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__status_surface__tests__persistent_status_and_messages.snap index f8b76a62..e17a49af 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__status_surface__tests__persistent_status_and_messages.snap +++ b/akode-rs/tui/src/bottom_pane/chat_composer/snapshots/akode_tui__bottom_pane__chat_composer__status_surface__tests__persistent_status_and_messages.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/chat_composer/status_surface_tests.rs +assertion_line: 632 expression: "states.join(\"\\n---\\n\")" --- @@ -14,7 +15,7 @@ expression: "states.join(\"\\n---\\n\")" › Ask aKode MODEL · ~/project · Context 20% used - ⏸ plan mode attivo (shift+tab per cambiare) · ? for shortcuts + ⏸ plan mode attivo (shift+tab per cambiare) · ? per le scorcia --- diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/sparkle_tests.rs b/akode-rs/tui/src/bottom_pane/chat_composer/sparkle_tests.rs index 5e4db76e..2adfad28 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/sparkle_tests.rs +++ b/akode-rs/tui/src/bottom_pane/chat_composer/sparkle_tests.rs @@ -24,7 +24,7 @@ fn pane() -> BottomPane { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".into(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".into(), disable_paste_burst: true, animations_enabled: true, effects: Default::default(), diff --git a/akode-rs/tui/src/bottom_pane/chat_composer/status_surface_tests.rs b/akode-rs/tui/src/bottom_pane/chat_composer/status_surface_tests.rs index 703e4cdc..606bb60a 100644 --- a/akode-rs/tui/src/bottom_pane/chat_composer/status_surface_tests.rs +++ b/akode-rs/tui/src/bottom_pane/chat_composer/status_surface_tests.rs @@ -667,7 +667,7 @@ fn slash_popup_preserves_footer_and_selection_style() { /*has_input_focus*/ true, AppEventSender::new(tx), /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ true, ); composer.set_status_line_enabled(/*enabled*/ true); diff --git a/akode-rs/tui/src/bottom_pane/footer.rs b/akode-rs/tui/src/bottom_pane/footer.rs index b70205ac..9917fb4e 100644 --- a/akode-rs/tui/src/bottom_pane/footer.rs +++ b/akode-rs/tui/src/bottom_pane/footer.rs @@ -32,7 +32,7 @@ //! even if it means dropping the right-side context earlier; the queue //! hint may also be shortened before it is removed. //! - When the queue hint is not active but the mode cycle hint is applicable, -//! drop "? for shortcuts" before dropping "(shift+tab to cycle)". +//! drop "? per le scorciatoie" before dropping "(shift+tab to cycle)". //! - If "(shift+tab to cycle)" cannot fit, also hide the right-side //! context to avoid too many state transitions in quick succession. //! - Finally, try a mode-only line (with and without context), and fall @@ -338,14 +338,14 @@ fn left_side_line( SummaryHintKind::Shortcuts => { if let Some(key) = key_hints.agents { line.extend(key.spans()); - line.push_span(" for agents".set_style(secondary_text_style())); + line.push_span(" per gli agenti".set_style(secondary_text_style())); if key_hints.toggle_shortcuts.is_some() { line.push_span(" · ".set_style(secondary_text_style())); } } if let Some(key) = key_hints.toggle_shortcuts { line.extend(key.spans()); - line.push_span(" for shortcuts".set_style(secondary_text_style())); + line.push_span(" per le scorciatoie".set_style(secondary_text_style())); } } SummaryHintKind::QueueMessage => { @@ -843,7 +843,7 @@ fn passive_footer_suffix(props: &FooterProps, has_status: bool) -> Line<'static> line.push_span(" · ".set_style(secondary_text_style())); } line.extend(key.spans()); - line.push_span(" for agents".set_style(secondary_text_style())); + line.push_span(" per gli agenti".set_style(secondary_text_style())); } line } diff --git a/akode-rs/tui/src/bottom_pane/mod.rs b/akode-rs/tui/src/bottom_pane/mod.rs index 58f658ba..6db68c33 100644 --- a/akode-rs/tui/src/bottom_pane/mod.rs +++ b/akode-rs/tui/src/bottom_pane/mod.rs @@ -2741,7 +2741,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst, animations_enabled: true, effects: Default::default(), @@ -3025,7 +3025,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: true, animations_enabled: true, effects: Default::default(), @@ -3051,7 +3051,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: true, animations_enabled: true, effects: Default::default(), @@ -3085,7 +3085,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3428,7 +3428,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3476,7 +3476,7 @@ mod tests { for x in 0..area.width { row.push(buf[(x, y)].symbol().chars().next().unwrap_or(' ')); } - if row.contains("Ask aKode") { + if row.contains("Chiedi ad aKode") { found_composer = true; break; } @@ -3496,7 +3496,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3571,7 +3571,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3603,7 +3603,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3627,7 +3627,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3657,7 +3657,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3695,7 +3695,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3728,7 +3728,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3760,7 +3760,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3790,7 +3790,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3814,7 +3814,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3863,7 +3863,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3932,7 +3932,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -3969,7 +3969,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -4018,7 +4018,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -4144,7 +4144,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -4193,7 +4193,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), @@ -4272,7 +4272,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: true, effects: Default::default(), diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__agents_navigation_enabled.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__agents_navigation_enabled.snap index 2c42ee30..4a679e9c 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__agents_navigation_enabled.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__agents_navigation_enabled.snap @@ -1,13 +1,14 @@ --- source: tui/src/bottom_pane/chat_composer.rs +assertion_line: 5260 expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " " " " " " " -" ← for agents · ? for shortcuts 100% context left " +" ← per gli agenti · ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__agents_navigation_help.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__agents_navigation_help.snap index f8b074b3..ef7375c1 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__agents_navigation_help.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__agents_navigation_help.snap @@ -23,7 +23,7 @@ expression: terminal.backend() " " " /keymap customize " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__agents_navigation_status.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__agents_navigation_status.snap index e3af5fea..3388dd4e 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__agents_navigation_status.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__agents_navigation_status.snap @@ -3,11 +3,11 @@ source: tui/src/bottom_pane/chat_composer.rs expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " " " " " " " -" model · project · ← for agents " +" model · project · ← per gli agenti " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__empty.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__empty.snap index 0f7f26b3..e4645f5a 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__empty.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__empty.snap @@ -1,9 +1,10 @@ --- source: tui/src/bottom_pane/chat_composer.rs +assertion_line: 9151 expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " @@ -11,4 +12,4 @@ expression: terminal.backend() " " " " " " -" ? for shortcuts 100% context left " +" ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_full.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_full.snap index 1f7b2955..aeb4c9a0 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_full.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_full.snap @@ -1,13 +1,14 @@ --- source: tui/src/bottom_pane/chat_composer.rs +assertion_line: 5260 expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " " " " " " " -" ? for shortcuts 100% context left " +" ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_mode_cycle_with_context.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_mode_cycle_with_context.snap index ac2f081f..9bf110da 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_mode_cycle_with_context.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_mode_cycle_with_context.snap @@ -3,11 +3,11 @@ source: tui/src/bottom_pane/chat_composer.rs expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " " " " " " " -" ? for shortcuts 100% context left " +" ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_mode_cycle_without_context.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_mode_cycle_without_context.snap index adaf2f34..f1742b59 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_mode_cycle_without_context.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_mode_cycle_without_context.snap @@ -3,11 +3,11 @@ source: tui/src/bottom_pane/chat_composer.rs expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " " " " " " " -" ? for shortcuts 100% context left " +" ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_mode_only.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_mode_only.snap index 24979623..ee1dfee1 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_mode_only.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_empty_mode_only.snap @@ -3,7 +3,7 @@ source: tui/src/bottom_pane/chat_composer.rs expression: terminal.backend() --- " " -"› Ask aKode to do anythin " +"› Chiedi ad aKode qualsia " " " " " " " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_full.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_full.snap index b3dfdefb..492b1898 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_full.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_full.snap @@ -3,11 +3,11 @@ source: tui/src/bottom_pane/chat_composer.rs expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " " " " " " " -" ⏸ plan mode attivo (shift+tab per cambiare) · ? for shortcuts 100% context left " +" ⏸ plan mode attivo (shift+tab per cambiare) · ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_mode_cycle_with_context.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_mode_cycle_with_context.snap index b136a4ea..faa15145 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_mode_cycle_with_context.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_mode_cycle_with_context.snap @@ -3,11 +3,11 @@ source: tui/src/bottom_pane/chat_composer.rs expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " " " " " " " -" ⏸ plan mode attivo · ? for shortcuts " +" ⏸ plan mode attivo · ? per le scorciatoie " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_mode_cycle_without_context.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_mode_cycle_without_context.snap index cd808828..839de911 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_mode_cycle_without_context.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_mode_cycle_without_context.snap @@ -3,11 +3,11 @@ source: tui/src/bottom_pane/chat_composer.rs expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " " " " " " " -" ⏸ plan mode attivo · ? for shortcuts " +" ⏸ plan mode attivo · ? per le scorciatoie " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_mode_only.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_mode_only.snap index 660d810c..9dda15e3 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_mode_only.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_collapse_plan_empty_mode_only.snap @@ -3,7 +3,7 @@ source: tui/src/bottom_pane/chat_composer.rs expression: terminal.backend() --- " " -"› Ask aKode to do anythin " +"› Chiedi ad aKode qualsia " " " " " " " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_configured_key_chords.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_configured_key_chords.snap index 728c85c9..c6f72aba 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_configured_key_chords.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_configured_key_chords.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/chat_composer.rs +assertion_line: 5260 expression: terminal.backend() --- " Keyboard shortcuts " @@ -16,7 +17,7 @@ expression: terminal.backend() " " " /keymap customize " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_ctrl_c_quit.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_ctrl_c_quit.snap index b8962667..1a3ddd5b 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_ctrl_c_quit.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_ctrl_c_quit.snap @@ -3,7 +3,7 @@ source: tui/src/bottom_pane/chat_composer.rs expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_ctrl_c_then_esc_hint.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_ctrl_c_then_esc_hint.snap index 70d756e8..97b189a0 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_ctrl_c_then_esc_hint.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_ctrl_c_then_esc_hint.snap @@ -3,7 +3,7 @@ source: tui/src/bottom_pane/chat_composer.rs expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_esc_hint_backtrack.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_esc_hint_backtrack.snap index 7e16e578..7b08b0cb 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_esc_hint_backtrack.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_esc_hint_backtrack.snap @@ -3,7 +3,7 @@ source: tui/src/bottom_pane/chat_composer.rs expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_esc_hint_from_overlay.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_esc_hint_from_overlay.snap index 71fbaea1..2fb3641d 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_esc_hint_from_overlay.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_esc_hint_from_overlay.snap @@ -1,14 +1,13 @@ --- source: tui/src/bottom_pane/chat_composer.rs -assertion_line: 5609 expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " " " " " " " -" ? for shortcuts 100% context left " +" ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_overlay_then_external_esc_hint.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_overlay_then_external_esc_hint.snap index 7e16e578..7b08b0cb 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_overlay_then_external_esc_hint.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_overlay_then_external_esc_hint.snap @@ -3,7 +3,7 @@ source: tui/src/bottom_pane/chat_composer.rs expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_shell_command_escape_exits_empty_mode.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_shell_command_escape_exits_empty_mode.snap index c3bb9683..cd57f3b1 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_shell_command_escape_exits_empty_mode.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_shell_command_escape_exits_empty_mode.snap @@ -1,10 +1,9 @@ --- source: tui/src/bottom_pane/chat_composer.rs -assertion_line: 4485 expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_shortcut_overlay.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_shortcut_overlay.snap index fd88fefa..c528b811 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_shortcut_overlay.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_shortcut_overlay.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/chat_composer.rs +assertion_line: 5260 expression: terminal.backend() --- " Keyboard shortcuts " @@ -16,7 +17,7 @@ expression: terminal.backend() " " " /keymap customize " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_shortcut_overlay_queue_submissions.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_shortcut_overlay_queue_submissions.snap index 2dffb83f..ab745d2c 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_shortcut_overlay_queue_submissions.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__footer_mode_shortcut_overlay_queue_submissions.snap @@ -16,7 +16,7 @@ expression: terminal.backend() " " " /keymap customize " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__light_terminal_palette_composer.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__light_terminal_palette_composer.snap index 8ca110bd..2de4310b 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__light_terminal_palette_composer.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__light_terminal_palette_composer.snap @@ -1,27 +1,28 @@ --- source: tui/src/bottom_pane/chat_composer.rs +assertion_line: 5096 expression: "format!(\"{buffer:?}\")" --- Buffer { area: Rect { x: 0, y: 0, width: 48, height: 6 }, content: [ " ", - "› Ask aKode to do anything ", + "› Chiedi ad aKode qualsiasi cosa ", " ", " ", " ", - " ? for shortcuts 100% context left ", + " ? per le scorciatoie 100% context left ", ], styles: [ x: 0, y: 0, fg: Reset, bg: Rgb(244, 244, 244), underline: Reset, modifier: NONE, x: 0, y: 1, fg: Reset, bg: Rgb(244, 244, 244), underline: Reset, modifier: BOLD, x: 1, y: 1, fg: Reset, bg: Rgb(244, 244, 244), underline: Reset, modifier: NONE, x: 2, y: 1, fg: Reset, bg: Rgb(244, 244, 244), underline: Reset, modifier: DIM, - x: 26, y: 1, fg: Reset, bg: Rgb(244, 244, 244), underline: Reset, modifier: NONE, + x: 32, y: 1, fg: Reset, bg: Rgb(244, 244, 244), underline: Reset, modifier: NONE, x: 0, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 2, y: 5, fg: Rgb(110, 112, 108), bg: Reset, underline: Reset, modifier: BOLD, x: 3, y: 5, fg: Rgb(118, 119, 117), bg: Reset, underline: Reset, modifier: NONE, - x: 17, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, + x: 22, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 29, y: 5, fg: Rgb(118, 119, 117), bg: Reset, underline: Reset, modifier: NONE, x: 46, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, ] diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__parent_owned_thread_placeholder.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__parent_owned_thread_placeholder.snap index bf5ec9f1..9c46a91f 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__parent_owned_thread_placeholder.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__parent_owned_thread_placeholder.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/chat_composer.rs +assertion_line: 5260 expression: terminal.backend() --- " " @@ -10,4 +11,4 @@ expression: terminal.backend() " " " " " " -" ? for shortcuts 100% context left " +" ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__ultra_accent_upgrades_prompt_glyph.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__ultra_accent_upgrades_prompt_glyph.snap index c97f6c65..42c9c707 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__ultra_accent_upgrades_prompt_glyph.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__ultra_accent_upgrades_prompt_glyph.snap @@ -1,13 +1,14 @@ --- source: tui/src/bottom_pane/chat_composer.rs +assertion_line: 5260 expression: terminal.backend() --- " " -"» Ask aKode to do anything " +"» Chiedi ad aKode qualsiasi cosa " " " " " " " " " " " " " -" ? for shortcuts 100% context left " +" ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__vim_enter_after_expired_paste.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__vim_enter_after_expired_paste.snap index 797164c3..2992a5ea 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__vim_enter_after_expired_paste.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__vim_enter_after_expired_paste.snap @@ -1,13 +1,14 @@ --- source: tui/src/bottom_pane/chat_composer.rs +assertion_line: 5260 expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " " " " " " " -" ? for shortcuts 100% context left | Vim: Insert " +" ? per le scorciatoie 100% context left | Vim: Insert " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__vim_fresh_draft.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__vim_fresh_draft.snap index 36b25485..185172d3 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__vim_fresh_draft.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__chat_composer__tests__vim_fresh_draft.snap @@ -1,9 +1,10 @@ --- source: tui/src/bottom_pane/chat_composer.rs +assertion_line: 5260 expression: terminal.backend() --- " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " " " " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_context_tokens_used.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_context_tokens_used.snap index b7ee6070..7a1f55da 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_context_tokens_used.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_context_tokens_used.snap @@ -2,4 +2,4 @@ source: tui/src/bottom_pane/footer.rs expression: terminal.backend() --- -" ? for shortcuts 123K used " +" ? per le scorciatoie 123K used " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_accesso_completo_120.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_accesso_completo_120.snap index d2c63f41..f2af17a1 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_accesso_completo_120.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_accesso_completo_120.snap @@ -2,4 +2,4 @@ source: tui/src/bottom_pane/footer.rs expression: terminal.backend() --- -" ⏵⏵ accesso completo attivo (shift+tab per cambiare) · ? for shortcuts 100% context left " +" ⏵⏵ accesso completo attivo (shift+tab per cambiare) · ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_accesso_completo_80.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_accesso_completo_80.snap index accb15d0..b0f969a3 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_accesso_completo_80.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_accesso_completo_80.snap @@ -2,4 +2,4 @@ source: tui/src/bottom_pane/footer.rs expression: terminal.backend() --- -" ⏵⏵ accesso completo attivo · ? for shortcuts " +" ⏵⏵ accesso completo attivo · ? per le scorciatoie " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_plan_120.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_plan_120.snap index 91de2ed0..ac270dd8 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_plan_120.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_plan_120.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/footer.rs +assertion_line: 1235 expression: terminal.backend() --- -" ⏸ plan mode attivo (shift+tab per cambiare) · ? for shortcuts 100% context left " +" ⏸ plan mode attivo (shift+tab per cambiare) · ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_plan_40.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_plan_40.snap index 71f41bd8..ea3cb27a 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_plan_40.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_plan_40.snap @@ -2,4 +2,4 @@ source: tui/src/bottom_pane/footer.rs expression: terminal.backend() --- -" ⏸ plan mode attivo · ? for shortcuts " +" ⏸ plan mode attivo " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_plan_80.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_plan_80.snap index 3f8638f6..29992e37 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_plan_80.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_cycle_plan_80.snap @@ -2,4 +2,4 @@ source: tui/src/bottom_pane/footer.rs expression: terminal.backend() --- -" ⏸ plan mode attivo · ? for shortcuts " +" ⏸ plan mode attivo · ? per le scorciatoie " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_indicator_narrow_overlap_hides.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_indicator_narrow_overlap_hides.snap index 71f41bd8..ea3cb27a 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_indicator_narrow_overlap_hides.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_indicator_narrow_overlap_hides.snap @@ -2,4 +2,4 @@ source: tui/src/bottom_pane/footer.rs expression: terminal.backend() --- -" ⏸ plan mode attivo · ? for shortcuts " +" ⏸ plan mode attivo " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_indicator_running_hides_hint.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_indicator_running_hides_hint.snap index b5f4f9ce..5fb28ff7 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_indicator_running_hides_hint.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_indicator_running_hides_hint.snap @@ -2,4 +2,4 @@ source: tui/src/bottom_pane/footer.rs expression: terminal.backend() --- -" ⏸ plan mode attivo · ? for shortcuts 100% context left " +" ⏸ plan mode attivo · ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_indicator_wide.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_indicator_wide.snap index 91de2ed0..e7a38401 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_indicator_wide.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_mode_indicator_wide.snap @@ -2,4 +2,4 @@ source: tui/src/bottom_pane/footer.rs expression: terminal.backend() --- -" ⏸ plan mode attivo (shift+tab per cambiare) · ? for shortcuts 100% context left " +" ⏸ plan mode attivo (shift+tab per cambiare) · ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_shortcuts_context_running.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_shortcuts_context_running.snap index 2a81b855..1d651775 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_shortcuts_context_running.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_shortcuts_context_running.snap @@ -2,4 +2,4 @@ source: tui/src/bottom_pane/footer.rs expression: terminal.backend() --- -" ? for shortcuts 72% context left " +" ? per le scorciatoie 72% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_shortcuts_default.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_shortcuts_default.snap index 02804e57..b493490a 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_shortcuts_default.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_shortcuts_default.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/footer.rs +assertion_line: 1235 expression: terminal.backend() --- -" ? for shortcuts 100% context left " +" ? per le scorciatoie 100% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_status_line_disabled_context_right.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_status_line_disabled_context_right.snap index 11070d2e..67e4ec16 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_status_line_disabled_context_right.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__footer__tests__footer_status_line_disabled_context_right.snap @@ -2,4 +2,4 @@ source: tui/src/bottom_pane/footer.rs expression: terminal.backend() --- -" ⏸ plan mode attivo (shift+tab per cambiare) · ? for shortcuts 50% context left " +" ⏸ plan mode attivo (shift+tab per cambiare) · ? per le scorciatoie 50% context left " diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__inline_banner_wrapped_and_truncated.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__inline_banner_wrapped_and_truncated.snap index 22cc5eec..6c28df8c 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__inline_banner_wrapped_and_truncated.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__inline_banner_wrapped_and_truncated.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/mod.rs +assertion_line: 2840 expression: "render_snapshot(&pane, area)" --- @@ -18,6 +19,6 @@ expression: "render_snapshot(&pane, area)" Press a number to choose · esc to dismiss · type to continue -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__queued_messages_visible_when_status_hidden_snapshot.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__queued_messages_visible_when_status_hidden_snapshot.snap index df15123d..1e525257 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__queued_messages_visible_when_status_hidden_snapshot.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__queued_messages_visible_when_status_hidden_snapshot.snap @@ -1,11 +1,12 @@ --- source: tui/src/bottom_pane/mod.rs +assertion_line: 3716 expression: "render_snapshot(&pane, area)" --- • Queued follow-up inputs ↳ Queued follow-up question ⇧← edit last queued message -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_and_composer_fill_height_without_bottom_padding.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_and_composer_fill_height_without_bottom_padding.snap index 83202f33..b92cbf1a 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_and_composer_fill_height_without_bottom_padding.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_and_composer_fill_height_without_bottom_padding.snap @@ -1,10 +1,11 @@ --- source: tui/src/bottom_pane/mod.rs +assertion_line: 3591 expression: "render_snapshot(&pane, area)" --- • Working (0s • esc to interr… -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi c 100% context left diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_and_queued_messages_snapshot.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_and_queued_messages_snapshot.snap index 0331ec5d..ae1b47e0 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_and_queued_messages_snapshot.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_and_queued_messages_snapshot.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/mod.rs +assertion_line: 3748 expression: "render_snapshot(&pane, area)" --- • Working (0s • esc to interrupt) @@ -8,6 +9,6 @@ expression: "render_snapshot(&pane, area)" ↳ Queued follow-up question ⇧← edit last queued message -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_only_snapshot.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_only_snapshot.snap index fe2b1203..65fef349 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_only_snapshot.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_only_snapshot.snap @@ -1,10 +1,11 @@ --- source: tui/src/bottom_pane/mod.rs +assertion_line: 3618 expression: "render_snapshot(&pane, area)" --- • Working (0s • esc to interrupt) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_timer_survives_hidden_row.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_timer_survives_hidden_row.snap index 7c82f2a7..758f631d 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_timer_survives_hidden_row.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_timer_survives_hidden_row.snap @@ -1,11 +1,11 @@ --- source: tui/src/bottom_pane/mod.rs -assertion_line: 2570 +assertion_line: 3522 expression: "render_snapshot(&pane, area)" --- • Working (42s • esc to interrupt) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + 100% context left diff --git a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_with_details_and_queued_messages_snapshot.snap b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_with_details_and_queued_messages_snapshot.snap index d5847264..4aaadd11 100644 --- a/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_with_details_and_queued_messages_snapshot.snap +++ b/akode-rs/tui/src/bottom_pane/snapshots/akode_tui__bottom_pane__tests__status_with_details_and_queued_messages_snapshot.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/mod.rs +assertion_line: 3683 expression: "render_snapshot(&pane, area)" --- • Working (0s • esc to interrupt) @@ -10,6 +11,6 @@ expression: "render_snapshot(&pane, area)" ↳ Queued follow-up question ⇧← edit last queued message -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__actionable_banner_with_composer_gap.snap b/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__actionable_banner_with_composer_gap.snap index def7bff2..bd9022d8 100644 --- a/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__actionable_banner_with_composer_gap.snap +++ b/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__actionable_banner_with_composer_gap.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/tests/actionable_banner_tests.rs +assertion_line: 75 expression: rendered --- @@ -10,6 +11,6 @@ expression: rendered Press a number to choose · esc to dismiss · type to continue -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa esc esc to edit previous message diff --git a/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__banner_wrapped_url.snap b/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__banner_wrapped_url.snap index 14dc2724..a0244937 100644 --- a/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__banner_wrapped_url.snap +++ b/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__banner_wrapped_url.snap @@ -1,5 +1,6 @@ --- source: tui/src/bottom_pane/tests/actionable_banner_tests.rs +assertion_line: 235 expression: visible --- @@ -11,6 +12,6 @@ expression: visible esc to dismiss · type to continue -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + 100% context left diff --git a/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__information_banner_dismissible.snap b/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__information_banner_dismissible.snap index 8c3345c2..bd9e0406 100644 --- a/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__information_banner_dismissible.snap +++ b/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__information_banner_dismissible.snap @@ -1,6 +1,5 @@ --- source: tui/src/bottom_pane/tests/actionable_banner_tests.rs -assertion_line: 34 expression: rendered --- @@ -10,6 +9,6 @@ expression: rendered esc to dismiss · type to continue -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__information_banner_persistent.snap b/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__information_banner_persistent.snap index 02f6f973..3b091f53 100644 --- a/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__information_banner_persistent.snap +++ b/akode-rs/tui/src/bottom_pane/tests/snapshots/akode_tui__bottom_pane__tests__actionable_banner_tests__information_banner_persistent.snap @@ -1,6 +1,6 @@ --- source: tui/src/bottom_pane/tests/actionable_banner_tests.rs -assertion_line: 32 +assertion_line: 188 expression: rendered --- @@ -8,6 +8,6 @@ expression: rendered You can change models or request more usage. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts 100% context left + ? per le scorciatoie 100% context left diff --git a/akode-rs/tui/src/bottom_pane/textarea/hyperlinks_tests.rs b/akode-rs/tui/src/bottom_pane/textarea/hyperlinks_tests.rs index 4a9e7700..2e411cd3 100644 --- a/akode-rs/tui/src/bottom_pane/textarea/hyperlinks_tests.rs +++ b/akode-rs/tui/src/bottom_pane/textarea/hyperlinks_tests.rs @@ -119,7 +119,7 @@ fn composer_wrapped_url_fragments_keep_the_complete_destination() { /*has_input_focus*/ true, AppEventSender::new(sender), /*enhanced_keys_supported*/ true, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ false, ); composer.set_text_content(format!("Fix CI on {url}"), Vec::new(), Vec::new()); diff --git a/akode-rs/tui/src/chatwidget.rs b/akode-rs/tui/src/chatwidget.rs index 6249b159..6d39e82b 100644 --- a/akode-rs/tui/src/chatwidget.rs +++ b/akode-rs/tui/src/chatwidget.rs @@ -2021,7 +2021,7 @@ impl Drop for ChatWidget { } } -const PLACEHOLDER: &str = "Ask aKode to do anything"; +const PLACEHOLDER: &str = "Chiedi ad aKode qualsiasi cosa"; const SIDE_PLACEHOLDER: &str = "Ask a follow-up question"; // Extract the first bold (Markdown) element in the form **...** from `s`. diff --git a/akode-rs/tui/src/chatwidget/protocol.rs b/akode-rs/tui/src/chatwidget/protocol.rs index a7cc32b1..ddb83246 100644 --- a/akode-rs/tui/src/chatwidget/protocol.rs +++ b/akode-rs/tui/src/chatwidget/protocol.rs @@ -38,7 +38,8 @@ impl ChatWidget { ServerNotification::Error(ErrorNotification { will_retry: true, .. - }) + }) | ServerNotification::ToolCallInputProgress(_) + | ServerNotification::ServerProgress(_) ); if !is_resume_initial_replay && !is_retry_error { self.restore_retry_status_header_if_present(); @@ -291,6 +292,16 @@ impl ChatWidget { vec!["✓ ".green(), notification.message.into()].into(), ]); } + ServerNotification::ServerProgress(notification) => { + if !from_replay { + self.on_server_progress(notification); + } + } + ServerNotification::ToolCallInputProgress(notification) => { + if !from_replay { + self.on_tool_call_input_progress(notification); + } + } ServerNotification::Warning(notification) => { if self.warning_display_state.startup_complete { self.on_warning(notification.message); diff --git a/akode-rs/tui/src/chatwidget/realtime/snapshots/akode_tui__chatwidget__realtime__tests__recording_controls_tests__voice_footer_renders_the_main_conversation_states.snap b/akode-rs/tui/src/chatwidget/realtime/snapshots/akode_tui__chatwidget__realtime__tests__recording_controls_tests__voice_footer_renders_the_main_conversation_states.snap index 8cc4308e..dcd4a712 100644 --- a/akode-rs/tui/src/chatwidget/realtime/snapshots/akode_tui__chatwidget__realtime__tests__recording_controls_tests__voice_footer_renders_the_main_conversation_states.snap +++ b/akode-rs/tui/src/chatwidget/realtime/snapshots/akode_tui__chatwidget__realtime__tests__recording_controls_tests__voice_footer_renders_the_main_conversation_states.snap @@ -5,7 +5,7 @@ expression: "states.join(\"\\n\\n\")" connecting: voice ◌ connecting /voice stop -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa status line stays visible @@ -13,7 +13,7 @@ listening: voice ● listening f9 mute /voice stop mic ▁▁▁▁▁▁ codex ▁▁▁▁▁▁ -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa status line stays visible @@ -21,7 +21,7 @@ speaking: voice ● speaking f9 mute /voice stop mic ▁▁▇▇▇▇ codex ▁▁████ -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa status line stays visible @@ -29,7 +29,7 @@ muted: voice ◌ muted f9 unmute /voice stop mic ▁▁▁▁▁▁ codex ▁▁▇▇▇▇ -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa status line stays visible @@ -37,7 +37,7 @@ transcript: voice ● speaking f9 mute /voice stop mic ▁▁▄▄▄▄ codex ▁▁▄▄▄▄ -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa status line stays visible @@ -45,6 +45,6 @@ interrupted: voice ● heard f9 mute /voice stop mic ▁▁▄▄▄▄ codex ▁▁▄▄▄▄ -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa status line stays visible diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__app_server_guardian_review_denied_renders_denied_request.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__app_server_guardian_review_denied_renders_denied_request.snap index b6ad2247..eb5ea43f 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__app_server_guardian_review_denied_renders_denied_request.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__app_server_guardian_review_denied_renders_denied_request.snap @@ -15,6 +15,6 @@ expression: normalize_snapshot_paths(term.backend().vt100().screen().contents()) • Working (0s • esc to interrupt) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__app_server_guardian_review_timed_out_renders_timed_out_request.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__app_server_guardian_review_timed_out_renders_timed_out_request.snap index 3db0bcab..b1e67323 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__app_server_guardian_review_timed_out_renders_timed_out_request.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__app_server_guardian_review_timed_out_renders_timed_out_request.snap @@ -15,6 +15,6 @@ expression: normalize_snapshot_paths(term.backend().vt100().screen().contents()) • Working (0s • esc to interrupt) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__app_server_mcp_startup_failure_renders_warning_history.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__app_server_mcp_startup_failure_renders_warning_history.snap index 0a62e21a..93f368e8 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__app_server_mcp_startup_failure_renders_warning_history.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__app_server_mcp_startup_failure_renders_warning_history.snap @@ -9,6 +9,6 @@ expression: normalize_snapshot_paths(term.backend().vt100().screen().contents()) ⚠ MCP startup incomplete (failed: alpha) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__chatwidget_tall.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__chatwidget_tall.snap index f8e1f010..655ab01b 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__chatwidget_tall.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__chatwidget_tall.snap @@ -23,6 +23,6 @@ expression: normalize_snapshot_paths(term.backend().vt100().screen().contents()) ↳ Hello, world! 14 ↳ Hello, world! 15 -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__compact_queues_user_messages_snapshot.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__compact_queues_user_messages_snapshot.snap index c43c4e93..4d3db7c6 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__compact_queues_user_messages_snapshot.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__compact_queues_user_messages_snapshot.snap @@ -17,6 +17,6 @@ expression: normalize_snapshot_paths(term.backend().vt100().screen().contents()) • Messages to be submitted at end of turn ↳ Steer submitted while /compact was running. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__compaction_running.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__compaction_running.snap index fd14af52..81154490 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__compaction_running.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__compaction_running.snap @@ -6,6 +6,6 @@ expression: "normalize_compaction_snapshot(render_bottom_popup(&chat, 80))" └ Making room to continue. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__compaction_running_narrow.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__compaction_running_narrow.snap index 631322b7..27525cc1 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__compaction_running_narrow.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__compaction_running_narrow.snap @@ -6,6 +6,6 @@ expression: "normalize_compaction_snapshot(render_bottom_popup(&chat, 40))" └ Making room to continue. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__completed_hook_with_output_flushes_immediately_snapshot.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__completed_hook_with_output_flushes_immediately_snapshot.snap index 7e8d23d0..8c7b9a58 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__completed_hook_with_output_flushes_immediately_snapshot.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__completed_hook_with_output_flushes_immediately_snapshot.snap @@ -1,5 +1,6 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 3631 expression: "format!(\"{running_snapshot}\\n\\n{completed_snapshot}\")" --- running @@ -8,7 +9,7 @@ activity: "• Checking command " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " history: @@ -18,7 +19,7 @@ completed activity: " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " history: diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__completed_same_id_hook_output_survives_restart_snapshot.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__completed_same_id_hook_output_survives_restart_snapshot.snap index 02cd6709..40f579c0 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__completed_same_id_hook_output_survives_restart_snapshot.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__completed_same_id_hook_output_survives_restart_snapshot.snap @@ -1,5 +1,6 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 3731 expression: "hook_status_and_history_snapshot(&chat, \"restarted\", &history)" --- restarted @@ -8,7 +9,7 @@ activity: "• Checking stop condition " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " history: diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__completed_turn_clears_visible_running_hook.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__completed_turn_clears_visible_running_hook.snap index 97003e10..5d5cc5b3 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__completed_turn_clears_visible_running_hook.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__completed_turn_clears_visible_running_hook.snap @@ -1,5 +1,6 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 2421 expression: "format!(\"before completion:\\n{before_completion}\\nafter completion:\\n{}\",\nhook_status_frame(&chat, 80))" --- before completion: @@ -7,12 +8,12 @@ before completion: "• Working (0s • esc to interrupt) · Running hook " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " after completion: " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__custom_model_display_name_status_line.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__custom_model_display_name_status_line.snap index 7960207e..993d61c3 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__custom_model_display_name_status_line.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__custom_model_display_name_status_line.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/model_display_name_tests.rs +assertion_line: 86 expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " GPT-5.6 Luna · GPT-5.6 Luna high " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__declined_tool_suggestion.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__declined_tool_suggestion.snap index b702f3ee..8c64284a 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__declined_tool_suggestion.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__declined_tool_suggestion.snap @@ -2,6 +2,6 @@ source: tui/src/chatwidget/tests/app_server.rs expression: normalize_snapshot_paths(popup) --- -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__esc_interrupt_goal_paused_footer.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__esc_interrupt_goal_paused_footer.snap index 8479538e..5a687fe5 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__esc_interrupt_goal_paused_footer.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__esc_interrupt_goal_paused_footer.snap @@ -1,11 +1,12 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 1557 expression: snapshot --- " " "• Working (0s • esc to interrupt) " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol ctx 0% · -- t/s Goal paused (/goal resume) " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__feedback_good_result_consent_popup.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__feedback_good_result_consent_popup.snap index 86baa5a1..ee5337fc 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__feedback_good_result_consent_popup.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__feedback_good_result_consent_popup.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/popups_and_settings.rs +assertion_line: 2644 expression: popup --- Include logs in the saved report? -› As +› Ch The following files will be saved locally (nothing is sent): 12 • codex-logs.log /s • client-logs.txt (if available) diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__feedback_logs_consent_popup.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__feedback_logs_consent_popup.snap index 7cf19435..581aa244 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__feedback_logs_consent_popup.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__feedback_logs_consent_popup.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/popups_and_settings.rs +assertion_line: 2623 expression: popup --- Include logs in the saved report? -› As +› Ch The following files will be saved locally (nothing is sent): 12 • codex-logs.log /s • client-logs.txt (if available) diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__full_access_confirmation_popup.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__full_access_confirmation_popup.snap index aa7f508c..b2f5a8b7 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__full_access_confirmation_popup.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__full_access_confirmation_popup.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/permissions.rs +assertion_line: 899 expression: popup --- Enable full access? -› As When aKode runs with full access, it can edit any file on your +› Ch When aKode runs with full access, it can edit any file on your computer and run commands with network, without your approval. 12 Exercise caution when enabling full access. This significantly /s increases the risk of data loss, leaks, or unexpected behavior. diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_approved_exec_is_hidden_from_history.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_approved_exec_is_hidden_from_history.snap index b16cb762..f0a559c6 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_approved_exec_is_hidden_from_history.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_approved_exec_is_hidden_from_history.snap @@ -10,6 +10,6 @@ expression: normalize_snapshot_paths(term.backend().vt100().screen().contents()) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_approved_request_permissions_clears_status_without_history.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_approved_request_permissions_clears_status_without_history.snap index 3878fc3b..e00f3fdc 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_approved_request_permissions_clears_status_without_history.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_approved_request_permissions_clears_status_without_history.snap @@ -10,6 +10,6 @@ expression: normalize_snapshot_paths(term.backend().vt100().screen().contents()) • Working (0s • esc to interrupt) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_denied_exec_renders_warning_and_denied_request.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_denied_exec_renders_warning_and_denied_request.snap index 736a149c..639e59f7 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_denied_exec_renders_warning_and_denied_request.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_denied_exec_renders_warning_and_denied_request.snap @@ -19,6 +19,6 @@ expression: normalize_snapshot_paths(term.backend().vt100().screen().contents()) • Working (0s • esc to interrupt) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_goal_continuation_drops_stale_reviews.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_goal_continuation_drops_stale_reviews.snap index 564aa490..ff8482d8 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_goal_continuation_drops_stale_reviews.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_goal_continuation_drops_stale_reviews.snap @@ -6,6 +6,6 @@ expression: normalize_snapshot_paths(rendered) └ rm -rf '/tmp/current-review' -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_parallel_reviews_render_aggregate_status.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_parallel_reviews_render_aggregate_status.snap index 2355e043..cba98cd7 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_parallel_reviews_render_aggregate_status.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_parallel_reviews_render_aggregate_status.snap @@ -7,6 +7,6 @@ expression: normalize_snapshot_paths(rendered) • rm -rf '/tmp/guardian target 2' -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_timed_out_exec_renders_warning_and_timed_out_request.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_timed_out_exec_renders_warning_and_timed_out_request.snap index d9442eb7..2294353d 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_timed_out_exec_renders_warning_and_timed_out_request.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_timed_out_exec_renders_warning_and_timed_out_request.snap @@ -19,6 +19,6 @@ expression: normalize_snapshot_paths(term.backend().vt100().screen().contents()) • Working (0s • esc to interrupt) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_write_stdin_review_status.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_write_stdin_review_status.snap index 771dd61d..73a0472e 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_write_stdin_review_status.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__guardian_write_stdin_review_status.snap @@ -6,6 +6,6 @@ expression: "normalize_snapshot_paths(render_bottom_popup(&chat, 80))" └ send input to terminal 42: "confirm\n" -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__hidden_shell_paste_queued_preview.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__hidden_shell_paste_queued_preview.snap index 20312b9a..a382ceb6 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__hidden_shell_paste_queued_preview.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__hidden_shell_paste_queued_preview.snap @@ -8,6 +8,6 @@ expression: "normalize_snapshot_paths(render_bottom_popup(&chat, 80))" ↳ [Pasted Content 1006 chars] ⇧← edit last queued message -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__hook_runs_while_exec_active_snapshot.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__hook_runs_while_exec_active_snapshot.snap index bc3e4aa1..0a278887 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__hook_runs_while_exec_active_snapshot.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__hook_runs_while_exec_active_snapshot.snap @@ -1,5 +1,6 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 3959 expression: "format!(\"exec running:\\n{exec_running}\\nexec and hook running:\\n{exec_and_hook_running}\\nhistory after exec:\\n{history_after_exec}\\nhook running after exec:\\n{hook_running_after_exec}\\nquiet hook completed:\\n{quiet_hook_completed}\")" --- exec running: @@ -12,7 +13,7 @@ exec and hook running: "• Working (0s • esc to interrupt) · checking output policy " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " history after exec: @@ -24,7 +25,7 @@ hook running after exec: "• Working (0s • esc to interrupt) · checking output policy " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " quiet hook completed: @@ -32,6 +33,6 @@ quiet hook completed: "• Working (0s • esc to interrupt) " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__interrupted_turn_clears_visible_running_hook.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__interrupted_turn_clears_visible_running_hook.snap index d0a37027..e211766f 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__interrupted_turn_clears_visible_running_hook.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__interrupted_turn_clears_visible_running_hook.snap @@ -1,5 +1,6 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 2394 expression: "format!(\"before interrupt:\\n{before_interrupt}\\nafter interrupt:\\n{}\",\nhook_status_frame(&chat, 80))" --- before interrupt: @@ -7,12 +8,12 @@ before interrupt: "• Working (0s • esc to interrupt) · checking command policy " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " after interrupt: " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__long_running_hook_below_background_activity_row.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__long_running_hook_below_background_activity_row.snap index 84fb9ffd..5732ce50 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__long_running_hook_below_background_activity_row.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__long_running_hook_below_background_activity_row.snap @@ -8,7 +8,7 @@ expression: "format!(\"80 columns:\\n{}\\n120 columns:\\n{}\", hook_status_frame " └ checking command policy for deployment commands, production credentials, an…" " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " 120 columns: @@ -17,6 +17,6 @@ expression: "format!(\"80 columns:\\n{}\\n120 columns:\\n{}\", hook_status_frame " └ checking command policy for deployment commands, production credentials, and paths containing 日本語 before continu…" Hidden by multi-width symbols: [(99, " "), (101, " "), (103, " ")] " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__manual_thread_name_status_surfaces.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__manual_thread_name_status_surfaces.snap index 3943c098..7692ffbf 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__manual_thread_name_status_surfaces.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__manual_thread_name_status_surfaces.snap @@ -5,7 +5,7 @@ expression: "normalize_snapshot_paths(format!(\"transcript:\\n{transcript}\\nfoo transcript: footer: -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa GPT-5.6-Sol default · /tmp/project · review-fix title: review-fix | project diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__mcp_startup_header_booting.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__mcp_startup_header_booting.snap index 7443250c..73a72ebe 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__mcp_startup_header_booting.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__mcp_startup_header_booting.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/mcp_startup.rs +assertion_line: 124 expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__misalignment_turn_end_cleared_composer.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__misalignment_turn_end_cleared_composer.snap index 1c83befa..4a83ae72 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__misalignment_turn_end_cleared_composer.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__misalignment_turn_end_cleared_composer.snap @@ -3,6 +3,6 @@ source: tui/src/chatwidget/tests/misalignment_policy_tests.rs assertion_line: 236 expression: "normalize_snapshot_paths(render_bottom_popup(&chat, 80))" --- -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa esc esc to edit previous message diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__mixed_running_hooks_share_background_activity_row.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__mixed_running_hooks_share_background_activity_row.snap index ea329bed..823c7740 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__mixed_running_hooks_share_background_activity_row.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__mixed_running_hooks_share_background_activity_row.snap @@ -8,7 +8,7 @@ expression: "format!(\"80 columns:\\n{}\\n120 columns:\\n{}\", hook_status_frame " └ Running hooks " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " 120 columns: @@ -16,6 +16,6 @@ expression: "format!(\"80 columns:\\n{}\\n120 columns:\\n{}\", hook_status_frame "• Working (0s • esc to interrupt) · 1 background terminal running · /ps to view · /stop to close · Running hooks " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__multi_agent_enable_prompt.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__multi_agent_enable_prompt.snap index 676188bf..3667f27a 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__multi_agent_enable_prompt.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__multi_agent_enable_prompt.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/popups_and_settings.rs +assertion_line: 1627 expression: "render_bottom_popup(&chat, 80)" --- Enable subagents? -› As Subagents are disabled in this TUI session. +› Ch Subagents are disabled in this TUI session. 12 /s › 1. Yes, enable Save on the server for new threads without changing diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__overlapping_hook_live_cell_snapshot.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__overlapping_hook_live_cell_snapshot.snap index fbcf6c17..c27d9777 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__overlapping_hook_live_cell_snapshot.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__overlapping_hook_live_cell_snapshot.snap @@ -1,5 +1,6 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 3912 expression: "format!(\"{first_running_snapshot}\\n\\n{second_running_snapshot}\\n\\n{older_completed_snapshot}\\n\\n{all_completed_snapshot}\")" --- pre running @@ -8,7 +9,7 @@ activity: "• Thinking (0s • esc to interrupt) · checking command policy " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " history: @@ -20,7 +21,7 @@ activity: "• Thinking (0s • esc to interrupt) · Running hooks " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " history: @@ -32,7 +33,7 @@ activity: "• Thinking (0s • esc to interrupt) · checking output policy " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " history: @@ -44,7 +45,7 @@ activity: "• Thinking (0s • esc to interrupt) " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " history: diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__plugins_popup_marketplace_remove_confirmation.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__plugins_popup_marketplace_remove_confirmation.snap index 28916cba..afa0e6e6 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__plugins_popup_marketplace_remove_confirmation.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__plugins_popup_marketplace_remove_confirmation.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/popups_and_settings.rs +assertion_line: 550 expression: confirmation --- Plugins -› Ask aKode to Remove Repo Marketplace marketplace? +› Chiedi ad aK Remove Repo Marketplace marketplace? This removes the configured marketplace from aKode. 127.0.0.1:9 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__quick_dial_shortcuts_empty.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__quick_dial_shortcuts_empty.snap index b3f71f24..37360825 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__quick_dial_shortcuts_empty.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__quick_dial_shortcuts_empty.snap @@ -9,4 +9,4 @@ expression: "render_bottom_popup(&chat, 100)" n · new s · from settings e · edit d · delete esc · close -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__reasoning_delta_restores_recreated_status_indicator.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__reasoning_delta_restores_recreated_status_indicator.snap index b20f2423..d15b9032 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__reasoning_delta_restores_recreated_status_indicator.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__reasoning_delta_restores_recreated_status_indicator.snap @@ -1,11 +1,12 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 3404 expression: normalized_backend_snapshot(terminal.backend()) --- " " "• Checking files and preparing a response (0s • esc to interrupt) · 1 backgroun…" " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__reasoning_shortcut_max_footer.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__reasoning_shortcut_max_footer.snap index fe4a6dae..0c60c8fe 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__reasoning_shortcut_max_footer.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__reasoning_shortcut_max_footer.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/popups_and_settings.rs +assertion_line: 2376 expression: snapshot --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " GPT-5.5 max " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__reasoning_shortcut_max_plan_footer.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__reasoning_shortcut_max_plan_footer.snap index dfcab4e9..17d67e5e 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__reasoning_shortcut_max_plan_footer.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__reasoning_shortcut_max_plan_footer.snap @@ -4,7 +4,7 @@ expression: snapshot --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " GPT-5.5 max " -" ⏸ plan mode attivo (shift+tab per cambiare) · ? for shortcuts " +" ⏸ plan mode attivo (shift+tab per cambiare) · ? per le scorciatoie " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__renamed_thread_footer_title.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__renamed_thread_footer_title.snap index c1eedc35..98642090 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__renamed_thread_footer_title.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__renamed_thread_footer_title.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 2673 expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " gpt-5.2 high · Roadmap cleanup " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__replayed_in_progress_turn.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__replayed_in_progress_turn.snap index 2dffc1bb..a2dd3500 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__replayed_in_progress_turn.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__replayed_in_progress_turn.snap @@ -5,6 +5,6 @@ expression: "timer.replace_all(&normalize_snapshot_paths(render_bottom_popup(&ch • Working ( • esc to interrupt) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__resume_paused_goal_prompt.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__resume_paused_goal_prompt.snap index 62460ebd..0ce36e50 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__resume_paused_goal_prompt.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__resume_paused_goal_prompt.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/goal_menu.rs +assertion_line: 55 expression: "render_bottom_popup(&chat, 100)" --- Resume paused goal? -› Ask aKode to Goal: Keep improving the bare goal command until it feels calm and +› Chiedi ad aK Goal: Keep improving the bare goal command until it feels calm and useful. 127.0.0.1:9 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__review_queues_user_messages_snapshot.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__review_queues_user_messages_snapshot.snap index 368aa565..2d5ae715 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__review_queues_user_messages_snapshot.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__review_queues_user_messages_snapshot.snap @@ -17,6 +17,6 @@ expression: normalize_snapshot_paths(term.backend().vt100().screen().contents()) • Messages to be submitted at end of turn ↳ Steer submitted while /review was running. -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__running_hooks_share_background_activity_row.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__running_hooks_share_background_activity_row.snap index 626e2860..639b6c6a 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__running_hooks_share_background_activity_row.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__running_hooks_share_background_activity_row.snap @@ -1,5 +1,6 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 3779 expression: "format!(\"80 columns:\\n{}\\n120 columns:\\n{}\", hook_status_frame(&chat, 80),\nhook_status_frame(&chat, 120),)" --- 80 columns: @@ -8,7 +9,7 @@ expression: "format!(\"80 columns:\\n{}\\n120 columns:\\n{}\", hook_status_frame " └ checking command policy " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " 120 columns: @@ -17,6 +18,6 @@ expression: "format!(\"80 columns:\\n{}\\n120 columns:\\n{}\", hook_status_frame " └ checking command policy " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__safety_buffering_retry_confirmation.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__safety_buffering_retry_confirmation.snap index c27b3073..ecb0fbfd 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__safety_buffering_retry_confirmation.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__safety_buffering_retry_confirmation.snap @@ -1,5 +1,6 @@ --- source: tui/src/chatwidget/tests/app_server.rs +assertion_line: 285 expression: "render_bottom_popup(&chat, 80)" --- • Wo Stop this attempt and retry? @@ -7,7 +8,7 @@ expression: "render_bottom_popup(&chat, 80)" This will stop the current attempt and retry in a new thread. Any . file changes or other actions already taken will remain. -› As Your message will be sent again using Faster Model, which may be +› Ch Your message will be sent again using Faster Model, which may be less capable on complex tasks. 12 /s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__session_end_hook_activity.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__session_end_hook_activity.snap index 479e201f..2541ac0a 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__session_end_hook_activity.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__session_end_hook_activity.snap @@ -1,11 +1,12 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 3835 expression: "format!(\"before reveal:\\n{hidden}\\nrunning:\\n{running}\\ncompleted:\\n{}\",\nhook_status_frame(&chat, 80),)" --- before reveal: " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " running: @@ -13,12 +14,12 @@ running: "• Saving session summary " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " completed: " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__session_end_hook_activity_without_message.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__session_end_hook_activity_without_message.snap index 1dd3e0c5..0add928d 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__session_end_hook_activity_without_message.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__session_end_hook_activity_without_message.snap @@ -5,7 +5,7 @@ expression: "format!(\"before reveal:\\n{hidden}\\nrunning:\\n{running}\\ncomple before reveal: " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " running: @@ -13,12 +13,12 @@ running: "• Running hook " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " completed: " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__side_context_label_shows_hidden_side.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__side_context_label_shows_hidden_side.snap index c0e6406c..ff8358bc 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__side_context_label_shows_hidden_side.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__side_context_label_shows_hidden_side.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/side.rs +assertion_line: 363 expression: terminal.backend() --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " GPT-5.6-Sol ctrl+/ for side " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__single_line_final_answer_hides_working_status.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__single_line_final_answer_hides_working_status.snap index fb767ccd..a51acdaf 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__single_line_final_answer_hides_working_status.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__single_line_final_answer_hides_working_status.snap @@ -9,6 +9,6 @@ expression: normalize_snapshot_paths(terminal.backend().vt100().screen().content • 1 -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__single_line_partial_answer_keeps_working_status.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__single_line_partial_answer_keeps_working_status.snap index 423e6377..fbb80b77 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__single_line_partial_answer_keeps_working_status.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__single_line_partial_answer_keeps_working_status.snap @@ -9,6 +9,6 @@ expression: normalize_snapshot_paths(terminal.backend().vt100().screen().content • Working (0s • esc to interrupt) -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_archive_confirmation_popup.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_archive_confirmation_popup.snap index 2c722650..29982eff 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_archive_confirmation_popup.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_archive_confirmation_popup.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/slash_commands.rs +assertion_line: 2796 expression: popup --- Archive this session? -› As Are you sure? This will archive the current session +› Ch Are you sure? This will archive the current session 12 /s › 1. No, don't archive Return to the current session diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_archive_running_confirmation_popup.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_archive_running_confirmation_popup.snap index 9802c25f..b73229fe 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_archive_running_confirmation_popup.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_archive_running_confirmation_popup.snap @@ -5,7 +5,7 @@ expression: popup • Wo Archive this session? This will stop the current turn and archive the session. -› As +› Ch › 1. No, don't archive Return to the current session 12 2. Yes, archive Archive this session now /s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_delete_confirmation_command_center.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_delete_confirmation_command_center.snap index 2b0718a6..56c96949 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_delete_confirmation_command_center.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_delete_confirmation_command_center.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/slash_commands.rs +assertion_line: 2813 expression: popup --- Delete this session? -› As Also deletes subagents and saved side chats. Cannot be undone. +› Ch Also deletes subagents and saved side chats. Cannot be undone. 12 /s › 1. No, keep this session Return to the current diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_side_requests_forked_side_question_while_task_running.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_side_requests_forked_side_question_while_task_running.snap index d56c1cea..97c1f8cd 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_side_requests_forked_side_question_while_task_running.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__slash_side_requests_forked_side_question_while_task_running.snap @@ -1,11 +1,12 @@ --- source: tui/src/chatwidget/tests/side.rs +assertion_line: 286 expression: normalized_backend_snapshot(terminal.backend()) --- " " "• Working (0s • esc to interrupt) " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " GPT-5.6-Sol default Side starting... " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_100.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_100.snap index 65aefb34..96c57643 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_100.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_100.snap @@ -4,6 +4,6 @@ expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 192.168.40.25:8080 · qwen3.6-35b-a3b · /tmp/project (main) ctx 31% · 26.8 t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_140.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_140.snap index 9de73f11..de538248 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_140.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_140.snap @@ -4,6 +4,6 @@ expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 192.168.40.25:8080 · qwen3.6-35b-a3b · /tmp/project (main) ctx 31% · 26.8 t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_60.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_60.snap index f92b6b6a..8e631b92 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_60.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_60.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 4550 expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 192.168.40.25:8080 · qwen3.6-35b-a… ctx 31% · 26.8 t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_80.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_80.snap index b7304cc4..0b8b6eb2 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_80.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_default_akode_footer_80.snap @@ -4,6 +4,6 @@ expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 192.168.40.25:8080 · qwen3.6-35b-a3b · …/project (main) ctx 31% · 26.8 t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_fast_mode_footer.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_fast_mode_footer.snap index ebc0ddf4..581ae8d3 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_fast_mode_footer.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_fast_mode_footer.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 2510 expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " gpt-5.2 high · Standard " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_goal_active_token_budget_footer.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_goal_active_token_budget_footer.snap index 4779e0d8..d0bbbff4 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_goal_active_token_budget_footer.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_goal_active_token_budget_footer.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 2778 expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " GPT-5.5 Pursuing goal (40K / 50K) " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_goal_complete_elapsed_footer.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_goal_complete_elapsed_footer.snap index 23fc22a2..6fbf4cf6 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_goal_complete_elapsed_footer.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_goal_complete_elapsed_footer.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 2817 expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " GPT-5.5 Goal achieved (2d 23h 42m) " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_model_with_reasoning_context_remaining_footer.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_model_with_reasoning_context_remaining_footer.snap index 550bd5f8..005551ba 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_model_with_reasoning_context_remaining_footer.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_model_with_reasoning_context_remaining_footer.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 2741 expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " gpt-5.4 xhigh fast · /tmp/project ctx 100% left " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_model_with_reasoning_fast_footer.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_model_with_reasoning_fast_footer.snap index 05919e6d..28eae3ed 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_model_with_reasoning_fast_footer.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_model_with_reasoning_fast_footer.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 2707 expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " gpt-5.4 xhigh fast · /tmp/project ctx 0% " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_model_with_reasoning_plan_mode_footer.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_model_with_reasoning_plan_mode_footer.snap index a6ac81e7..64adfe02 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_model_with_reasoning_plan_mode_footer.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_line_model_with_reasoning_plan_mode_footer.snap @@ -1,10 +1,11 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 2635 expression: normalized_backend_snapshot(terminal.backend()) --- " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " gpt-5.2 medium " -" ⏸ plan mode attivo (shift+tab per cambiare) · ? for shortcuts " +" ⏸ plan mode attivo (shift+tab per cambiare) · ? per le scorciatoie " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_widget_active.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_widget_active.snap index d9f1036a..72427fc0 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_widget_active.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__status_widget_active.snap @@ -1,11 +1,12 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 2110 expression: normalized_backend_snapshot(terminal.backend()) --- " " "• Analyzing (0s • esc to interrupt) " " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__unified_exec_begin_restores_working_status.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__unified_exec_begin_restores_working_status.snap index 9be04965..1fb64d03 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__unified_exec_begin_restores_working_status.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__unified_exec_begin_restores_working_status.snap @@ -1,11 +1,12 @@ --- source: tui/src/chatwidget/tests/exec_flow.rs +assertion_line: 509 expression: normalized_backend_snapshot(terminal.backend()) --- " " "• Working (0s • esc to interrupt) · 1 background terminal running · /ps to view…" " " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-Sol · /tmp/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__unified_exec_wait_status_renders_command_in_single_details_row.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__unified_exec_wait_status_renders_command_in_single_details_row.snap index acca30b2..225f061f 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__unified_exec_wait_status_renders_command_in_single_details_row.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__unified_exec_wait_status_renders_command_in_single_details_row.snap @@ -6,6 +6,6 @@ expression: normalize_snapshot_paths(rendered) └ cargo test -p akode-core -- --exact… -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-5.6-… ctx 0% · -- t/s diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__voice_live_transcript_and_stream.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__voice_live_transcript_and_stream.snap index c0703fd9..695fe319 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__voice_live_transcript_and_stream.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__voice_live_transcript_and_stream.snap @@ -12,6 +12,6 @@ expression: normalized_backend_snapshot(terminal.backend()) " " " voice ● listening f9 mute /voice stop " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-… · …/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__voice_partial_transcript_hidden.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__voice_partial_transcript_hidden.snap index a36c6e4d..f1968e7a 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__voice_partial_transcript_hidden.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__voice_partial_transcript_hidden.snap @@ -1,5 +1,6 @@ --- source: tui/src/chatwidget/tests/status_and_layout.rs +assertion_line: 36 expression: normalized_backend_snapshot(terminal.backend()) --- " " @@ -8,6 +9,6 @@ expression: normalized_backend_snapshot(terminal.backend()) " " " voice ● listening f9 mute /voice stop " " " -"› Ask aKode to do anything " +"› Chiedi ad aKode qualsiasi cosa " " " " 127.0.0.1:9 · GPT-5.6-… · …/project ctx 0% · -- t/s " diff --git a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__worktree_browser_delete_confirmation.snap b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__worktree_browser_delete_confirmation.snap index 4ec60438..f636a9f7 100644 --- a/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__worktree_browser_delete_confirmation.snap +++ b/akode-rs/tui/src/chatwidget/snapshots/akode_tui__chatwidget__tests__worktree_browser_delete_confirmation.snap @@ -1,9 +1,10 @@ --- source: tui/src/chatwidget/tests/worktree_picker_tests.rs +assertion_line: 183 expression: "render_bottom_popup(&chat, 80)" --- Delete this worktree? -› As /repo/worktree +› Ch /repo/worktree 12 /s › 1. Cancel diff --git a/akode-rs/tui/src/chatwidget/streaming.rs b/akode-rs/tui/src/chatwidget/streaming.rs index 3c81641d..ff440d67 100644 --- a/akode-rs/tui/src/chatwidget/streaming.rs +++ b/akode-rs/tui/src/chatwidget/streaming.rs @@ -503,6 +503,40 @@ impl ChatWidget { } } + /// aKode: the model is still writing a long tool call; show what and how much + /// in the status row (restored by the next notification of another kind). + pub(super) fn on_tool_call_input_progress( + &mut self, + notification: akode_app_server_protocol::ToolCallInputProgressNotification, + ) { + self.status_state.remember_retry_status_header(); + self.bottom_pane.ensure_status_indicator(); + self.status_state.terminal_title_status_kind = TerminalTitleStatusKind::Thinking; + self.set_status_header(tool_call_progress_header( + ¬ification.tool_name, + notification.target.as_deref(), + notification.tokens, + )); + } + + /// aKode: the local server is queueing the request or reading the prompt. + pub(super) fn on_server_progress( + &mut self, + notification: akode_app_server_protocol::ServerProgressNotification, + ) { + let Some(header) = server_progress_header( + ¬ification.kind, + notification.percent, + notification.eta_s, + notification.ahead, + ) else { + return; + }; + self.status_state.remember_retry_status_header(); + self.bottom_pane.ensure_status_indicator(); + self.set_status_header(header); + } + pub(super) fn on_stream_error(&mut self, message: String, additional_details: Option) { self.status_state.remember_retry_status_header(); self.bottom_pane.ensure_status_indicator(); @@ -837,3 +871,104 @@ impl ChatWidget { false } } + +/// `Scrivo fourier.py · 1.240 token`, or `Preparo exec_command · 830 token` +/// when no file is recognized. +pub(crate) fn tool_call_progress_header(tool_name: &str, target: Option<&str>, tokens: u64) -> String { + let tokens = format_thousands_it(tokens); + match target { + Some(target) => format!("Scrivo {target} · {tokens} token"), + None => format!("Preparo {tool_name} · {tokens} token"), + } +} + +/// Italian thousands separator: 1240 -> "1.240". +fn format_thousands_it(value: u64) -> String { + let digits = value.to_string(); + let mut out = String::with_capacity(digits.len() + digits.len() / 3); + for (index, digit) in digits.chars().enumerate() { + if index > 0 && (digits.len() - index) % 3 == 0 { + out.push('.'); + } + out.push(digit); + } + out +} + +/// `Leggo il prompt · 42% · ~1 min 20 s` / `In coda · 2 richieste davanti · ~40 s`. +pub(crate) fn server_progress_header( + kind: &str, + percent: Option, + eta_s: Option, + ahead: Option, +) -> Option { + let eta = eta_s.filter(|eta| *eta >= 1.0).map(|eta| { + let eta = eta.round() as u64; + if eta >= 60 { + format!(" · ~{} min {} s", eta / 60, eta % 60) + } else { + format!(" · ~{eta} s") + } + }); + let eta = eta.unwrap_or_default(); + match kind { + "prefill" => { + let percent = percent.map(|p| format!(" · {}%", p.clamp(0.0, 100.0).floor() as u64)); + Some(format!("Leggo il prompt{}{eta}", percent.unwrap_or_default())) + } + "queue" => { + let ahead = match ahead { + Some(1) => " · 1 richiesta davanti".to_string(), + Some(n) if n > 1 => format!(" · {n} richieste davanti"), + _ => String::new(), + }; + Some(format!("In coda{ahead}{eta}")) + } + _ => None, + } +} + +#[cfg(test)] +mod server_progress_header_tests { + use super::server_progress_header; + use pretty_assertions::assert_eq; + + #[test] + fn headers() { + assert_eq!( + server_progress_header("prefill", Some(42.7), Some(80.0), None).as_deref(), + Some("Leggo il prompt · 42% · ~1 min 20 s") + ); + assert_eq!( + server_progress_header("queue", None, Some(40.0), Some(2)).as_deref(), + Some("In coda · 2 richieste davanti · ~40 s") + ); + assert_eq!( + server_progress_header("queue", None, Some(0.5), Some(1)).as_deref(), + Some("In coda · 1 richiesta davanti") + ); + assert_eq!(server_progress_header("other", None, None, None), None); + } +} + +#[cfg(test)] +mod tool_call_progress_header_tests { + use super::tool_call_progress_header; + use pretty_assertions::assert_eq; + + #[test] + fn headers() { + assert_eq!( + tool_call_progress_header("apply_patch", Some("sovrapposizione_fourier.py"), 1240), + "Scrivo sovrapposizione_fourier.py · 1.240 token" + ); + assert_eq!( + tool_call_progress_header("exec_command", None, 830), + "Preparo exec_command · 830 token" + ); + assert_eq!( + tool_call_progress_header("x", None, 1_234_567), + "Preparo x · 1.234.567 token" + ); + } +} diff --git a/akode-rs/tui/src/chatwidget/tests/snapshots/akode_tui__chatwidget__tests__questions_tests__questions_cleared_by_follow_up.snap b/akode-rs/tui/src/chatwidget/tests/snapshots/akode_tui__chatwidget__tests__questions_tests__questions_cleared_by_follow_up.snap index ec3c89f1..0d045fae 100644 --- a/akode-rs/tui/src/chatwidget/tests/snapshots/akode_tui__chatwidget__tests__questions_tests__questions_cleared_by_follow_up.snap +++ b/akode-rs/tui/src/chatwidget/tests/snapshots/akode_tui__chatwidget__tests__questions_tests__questions_cleared_by_follow_up.snap @@ -2,4 +2,4 @@ source: tui/src/chatwidget/tests/questions_tests.rs expression: "render_bottom_popup(&chat, 80).lines().next().unwrap()" --- -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa diff --git a/akode-rs/tui/src/chatwidget/tests/snapshots/akode_tui__chatwidget__tests__slash_commands__transcript_copy_success.snap b/akode-rs/tui/src/chatwidget/tests/snapshots/akode_tui__chatwidget__tests__slash_commands__transcript_copy_success.snap index 823d1b67..c22e2f2a 100644 --- a/akode-rs/tui/src/chatwidget/tests/snapshots/akode_tui__chatwidget__tests__slash_commands__transcript_copy_success.snap +++ b/akode-rs/tui/src/chatwidget/tests/snapshots/akode_tui__chatwidget__tests__slash_commands__transcript_copy_success.snap @@ -2,6 +2,6 @@ source: tui/src/chatwidget/tests/slash_commands.rs expression: "render_bottom_popup(&chat, 80)" --- -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa Copied selection to clipboard diff --git a/akode-rs/tui/src/chatwidget/tests/snapshots/akode_tui__chatwidget__tests__slash_commands__transcript_copy_unconfirmed.snap b/akode-rs/tui/src/chatwidget/tests/snapshots/akode_tui__chatwidget__tests__slash_commands__transcript_copy_unconfirmed.snap index ab470806..19b60025 100644 --- a/akode-rs/tui/src/chatwidget/tests/snapshots/akode_tui__chatwidget__tests__slash_commands__transcript_copy_unconfirmed.snap +++ b/akode-rs/tui/src/chatwidget/tests/snapshots/akode_tui__chatwidget__tests__slash_commands__transcript_copy_unconfirmed.snap @@ -2,6 +2,6 @@ source: tui/src/chatwidget/tests/slash_commands.rs expression: "render_bottom_popup(&chat, 80)" --- -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa Copy unconfirmed; /export saves chat diff --git a/akode-rs/tui/src/chatwidget/turn_runtime.rs b/akode-rs/tui/src/chatwidget/turn_runtime.rs index f614c10e..78c13c11 100644 --- a/akode-rs/tui/src/chatwidget/turn_runtime.rs +++ b/akode-rs/tui/src/chatwidget/turn_runtime.rs @@ -513,6 +513,17 @@ impl ChatWidget { if !self.warning_display_state.should_display(&message) { return; } + // aKode: failed tool calls arrive as `✗ tool: reason · riprovo`; show them + // as one compact line instead of a warning block. + if let Some(rest) = message.strip_prefix("✗ ") { + let line = ratatui::text::Line::from(vec![ + ratatui::style::Stylize::red("✗ "), + ratatui::style::Stylize::dim(rest.to_string()), + ]); + self.add_plain_history_lines(vec![line]); + self.request_redraw(); + return; + } self.add_to_history(history_cell::new_warning_event(message)); self.request_redraw(); } diff --git a/akode-rs/tui/src/custom_terminal.rs b/akode-rs/tui/src/custom_terminal.rs index 222416e1..359bd191 100644 --- a/akode-rs/tui/src/custom_terminal.rs +++ b/akode-rs/tui/src/custom_terminal.rs @@ -1190,7 +1190,7 @@ mod tests { Line::from(vec![ "›".bold(), " ".into(), - "Ask aKode to do anything".dim(), + "Chiedi ad aKode qualsiasi cosa".dim(), ]), ]) .render(frame.area(), frame.buffer_mut()); @@ -1213,7 +1213,7 @@ mod tests { - › Ask aKode to do anything + › Chiedi ad aKode qualsiasi cosa "); } diff --git a/akode-rs/tui/src/history_cell/session.rs b/akode-rs/tui/src/history_cell/session.rs index ffa51129..95cb3495 100644 --- a/akode-rs/tui/src/history_cell/session.rs +++ b/akode-rs/tui/src/history_cell/session.rs @@ -183,34 +183,34 @@ pub(crate) fn new_session_info( if is_first_event && local_settings.tui.show_tooltips { // Help lines below the header (new copy and list) let help_lines: Vec> = vec![ - " To get started, describe a task or try one of these commands:" + " Per iniziare descrivi un compito o prova uno di questi comandi:" .dim() .into(), Line::from(""), Line::from(vec![ " ".into(), "/init".into(), - " - create an AGENTS.md file with instructions for aKode".dim(), + " - crea un file AGENTS.md con le istruzioni per aKode".dim(), ]), Line::from(vec![ " ".into(), "/status".into(), - " - show current session configuration".dim(), + " - mostra la configurazione della sessione".dim(), ]), Line::from(vec![ " ".into(), "/permissions".into(), - " - choose what aKode is allowed to do".dim(), + " - scegli cosa può fare aKode".dim(), ]), Line::from(vec![ " ".into(), "/model".into(), - " - choose what model and reasoning effort to use".dim(), + " - scegli il modello e lo sforzo di ragionamento".dim(), ]), Line::from(vec![ " ".into(), "/review".into(), - " - review any changes and find issues".dim(), + " - rivedi le modifiche e trova i problemi".dim(), ]), ]; diff --git a/akode-rs/tui/src/history_cell/tests.rs b/akode-rs/tui/src/history_cell/tests.rs index 939c3dca..9e6d4886 100644 --- a/akode-rs/tui/src/history_cell/tests.rs +++ b/akode-rs/tui/src/history_cell/tests.rs @@ -866,7 +866,7 @@ async fn session_info_first_event_respects_tooltip_preference() { ); let rendered = render_transcript(&cell).join("\n"); - assert_eq!(rendered.contains("To get started"), show_tooltips); + assert_eq!(rendered.contains("Per iniziare"), show_tooltips); assert!(!rendered.contains("Model just became available")); assert!(!rendered.contains("model changed:")); } diff --git a/akode-rs/tui/src/keymap_setup.rs b/akode-rs/tui/src/keymap_setup.rs index 19f3f93e..a2f9f73a 100644 --- a/akode-rs/tui/src/keymap_setup.rs +++ b/akode-rs/tui/src/keymap_setup.rs @@ -853,7 +853,7 @@ mod tests { frame_requester: FrameRequester::test_dummy(), has_input_focus: true, enhanced_keys_supported: false, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: false, effects: Default::default(), diff --git a/akode-rs/tui/src/projectless.rs b/akode-rs/tui/src/projectless.rs index ae7c34a6..9d339d0f 100644 --- a/akode-rs/tui/src/projectless.rs +++ b/akode-rs/tui/src/projectless.rs @@ -90,9 +90,20 @@ pub(crate) fn apply_defaults( applied.prompt_windows_sandbox = true; return applied; } + // aKode 0.9.1: workspace-write with network through the managed proxy allowlist + // (package registries), falling back to the network-less profile when policy + // requirements do not allow it. + let workspace_profile = crate::legacy_core::config::akode_default_workspace_profile(); + let workspace_profile = if config + .is_permission_profile_allowed(BUILT_IN_PERMISSION_PROFILE_WORKSPACE, &workspace_profile) + { + workspace_profile + } else { + PermissionProfile::workspace_write() + }; if config .permissions - .set_permission_profile(PermissionProfile::workspace_write()) + .set_permission_profile(workspace_profile) .is_err() { return applied; diff --git a/akode-rs/tui/src/snapshots/akode_tui__app__tests__replace_goal_confirmation.snap b/akode-rs/tui/src/snapshots/akode_tui__app__tests__replace_goal_confirmation.snap index 5c9d38f9..c559d27a 100644 --- a/akode-rs/tui/src/snapshots/akode_tui__app__tests__replace_goal_confirmation.snap +++ b/akode-rs/tui/src/snapshots/akode_tui__app__tests__replace_goal_confirmation.snap @@ -1,9 +1,10 @@ --- source: tui/src/app/tests.rs +assertion_line: 8927 expression: "render_bottom_popup(&app.chat_widget, 80)" --- Replace goal? -› As New objective: New goal +› Ch New objective: New goal 12 /s › 1. Replace current goal Set the new objective and start it now diff --git a/akode-rs/tui/src/snapshots/akode_tui__app__tests__selected_unloaded_subagent_V1.snap b/akode-rs/tui/src/snapshots/akode_tui__app__tests__selected_unloaded_subagent_V1.snap index 4a352457..ee23e748 100644 --- a/akode-rs/tui/src/snapshots/akode_tui__app__tests__selected_unloaded_subagent_V1.snap +++ b/akode-rs/tui/src/snapshots/akode_tui__app__tests__selected_unloaded_subagent_V1.snap @@ -2,6 +2,6 @@ source: tui/src/app/tests.rs expression: "normalize_snapshot_paths(render_bottom_popup(&app.chat_widget, 80))" --- -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa 127.0.0.1:9 · GPT-6.1-Sol · /tmp/project ctx 0% · -- t/s diff --git a/akode-rs/tui/src/snapshots/akode_tui__app_server_session__tests__resumed_plan_mode.snap b/akode-rs/tui/src/snapshots/akode_tui__app_server_session__tests__resumed_plan_mode.snap index f02ebc59..922aa569 100644 --- a/akode-rs/tui/src/snapshots/akode_tui__app_server_session__tests__resumed_plan_mode.snap +++ b/akode-rs/tui/src/snapshots/akode_tui__app_server_session__tests__resumed_plan_mode.snap @@ -2,7 +2,7 @@ source: tui/src/app_server_session.rs expression: "crate::chatwidget::tests::helpers::normalize_snapshot_paths(crate::chatwidget::tests::helpers::render_bottom_popup(&chat,\n40),)" --- -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa ctx 0% · -- t/s ⏸ plan mode attivo (shift+tab per camb diff --git a/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__startup_draft_fresh_session_transitions.snap b/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__startup_draft_fresh_session_transitions.snap index 1f8d4a70..8948e289 100644 --- a/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__startup_draft_fresh_session_transitions.snap +++ b/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__startup_draft_fresh_session_transitions.snap @@ -1,5 +1,6 @@ --- source: tui/src/startup_draft_tests.rs +assertion_line: 287 expression: "snapshots.join(\"\\n---\\n\")" --- resume lookup fallback: @@ -61,9 +62,9 @@ after: ██▀████▀██ -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts + ? per le scorciatoie --- fork picker cancellation: before: @@ -76,6 +77,6 @@ after: ██▀████▀██ -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts + ? per le scorciatoie diff --git a/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__startup_draft_full_frames.snap b/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__startup_draft_full_frames.snap index fab33605..857036d3 100644 --- a/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__startup_draft_full_frames.snap +++ b/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__startup_draft_full_frames.snap @@ -11,9 +11,9 @@ empty (48 columns): ██▀████▀██ -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts + ? per le scorciatoie --- configured (48 columns): @@ -23,9 +23,9 @@ configured (48 columns): ██▀████▀██ -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts + ? per le scorciatoie --- resuming (48 columns): @@ -35,9 +35,9 @@ resuming (48 columns): ██▀████▀██ Resuming session… -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts + ? per le scorciatoie --- forking (48 columns): diff --git a/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__startup_draft_onboarding_transition.snap b/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__startup_draft_onboarding_transition.snap index e5edd22f..7b84d68e 100644 --- a/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__startup_draft_onboarding_transition.snap +++ b/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__startup_draft_onboarding_transition.snap @@ -1,5 +1,6 @@ --- source: tui/src/startup_draft_tests.rs +assertion_line: 808 expression: frames --- before onboarding: hidden (0x0 viewport) @@ -12,6 +13,6 @@ after onboarding: ██▀████▀██ -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts + ? per le scorciatoie diff --git a/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__terminal_app_ssh_startup.snap b/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__terminal_app_ssh_startup.snap index 96225a10..038b7b3b 100644 --- a/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__terminal_app_ssh_startup.snap +++ b/akode-rs/tui/src/snapshots/akode_tui__startup_draft__tests__terminal_app_ssh_startup.snap @@ -1,5 +1,6 @@ --- source: tui/src/startup_draft_tests.rs +assertion_line: 196 expression: "frames.join(\"\\n---\\n\").replace(crate::version::AKODE_CLI_VERSION, \"\")" --- terminal_app_over_ssh=false, owned=true @@ -16,9 +17,9 @@ terminal_app_over_ssh=false, owned=true -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts + ? per le scorciatoie --- terminal_app_over_ssh=true, owned=false @@ -28,6 +29,6 @@ terminal_app_over_ssh=true, owned=false ██▀████▀██ -› Ask aKode to do anything +› Chiedi ad aKode qualsiasi cosa - ? for shortcuts + ? per le scorciatoie diff --git a/akode-rs/tui/src/startup_draft.rs b/akode-rs/tui/src/startup_draft.rs index 41206c78..30e9727c 100644 --- a/akode-rs/tui/src/startup_draft.rs +++ b/akode-rs/tui/src/startup_draft.rs @@ -515,7 +515,7 @@ fn startup_draft_bottom_pane( frame_requester, has_input_focus: true, enhanced_keys_supported, - placeholder_text: "Ask aKode to do anything".to_string(), + placeholder_text: "Chiedi ad aKode qualsiasi cosa".to_string(), disable_paste_burst: false, animations_enabled: crate::system_motion::mode() == crate::motion::MotionMode::Animated, effects: Default::default(), diff --git a/akode-rs/tui/src/tui/windows_key_sequence_tests.rs b/akode-rs/tui/src/tui/windows_key_sequence_tests.rs index 4e8ef857..4cf91f55 100644 --- a/akode-rs/tui/src/tui/windows_key_sequence_tests.rs +++ b/akode-rs/tui/src/tui/windows_key_sequence_tests.rs @@ -209,7 +209,7 @@ async fn mapped_shift_enter_renders_newlines_in_the_composer() { /*has_input_focus*/ true, AppEventSender::new(tx), /*enhanced_keys_supported*/ false, - "Ask aKode to do anything".to_string(), + "Chiedi ad aKode qualsiasi cosa".to_string(), /*disable_paste_burst*/ true, ); for event in decoded(keys("first line\u{1b}[13;2u\u{1b}[13;2usecond line [13;2u")).await {