feat(tui): unify session history and context

This commit is contained in:
Xubin Ren
2026-08-17 20:56:10 +08:00
parent b3c3a82075
commit 6301c0ab57
24 changed files with 880 additions and 84 deletions
+3 -1
View File
@@ -48,7 +48,7 @@ console = Console()
def agent(
message: str | None = typer.Option(None, "--message", "-m", help="Message to send to the agent"),
session_id: str = typer.Option("cli:direct", "--session", "-s", help="Session ID"),
session_id: str | None = typer.Option(None, "--session", "-s", help="Session ID"),
workspace: str | None = typer.Option(None, "--workspace", "-w", help="Workspace directory"),
config: str | None = typer.Option(None, "--config", "-c", help="Path to config file"),
markdown: bool = typer.Option(
@@ -111,6 +111,8 @@ def agent(
raise typer.Exit(exit_code)
return
session_id = session_id or "cli:direct"
try:
provider = make_provider(runtime_config)
except ValueError as exc: