aKode 0.5.0: riepilogo della memoria a inizio sessione, sollecito alle azioni annunciate, daemon allineato al CLI

- ext/memoria: legge una volta per sessione la risorsa memoria://briefing
  (file di git status, budget di token, timeout breve), accetta solo un
  blocco <memoria_briefing> chiuso e limitato, lo inserisce dopo le istruzioni
  del plugin e lo tiene in cache per il thread (prefisso del prompt stabile).
  Impostazioni [memoria] briefing, briefing_timeout_ms, briefing_max_tokens.
- Turno: se il modello chiude con un messaggio che annuncia un'azione senza
  chiamare strumenti, un solo sollecito per turno ([agent] announce_nudges,
  predefinito 1, 0 lo disattiva), con avviso visibile e test sui messaggi
  osservati con Qwen.
- Daemon: sync_with_cli confronta l'eseguibile del CLI con il pacchetto del
  daemon e, se diverso, lo seleziona e riavvia solo quando non ci sono
  sessioni caricate; altrimenti avviso. Usato all'avvio della TUI, da
  `akode update`, da install.sh e da `akode app-server daemon update
  --from-cli --if-idle`. Prima un daemon preparato una volta restava alla
  versione vecchia (CLI 0.4.0 con app server 0.3.1).
- Test: snapshot del doctor indipendenti dalla versione; snapshot della TUI
  aggiornati alla 0.5.0 e allo schema dei tool appiattiti della 0.4.0.
- Versione 0.5.0 e sezione Novità nel README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-14 21:49:51 +01:00
parent 546bd1da18
commit 95f4ddcd72
52 changed files with 1267 additions and 224 deletions

View File

@@ -10,7 +10,7 @@ expression: "render_bottom_popup(&app.chat_widget,\nwidth).replace(r\"C:\\cli-bu
│
Update daemon and exit aKode?
Use this CLI package v0.3.1 from /x/cli-build/bin/akode. Copy the
Use this CLI package v0.5.0 from /x/cli-build/bin/akode. Copy the
complete package and pin it against automatic updates.
This may restart the daemon and interrupt active or queued work.
Codex exits to update in this terminal. Relaunch it afterward.

View File

@@ -4,7 +4,7 @@ expression: "format!(\"enabled:\\n{}\\n---\\ndisabled:\\n{}\", text(after), text
---
enabled:
▄▄████▄▄ aKode v0.3.1
▄▄████▄▄ aKode v0.5.0
██▀▀██▀▀██ GPT-5.6-Sol · mock
██▄▄██▄▄██ /tmp/project
██▀████▀██
@@ -50,7 +50,7 @@ enabled:
---
disabled:
▄▄████▄▄ aKode v0.3.1
▄▄████▄▄ aKode v0.5.0
██▀▀██▀▀██ GPT-5.6-Sol · mock
██▄▄██▄▄██ /tmp/project
██▀████▀██

View File

@@ -3,7 +3,7 @@ source: tui/src/app/tests.rs
expression: rendered
---
▄▄████▄▄ aKode v0.3.1
▄▄████▄▄ aKode v0.5.0
██▀▀██▀▀██ gpt-test · mock
██▄▄██▄▄██ <thread cwd>
██▀████▀██

View File

@@ -3,7 +3,7 @@ source: tui/src/app/tests/realtime_requests.rs
expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)"
---
▄▄████▄▄ aKode v0.3.1
▄▄████▄▄ aKode v0.5.0
██▀▀██▀▀██ gpt-test · mock
██▄▄██▄▄██ /tmp/project
██▀████▀██

View File

@@ -3,7 +3,7 @@ source: tui/src/app/tests/realtime_requests.rs
expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)"
---
▄▄████▄▄ aKode v0.3.1
▄▄████▄▄ aKode v0.5.0
██▀▀██▀▀██ gpt-test · mock
██▄▄██▄▄██ /tmp/project
██▀████▀██

View File

@@ -14,7 +14,7 @@ Restored owner:
127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s
▄▄████▄▄ aKode v0.3.1
▄▄████▄▄ aKode v0.5.0
██▀▀██▀▀██ gpt-test · mock
██▄▄██▄▄██ /tmp/project
██▀████▀██

View File

@@ -3,7 +3,7 @@ source: tui/src/app/tests/realtime_requests.rs
expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)"
---
▄▄████▄▄ aKode v0.3.1
▄▄████▄▄ aKode v0.5.0
██▀▀██▀▀██ gpt-test · mock
██▄▄██▄▄██ /tmp/project
██▀████▀██

View File

@@ -2,7 +2,7 @@
source: tui/src/app/tests/new_session_tests.rs
expression: "normalize_snapshot_paths(render_bottom_popup(&app.chat_widget, 80))"
---
▄▄████▄▄ aKode v0.3.1
▄▄████▄▄ aKode v0.5.0
██▀▀██▀▀██ loading · mock
██▄▄██▄▄██ /tmp/project
██▀████▀██

View File

@@ -4,7 +4,7 @@ expression: "normalize_snapshot_paths(normalize_agent_center_snapshot(snapshots.
---
80 columns
▄▄████▄▄ aKode v0.3.1
▄▄████▄▄ aKode v0.5.0
██▀▀██▀▀██ gpt-test · mock
██▄▄██▄▄██ /tmp/project
██▀████▀██
@@ -26,7 +26,7 @@ expression: "normalize_snapshot_paths(normalize_agent_center_snapshot(snapshots.
32 columns
▄▄████▄▄ aKode v0.3.1
▄▄████▄▄ aKode v0.5.0
██▀▀██▀▀██ gpt-test · mock
██▄▄██▄▄██ /tmp/project
██▀████▀██

View File

@@ -3,7 +3,7 @@ source: tui/src/history_cell/tests.rs
expression: rendered
---
▄▄████▄▄ aKode v0.3.1
▄▄████▄▄ aKode v0.5.0
██▀▀██▀▀██ gpt-5 · mock
██▄▄██▄▄██ /tmp/project
██▀████▀██

View File

@@ -7,7 +7,7 @@ expression: rendered
Scegli i colori; potrai cambiarli con /theme.
1. Automatico │ ▄▄████▄▄ aKode v0.3.1
1. Automatico │ ▄▄████▄▄ aKode v0.5.0
2. Scuro │ ██▀▀██▀▀██ qwen3.6-35b-a3b
3. Chiaro │ ██▄▄██▄▄██ ~/progetto
4. Alto contrasto │ ██▀████▀██

View File

@@ -7,7 +7,7 @@ expression: rendered
Scegli i colori; potrai cambiarli con /theme.
1. Automatico │ ▄▄████▄▄ aKode v0.3.1
1. Automatico │ ▄▄████▄▄ aKode v0.5.0
2. Scuro │ ██▀▀██▀▀██ qwen3.6-35b-a3b
3. Chiaro │ ██▄▄██▄▄██ ~/progetto
4. Alto contrasto │ ██▀████▀██

View File

@@ -1,6 +1,5 @@
---
source: tui/src/managed_worktree_model_tests.rs
assertion_line: 264
expression: "context_snapshot::format_context_snapshot(\"Model request history for creating, polling and listing a task-attached checkout, then renaming another task through MCP. Separate assertions verify retained cwd/environment roots, not sandbox enforcement.\",\n&entries,\n&ContextSnapshotOptions::default().rewrite_known_segments().include_request_settings(),)"
---
Scenario: Model request history for creating, polling and listing a task-attached checkout, then renaming another task through MCP. Separate assertions verify retained cwd/environment roots, not sandbox enforcement.
@@ -15,20 +14,7 @@ Settings:
store: false
stream: true
tool_choice: "auto"
tools (1; hash=15eb2d52053e3a44):
- namespace/mcp__codex_tui: Tools in the mcp__codex_tui namespace.; hash=cb0a288754c9546e
- function/create_thread
- function/create_worktree
- function/fork_thread
- function/get_worktree_creation_status
- function/list_archived_threads
- function/list_threads
- function/list_worktrees
- function/read_thread
- function/send_message_to_thread
- function/set_thread_archived
- function/set_thread_title
- function/wait_threads
tools (0; hash=09612b07b5ecb5a5):
-- request 1 (request) --
00:message/developer:
<MODEL_INSTRUCTIONS>
@@ -40,7 +26,7 @@ Settings:
03:message/user:
Run create_worktree.
-- request 2 (request) --
04:function_call/mcp__codex_tui.create_worktree:{"allowAsync":true}
04:function_call/mcp__codex_tui__create_worktree:{"allowAsync":true}
05:function_call_output:Wall time: <DURATION> seconds
Output: | {"type":"pending","operationId":"<UUID 1>","message":"Creation is running. Poll status; do not repeat creation. Work on independent tasks while waiting."}
-- request 3 (request) --
@@ -49,7 +35,7 @@ Settings:
07:message/user:
Run get_worktree_creation_status.
-- request 4 (request) --
08:function_call/mcp__codex_tui.get_worktree_creation_status:{"operationId":"<UUID 1>"}
08:function_call/mcp__codex_tui__get_worktree_creation_status:{"operationId":"<UUID 1>"}
09:function_call_output:Wall time: <DURATION> seconds
Output: | {"type":"created","worktree":{"root":"<WORKTREE>","workspaceRoot":"<WORKTREE>/","sourceCwd":"<SOURCE>"},...citly and request filesystem permissions if needed."} [hash=b855a2f161fd3a36]
-- request 5 (request) --
@@ -58,7 +44,7 @@ Settings:
11:message/user:
Run list_worktrees.
-- request 6 (request) --
12:function_call/mcp__codex_tui.list_worktrees:{}
12:function_call/mcp__codex_tui__list_worktrees:{}
13:function_call_output:Wall time: <DURATION> seconds
Output: | {"data":[{"id":"<UUID 2>","type":"worktree","root":"<WORKTREE>","workspaceRoot":"<WORKTREE>/","sourceCwd":"<SOURCE>"}],"nextCursor":null}
-- request 7 (request) --
@@ -67,6 +53,6 @@ Settings:
15:message/user:
Run set_thread_title.
-- request 8 (request) --
16:function_call/mcp__codex_tui.set_thread_title:{"threadId":"<UUID 3>","title":"Checkout preparation"}
16:function_call/mcp__codex_tui__set_thread_title:{"threadId":"<UUID 3>","title":"Checkout preparation"}
17:function_call_output:Wall time: <DURATION> seconds
Output: | {"threadId":"<UUID 3>","title":"Checkout preparation"}

View File

@@ -515,6 +515,27 @@ pub(super) async fn run_main_inner(
daemon_exclusion = Some(daemon_startup::WSL_DRVFS_EXCLUSION);
}
let mut managed_daemon = false;
// A new CLI must not keep talking to the daemon package of an older one: replace it when
// no session is loaded, otherwise warn (see akode_app_server_daemon::cli_sync).
let mut cli_sync_warning = None;
if auto_start_daemon && daemon_exclusion.is_none() {
match startup_draft
.run_until(akode_app_server_daemon::sync_with_cli())
.await?
{
Ok(sync) => {
if !matches!(
sync,
akode_app_server_daemon::CliSync::UpToDate
| akode_app_server_daemon::CliSync::NotInstalled
) {
tracing::info!(?sync, "app-server daemon package compared with the CLI");
}
cli_sync_warning = sync.warning();
}
Err(err) => tracing::warn!("cannot compare the app-server daemon with the CLI: {err:#}"),
}
}
if auto_start_daemon && daemon_exclusion.is_none() {
let output = startup_draft
.run_until(async {
@@ -568,6 +589,7 @@ pub(super) async fn run_main_inner(
let daemon_startup_warning = elevated_warning
.map(str::to_string)
.or(compatibility_warning)
.or(cli_sync_warning)
.or_else(|| {
daemon_exclusion
.filter(|_| auto_start_daemon)

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex (reasoning none, summaries auto)
Directory: [[workspace]]

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex (reasoning none, summaries auto)
Directory: [[workspace]]

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
Directory: [[workspace]]

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
Directory: [[workspace]]

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex-max (reasoning high, summaries detailed)
Directory: [[workspace]]

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Server: Local background server

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Server: unix:///tmp/codex-home/app-server-control/app-server-
control.sock (v0.133.0)

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
Directory: [[workspace]]

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
Directory: [[workspace]]

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
Directory: [[workspace]]

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
Directory: [[workspace]]

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
Directory: [[workspace]]

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: ガパガパガパガ
パ-model (reasoning

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex-max (reasoning high, summaries
detailed)

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex-max (reasoning medium, summaries auto)
Directory: [[workspace]]

View File

@@ -4,7 +4,7 @@ expression: sanitized
---
/status
>_ aKode (v0.3.1)
>_ aKode (v0.5.0)
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
Directory: [[workspace]]