Commit Graph
3451 Commits
Author SHA1 Message Date
Mario Zechner f2f79dab9a chore(coding-agent): remove dead main-package-command.ts (replaced by package-manager-cli.ts) 2026-04-03 20:15:40 +02:00
Mario Zechner 9f9277ccdd refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime
- Replace AgentSessionRuntimeHost and bootstrap abstractions with AgentSessionRuntime
- Runtime creation is now closure-based via CreateAgentSessionRuntimeFactory
- Factory closes over process-global fixed inputs, recreates cwd-bound services per effective cwd
- Session config (model, thinking, tools, scoped models) re-resolved per target cwd
- CLI resource paths resolved once at startup as absolute paths
- Swap lifecycle: teardown old, create next, apply next (hard fail on creation error)
- Unified diagnostics model (info/warning/error) for args, services, session resolution, resources
- No logging or process exits inside creation/parsing logic
- Removed session_directory support
- Removed session_switch and session_fork extension events (use session_start with reason)
- Moved package/config CLI to package-manager-cli.ts
- Fixed theme init for --resume session picker
- Fixed flaky reftable footer test (content-based polling)
- Fixed silent drop of unknown single-dash CLI flags
- Added error diagnostics for missing explicit CLI resource paths
- Updated SDK docs, examples, plans, exports, tests, changelog

fixes #2753
2026-04-03 20:14:12 +02:00
Mario Zechner 042066b982 docs: refine OSS weekend banner messaging 2026-04-02 11:17:42 +02:00
Mario Zechner 71f3e50a16 fix: update OSS weekend gating and messaging 2026-04-02 11:15:19 +02:00
Mario Zechner 617f1870f8 fix(coding-agent): reuse initial resource loader on startup closes #2766 2026-04-02 11:06:08 +02:00
github-actions[bot] 8ccd3c55c1 chore: approve contributor andresvi94 2026-04-02 09:00:46 +00:00
Mario Zechner 2f8019b610 fix(ai): emit missing responses toolcall delta closes #2745 2026-04-02 01:39:32 +02:00
Mario Zechner af12464217 fix(tui): avoid overlay scrollback inflation on widen 2026-04-02 01:31:09 +02:00
Mario Zechner 39b1bf7b62 fix(ai): detect anthropic request_too_large overflow closes #2734 2026-04-01 23:51:27 +02:00
Mario Zechner d98b563165 docs: add switchSession to ExtensionCommandContext in extensions.md
fixes #2735
2026-04-01 23:51:22 +02:00
Mario Zechner e2f29b0523 add(coding-agent): add defineTool helper closes #2746 2026-04-01 23:07:14 +02:00
Mario Zechner 746f770b10 test(coding-agent): add session lifecycle characterization suite 2026-04-01 22:59:49 +02:00
Mario Zechner 957f21cea8 test(coding-agent): add queue characterization coverage 2026-04-01 14:31:02 +02:00
Mario Zechner 09e9de5749 fix(tui): stop heading underline leaking into padding 2026-03-31 22:40:20 +02:00
Mario Zechner a1e107897d fix(tui): await async slash command completions closes #2719 2026-03-31 14:41:50 +02:00
Mario Zechner 5ce0d15b66 fix(coding-agent): resolve theme export variables closes #2707 2026-03-31 14:41:50 +02:00
Kao FélixandGitHub 758ede4da0 Enable tool streaming for newer Z.ai models (#2732) 2026-03-31 14:28:24 +02:00
Mario Zechner d86122cbd3 refactor(coding-agent): add runtime host for session switching closes #2024 2026-03-31 13:49:57 +02:00
xu0o0andGitHub a3bf1eb399 fix(ai): fix bedrock throttling misidentification (#2699)
- Add NON_OVERFLOW_PATTERNS to explicitly exclude known non-overflow errors
- Consolidate Cerebras 400/413 no-body check into OVERFLOW_PATTERNS
- Format Bedrock errors as ${error.name}: ${error.message} for pattern matching
2026-03-30 17:26:03 +02:00
warrenandGitHub 0c64c1ce07 docs(coding-agent): clarify /tree active branch ordering (#2695) 2026-03-30 17:07:31 +02:00
Mario Zechner dab6c7e312 docs(coding-agent): add changelog entry for #2691 2026-03-30 16:05:35 +02:00
warrenandGitHub 84d2b51a2e feat(coding-agent): add label timestamps to the session tree (#2691) 2026-03-30 15:56:37 +02:00
Mario Zechner 21863d4ec7 fix(coding-agent): wait for retried runs to settle 2026-03-30 15:51:59 +02:00
Mario Zechner 9022a5b5ea fix(agent): await subscribed event handlers 2026-03-30 14:13:30 +02:00
Mario Zechner cbe1a8b732 fix(agent): simplify state API and update consumers fixes #2633 2026-03-30 12:43:34 +02:00
Mario Zechner 5e3852fc9c Add [Unreleased] section for next cycle 2026-03-29 21:57:00 +02:00
Mario Zechner d0404a4593 Release v0.64.0 v0.64.0 2026-03-29 21:56:13 +02:00
Mario Zechner 8c64058809 fix(tui): normalize keypad functional keys closes #2650 2026-03-29 21:53:31 +02:00
Mario Zechner 86d9220dfe Updated fast-xml-builder dependency, bedrock sdk is bad. 2026-03-29 21:39:23 +02:00
Mario Zechner f1929c825b docs(coding-agent): add hidden thinking label to New Features section 2026-03-29 21:34:25 +02:00
Mario Zechner de022ceba7 feat(coding-agent): add hidden thinking label api closes #2673 2026-03-29 21:33:15 +02:00
Mario Zechner 9508eea9ec docs(coding-agent): audit and fix changelog entries since v0.63.2 2026-03-29 21:25:45 +02:00
Mario Zechner 65b8319134 chore: remove VS Code workspace file 2026-03-29 21:13:15 +02:00
Mario Zechner 182ebe5a95 docs: add changelog entries for faux provider and ModelRegistry 2026-03-29 21:10:36 +02:00
Mario Zechner 350d17d1f3 Merge branch 'main' of https://github.com/badlogic/pi-mono 2026-03-29 21:09:04 +02:00
Mario Zechner ef6af5ebbd feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
Mario Zechner b5f425ad15 feat(agent,coding-agent): add prepareArguments hook for pre-validation argument preparation
Add AgentTool.prepareArguments and ToolDefinition.prepareArguments hook
that runs before schema validation in the agent loop. This lets tools
silently accept legacy argument shapes from resumed old sessions without
polluting the public schema.

The built-in edit tool uses this to fold legacy top-level oldText/newText
into edits[] when resuming sessions that predate the edits-only schema.

- AgentTool/ToolDefinition: typed prepareArguments returning Static<TParameters>
- agent-loop: prepareToolCallArguments() runs before validateToolArguments()
- edit tool: prepareEditArguments folds legacy fields, validateEditInput is strict
- Documented in extensions.md with edit-tool example
2026-03-29 21:06:22 +02:00
Mario Zechner fa890e3f94 docs: update AGENTS instructions 2026-03-29 19:38:48 +02:00
Mario Zechner 7e1dd8880c fix(coding-agent): restore extension input source semantics 2026-03-29 19:28:04 +02:00
Duncan OgilvieandGitHub 1ee0d28d7b fix(coding-agent): properly queue extension messages (#2674) 2026-03-29 19:23:40 +02:00
FeroandGitHub 170c66072d fix(monorepo): resolve pi-ai subpaths to source files (#2625) 2026-03-29 17:27:27 +02:00
warrenandGitHub e6a302b935 docs(coding-agent): clarify repeated compaction boundary behavior (#2662) 2026-03-29 17:03:56 +02:00
Mario Zechner 49c0d860a4 fix(tui): stop swallowing escape during cell size detection closes #2661 2026-03-29 13:22:23 +02:00
Mario Zechner 567249e8b4 Add [Unreleased] section for next cycle 2026-03-29 13:14:04 +02:00
Mario Zechner 41039e8de7 Release v0.63.2 v0.63.2 2026-03-29 13:14:04 +02:00
warrenandGitHub 77d8700b21 docs(coding-agent): clarify sandbox example alternative to bash override (#2663) 2026-03-29 13:10:19 +02:00
Mario Zechner fdfe6226aa docs(coding-agent): audit unreleased changelog entries closes #2639 2026-03-29 13:09:04 +02:00
Mario Zechner 0f9db44aff fix(coding-agent): avoid full redraw on large edit results closes #2664 2026-03-29 13:00:46 +02:00
Mario Zechner 7d4faa080d fix: expose abort signal to extensions closes #2660 2026-03-28 22:25:06 +01:00
Mario Zechner e773527b3a fix(coding-agent): simplify edit tool input closes #2639 2026-03-28 22:10:34 +01:00