feat: pin sessions to workspace revisions

This commit is contained in:
2026-08-04 04:52:06 +02:00
parent 2573d87a0e
commit 90894176b6
13 changed files with 313 additions and 80 deletions
+3
View File
@@ -175,6 +175,8 @@ def new_cmd(
provider: str = typer.Option(None, "--provider", help="Provider LLM (es. zai, anthropic)."),
model: str = typer.Option(None, "--model", help="Modello LLM (es. glm-5.2)."),
thinking: str = typer.Option(None, "--thinking", help="Livello di thinking (es. medium)."),
workspace_id: str = typer.Option(None, "--workspace-id", help="Workspace canonico risolto dal backend."),
workspace_revision: str = typer.Option(None, "--workspace-revision", help="Commit immutabile del workspace."),
name: str = typer.Option(None, "--name", help="Nome descrittivo della sessione."),
json_out: bool = typer.Option(False, "--json", help="Emetti JSON puro {\"id\": ...} su stdout."),
config: Path = CONFIG_OPT,
@@ -185,6 +187,7 @@ def new_cmd(
cfg = _load_config_or_exit(config)
manifest = new_session_manifest(question, cfg.database,
provider=provider, model=model, thinking=thinking,
workspace_id=workspace_id, workspace_revision=workspace_revision,
name=name or _extract_name(question))
repository = session_repository(cfg)
repository.create(manifest)