@draht/coding-agent 2026.4.5 → 2026.4.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +792 -625
- package/README.md +24 -15
- package/dist/cli/args.d.ts +7 -10
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +44 -46
- package/dist/cli/args.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -0
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +18 -0
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +53 -106
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +116 -147
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +86 -0
- package/dist/core/agent-session-services.d.ts.map +1 -0
- package/dist/core/agent-session-services.js +116 -0
- package/dist/core/agent-session-services.js.map +1 -0
- package/dist/core/agent-session.d.ts +8 -12
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +134 -45
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/bash-executor.d.ts.map +1 -1
- package/dist/core/bash-executor.js +19 -7
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +1 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +18 -17
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +7 -7
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +1 -0
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +4 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +15 -14
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +2 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/keybindings.d.ts +14 -1
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +13 -14
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +31 -1
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/package-manager.d.ts +21 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +108 -43
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/prompt-templates.d.ts.map +1 -1
- package/dist/core/prompt-templates.js +22 -21
- package/dist/core/prompt-templates.js.map +1 -1
- package/dist/core/resource-loader.d.ts +0 -2
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +26 -8
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/sdk.d.ts +2 -2
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +2 -2
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-cwd.d.ts +19 -0
- package/dist/core/session-cwd.d.ts.map +1 -0
- package/dist/core/session-cwd.js +38 -0
- package/dist/core/session-cwd.js.map +1 -0
- package/dist/core/session-manager.d.ts +5 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +16 -8
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-manager.d.ts +6 -4
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +5 -1
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/skills.d.ts +1 -1
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +3 -3
- package/dist/core/skills.js.map +1 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +6 -6
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/timings.d.ts +1 -0
- package/dist/core/timings.d.ts.map +1 -1
- package/dist/core/timings.js +6 -0
- package/dist/core/timings.js.map +1 -1
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +19 -9
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts +23 -1
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +150 -57
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/edit.d.ts +13 -11
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +55 -77
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/file-mutation-queue.d.ts.map +1 -1
- package/dist/core/tools/file-mutation-queue.js +4 -4
- package/dist/core/tools/file-mutation-queue.js.map +1 -1
- package/dist/core/tools/index.d.ts +9 -6
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -1
- package/dist/core/tools/tool-definition-wrapper.js +2 -0
- package/dist/core/tools/tool-definition-wrapper.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +252 -451
- package/dist/main.js.map +1 -1
- package/dist/migrations.d.ts +3 -3
- package/dist/migrations.d.ts.map +1 -1
- package/dist/migrations.js +25 -5
- package/dist/migrations.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts +3 -1
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +14 -3
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/earendil-announcement.d.ts +5 -0
- package/dist/modes/interactive/components/earendil-announcement.d.ts.map +1 -0
- package/dist/modes/interactive/components/earendil-announcement.js +40 -0
- package/dist/modes/interactive/components/earendil-announcement.js.map +1 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +1 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.js +1 -0
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +0 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +2 -7
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector.d.ts +4 -2
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector.js +48 -15
- package/dist/modes/interactive/components/tree-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +12 -3
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +237 -125
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/dark.json +8 -5
- package/dist/modes/interactive/theme/light.json +8 -5
- package/dist/modes/interactive/theme/theme-schema.json +6 -1
- package/dist/modes/interactive/theme/theme.d.ts +2 -2
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +13 -1
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/print-mode.d.ts +4 -4
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +6 -2
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +1 -0
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts +2 -2
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +26 -15
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/package-manager-cli.d.ts +4 -0
- package/dist/package-manager-cli.d.ts.map +1 -0
- package/dist/package-manager-cli.js +234 -0
- package/dist/package-manager-cli.js.map +1 -0
- package/dist/prompts/commands/atomic-commit.md +17 -0
- package/dist/prompts/commands/discuss-phase.md +15 -0
- package/dist/prompts/commands/execute-phase.md +14 -0
- package/dist/prompts/commands/fix.md +14 -0
- package/dist/prompts/commands/init-project.md +16 -0
- package/dist/prompts/commands/map-codebase.md +16 -0
- package/dist/prompts/commands/new-project.md +16 -0
- package/dist/prompts/commands/next-milestone.md +16 -0
- package/dist/prompts/commands/orchestrate.md +57 -0
- package/dist/prompts/commands/pause-work.md +13 -0
- package/dist/prompts/commands/plan-phase.md +15 -0
- package/dist/prompts/commands/progress.md +13 -0
- package/dist/prompts/commands/quick.md +14 -0
- package/dist/prompts/commands/resume-work.md +13 -0
- package/dist/prompts/commands/review.md +15 -0
- package/dist/prompts/commands/verify-work.md +15 -0
- package/dist/utils/paths.d.ts +7 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +19 -0
- package/dist/utils/paths.js.map +1 -0
- package/docs/compaction.md +5 -3
- package/docs/custom-provider.md +1 -1
- package/docs/development.md +3 -1
- package/docs/extensions.md +150 -54
- package/docs/json.md +5 -2
- package/docs/keybindings.md +2 -0
- package/docs/models.md +55 -4
- package/docs/rpc.md +21 -7
- package/docs/sdk.md +116 -48
- package/docs/session.md +3 -3
- package/docs/settings.md +12 -0
- package/docs/skills.md +3 -2
- package/docs/tree.md +5 -2
- package/examples/README.md +1 -1
- package/examples/extensions/README.md +1 -0
- package/examples/extensions/antigravity-image-gen.ts +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +1 -1
- package/examples/extensions/doom-overlay/doom/build.sh +2 -2
- package/examples/extensions/hidden-thinking-label.ts +53 -0
- package/examples/extensions/overlay-qa-tests.ts +2 -2
- package/examples/extensions/sandbox/index.ts +8 -4
- package/examples/extensions/subagent/index.ts +5 -5
- package/examples/extensions/trigger-compact.ts +11 -1
- package/examples/sdk/13-session-runtime.ts +30 -12
- package/examples/sdk/README.md +4 -2
- package/package.json +7 -8
- package/prompts/commands/atomic-commit.md +17 -0
- package/prompts/commands/discuss-phase.md +15 -0
- package/prompts/commands/execute-phase.md +14 -0
- package/prompts/commands/fix.md +14 -0
- package/prompts/commands/init-project.md +16 -0
- package/prompts/commands/map-codebase.md +16 -0
- package/prompts/commands/new-project.md +16 -0
- package/prompts/commands/next-milestone.md +16 -0
- package/prompts/commands/orchestrate.md +57 -0
- package/prompts/commands/pause-work.md +13 -0
- package/prompts/commands/plan-phase.md +15 -0
- package/prompts/commands/progress.md +13 -0
- package/prompts/commands/quick.md +14 -0
- package/prompts/commands/resume-work.md +13 -0
- package/prompts/commands/review.md +15 -0
- package/prompts/commands/verify-work.md +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,172 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [Unreleased]
|
|
4
|
+
|
|
5
|
+
## [2026.4.23] - 2026-04-23
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- add label timestamps to the session tree (#2691)
|
|
10
|
+
- add hidden thinking label api closes #2673
|
|
11
|
+
- add faux provider and ModelRegistry factories
|
|
12
|
+
- add prepareArguments hook for pre-validation argument preparation
|
|
13
|
+
- support multi-edit in edit tool
|
|
14
|
+
- Add sessionDir support in settings.json (#2598)
|
|
15
|
+
- add startup profiling scripts for tui/rpc (#2497)
|
|
16
|
+
- add JSONL export/import for sessions (#2356)
|
|
17
|
+
- add --fork session flag closes #2290
|
|
18
|
+
- expose local bash operations closes #2299
|
|
19
|
+
- refine session_directory hook closes #1729
|
|
20
|
+
- add session_directory extension event
|
|
21
|
+
- add provider payload hook
|
|
22
|
+
- preserve custom editor onEscape/onCtrlD handlers
|
|
23
|
+
- add subagent-based rebase-upstream workflow
|
|
24
|
+
- add atomic reasoning sections to all command prompts
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- rebrand and fix after upstream sync
|
|
29
|
+
- feat(coding-agent): set DRAHT_CODING_AGENT=true env var at startup
|
|
30
|
+
- Update sandbox extension configuration instructions (#2915)
|
|
31
|
+
- fix(coding-agent): hide Earendil startup notice
|
|
32
|
+
- fix(coding-agent): warn on Anthropic subscription auth
|
|
33
|
+
- fix(coding-agent): add earendil startup announcement
|
|
34
|
+
- remove dead main-package-command.ts (replaced by package-manager-cli.ts)
|
|
35
|
+
- replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime
|
|
36
|
+
- add switchSession to ExtensionCommandContext in extensions.md
|
|
37
|
+
- add defineTool helper closes #2746
|
|
38
|
+
- add session lifecycle characterization suite
|
|
39
|
+
- add queue characterization coverage
|
|
40
|
+
- add runtime host for session switching closes #2024
|
|
41
|
+
- clarify /tree active branch ordering (#2695)
|
|
42
|
+
- clarify repeated compaction boundary behavior (#2662)
|
|
43
|
+
- clarify sandbox example alternative to bash override (#2663)
|
|
44
|
+
- remove unused compaction import
|
|
45
|
+
- chore(coding-agent): add startup onboarding hint (#2620)
|
|
46
|
+
- make pi-test.sh runnable from any directory
|
|
47
|
+
- emit startup benchmark metrics
|
|
48
|
+
- refine startup profiling tooling
|
|
49
|
+
- add startup phase timings
|
|
50
|
+
- use valid PNG fixture for read tool
|
|
51
|
+
- fix showLoadedResources mocks
|
|
52
|
+
- stabilize git update branch setup
|
|
53
|
+
- add AgentSession test harness with faux provider
|
|
54
|
+
- fix(subagent): reuse current draht invocation for child agents closes #2464 (#2465)
|
|
55
|
+
- document xfce4-terminal and terminator keyboard protocol limitations (#2166)
|
|
56
|
+
- clarify compat flags for openai-compatible local servers closes #2177
|
|
57
|
+
- fix(coding-agent): support DRAHT_CODING_AGENT_DIR env var in example extensions (#2009)
|
|
58
|
+
- explain Windows Terminal Alt+Enter remap (#1967)
|
|
59
|
+
- Pr 1724 - feat(coding-agent): add fold/unfold to tree branch navigation (#1939)
|
|
60
|
+
- add codex tool-loop cache probe
|
|
61
|
+
- clarify that tool errors must be thrown, not returned
|
|
62
|
+
- clarify models.json name behavior (fixes #1840)
|
|
63
|
+
- document built-in sub-agent system
|
|
64
|
+
- add Phase 23 multi-agent layer to roadmap and plan
|
|
65
|
+
|
|
66
|
+
### Fixed
|
|
67
|
+
|
|
68
|
+
- restore draht-specific package.json fields and scripts lost in upstream sync
|
|
69
|
+
- bump antigravity User-Agent header version (#2901)
|
|
70
|
+
- update google provider to handle gemma 4 thinking levels and route between MINIMAL and HIGH (#2903)
|
|
71
|
+
- retry ended-without stream errors closes #2892
|
|
72
|
+
- use node:readline import prefix for Deno compatibility
|
|
73
|
+
- persist bash output on line truncation closes #2852
|
|
74
|
+
- remove stale /exit docs closes #2850
|
|
75
|
+
- handle missing session cwd
|
|
76
|
+
- preserve json mode for piped stdin (#2848)
|
|
77
|
+
- handle git/npm extension paths in CLI resolution (#2845)
|
|
78
|
+
- quote $RESX and $RESY in doom build script (SC2086) (#2817)
|
|
79
|
+
- resource collision precedence, user/project skills override package skills
|
|
80
|
+
- handle async fs.watch error events in theme watcher
|
|
81
|
+
- forward RpcClient subprocess stderr to parent in real-time
|
|
82
|
+
- reuse initial resource loader on startup closes #2766
|
|
83
|
+
- wait for retried runs to settle
|
|
84
|
+
- restore extension input source semantics
|
|
85
|
+
- properly queue extension messages (#2674)
|
|
86
|
+
- avoid full redraw on large edit results closes #2664
|
|
87
|
+
- expose abort signal to extensions closes #2660
|
|
88
|
+
- simplify edit tool input closes #2639
|
|
89
|
+
- document mutable tool_call input closes #2611
|
|
90
|
+
- restore compaction summary and dedupe edit errors
|
|
91
|
+
- tighten skill discovery and edit diffs closes #2603
|
|
92
|
+
- preserve kept messages across repeated compaction closes #2608
|
|
93
|
+
- unify compaction UI events closes #2617
|
|
94
|
+
- honor custom renderers for built-in tool overrides closes #2595
|
|
95
|
+
- resolve models.json auth per request closes #1835
|
|
96
|
+
- add follow-up docs, changelog, and precedence tests closes #2429
|
|
97
|
+
- restore main syntax and apply biome formatting
|
|
98
|
+
- preserve file mutation queue ordering
|
|
99
|
+
- add missing ajv direct dependency, fixes #2252
|
|
100
|
+
- emit session_shutdown in print mode closes #2576
|
|
101
|
+
- respect export theme backgrounds closes #2565
|
|
102
|
+
- recompute interactive bash preview width closes #2569
|
|
103
|
+
- reduce git update fetch noise closes #2548
|
|
104
|
+
- expose rpc context usage closes #2550
|
|
105
|
+
- disambiguate duplicate slash commands, fixes #1061
|
|
106
|
+
- unify source provenance, closes #1734
|
|
107
|
+
- attach source info to resources and commands, fixes #1734
|
|
108
|
+
- enforce safe auto-resized image limits closes #2055
|
|
109
|
+
- reserve stdout in print and json mode closes #2482
|
|
110
|
+
- skip no-op git package reinstalls
|
|
111
|
+
- built-in tools work like extension tools
|
|
112
|
+
- update project npm packages
|
|
113
|
+
- export ToolCallEventResult closes #2458
|
|
114
|
+
- respect agentDir for sdk session paths closes #2457
|
|
115
|
+
- keep suspend resume alive on fg closes #2454
|
|
116
|
+
- align minimax and zai defaults (#2445)
|
|
117
|
+
- migrate to namespaced ids closes #2391
|
|
118
|
+
- queue file mutations across edit and write
|
|
119
|
+
- protect rpc stdout fixes #2388
|
|
120
|
+
- resolve waitForRetry() race when auto-retry produces tool calls (#2440)
|
|
121
|
+
- suppress process warnings in CLI closes #2404
|
|
122
|
+
- show bash tool elapsed time at bottom closes #2406
|
|
123
|
+
- avoid blocking footer branch refresh and isolate invalid extension provider registrations closes #2418 closes #2431
|
|
124
|
+
- fix windows hanging when descendants inherit stdout/stderr handles (#2389)
|
|
125
|
+
- use native clipboard text copy on desktop closes #2347
|
|
126
|
+
- make tests keybinding-agnostic
|
|
127
|
+
- use `setBedrockProviderModule` in Bun entrypoint closes #2349 (#2350)
|
|
128
|
+
- stop updating packages on startup closes #1963
|
|
129
|
+
- refresh active model after provider updates closes #2291
|
|
130
|
+
- reload keybindings on /reload closes #2309
|
|
131
|
+
- restore Bun binary lazy provider loading closes #2314
|
|
132
|
+
- handle z.ai network_error closes #2313
|
|
133
|
+
- merge piped stdin into initial prompt closes #2315
|
|
134
|
+
- skip tmux extended-keys warning when tmux is unreachable (#2311)
|
|
135
|
+
- handle empty session titles and session info metadata (#2304)
|
|
136
|
+
- handle reftable footer branch detection (#2300)
|
|
137
|
+
- make prompt snippets opt in closes #2285
|
|
138
|
+
- retry provider returned error closes #2264
|
|
139
|
+
- handle slash-delimited /model refs closes #2174
|
|
140
|
+
- start UI before session_start closes #2035
|
|
141
|
+
- add uninstall alias
|
|
142
|
+
- stabilize windows shell/path handling
|
|
143
|
+
- silence headless clipboard fallback errors closes #2056
|
|
144
|
+
- honor provider compat in models.json closes #2062
|
|
145
|
+
- normalize prompt cwd for bash-safe windows paths closes #2080
|
|
146
|
+
- support configurable npm wrapper command closes #2072
|
|
147
|
+
- expand paste markers in ctx.ui.getEditorText(), closes #2084
|
|
148
|
+
- sync tool hooks with agent event processing closes #2113
|
|
149
|
+
- keep only ISO date in system prompt closes #2131
|
|
150
|
+
- match server_error and internal_error in retry regex (#2117)
|
|
151
|
+
- Fix EXIF orientation for JPEG and WebP images (#2105)
|
|
152
|
+
- use shell for external editor on windows closes #1925
|
|
153
|
+
- prefer explicit -e extensions closes #1896
|
|
154
|
+
- ignore stale pre-compaction assistant usage in threshold compaction checks, fixes #1860
|
|
155
|
+
- handle tmux xterm extended keys and warn on tmux setup fixes #1872
|
|
156
|
+
- custom tool collapsed/expanded rendering in HTML export (#1934)
|
|
157
|
+
- use strict JSONL framing fixes #1911
|
|
158
|
+
- keep ~/.agents skills user-scoped\n\ncloses #1915
|
|
159
|
+
- guard against stale kept pre-compaction usage in error-path threshold check
|
|
160
|
+
- truncate tool results in compaction summarization to prevent overflow, fixes #1796
|
|
161
|
+
- allow threshold compaction for error messages using last successful usage, fixes #1834
|
|
162
|
+
- retry sync lockfile acquisition to prevent false auth errors during parallel startup
|
|
163
|
+
- preserve thinking defaults across model switches closes #1864
|
|
164
|
+
- clear header on /new closes #1880
|
|
165
|
+
- prefer workspace dist files for extension aliases
|
|
166
|
+
- normalize CRLF in write preview rendering (fixes #1854)
|
|
167
|
+
- make footer truncation width-aware
|
|
168
|
+
- use ESM resolution for extension alias fallback (#1821)
|
|
169
|
+
|
|
3
170
|
## [2026.4.5] - 2026-04-05
|
|
4
171
|
|
|
5
172
|
### Added
|
|
@@ -40,7 +207,7 @@
|
|
|
40
207
|
- branding sweep for upstream cherry-picks
|
|
41
208
|
- emit session_shutdown in print mode closes #2576
|
|
42
209
|
- replace π with D in terminal title
|
|
43
|
-
- update changelog URL from
|
|
210
|
+
- update changelog URL from draht-mono to draht
|
|
44
211
|
- resolve upstream sync conflicts and fix branding
|
|
45
212
|
- respect export theme backgrounds closes #2565
|
|
46
213
|
- recompute interactive bash preview width closes #2569
|
|
@@ -263,9 +430,9 @@
|
|
|
263
430
|
|
|
264
431
|
- bake subagent into core, remove shipped extensions
|
|
265
432
|
- remove duplicate GSD extension, consolidate into built-in prompts
|
|
266
|
-
- update repo URLs from
|
|
433
|
+
- update repo URLs from draht-dev/draht to draht-dev/draht
|
|
267
434
|
- rebrand all READMEs to draht naming and conventions
|
|
268
|
-
- rebrand package references from @
|
|
435
|
+
- rebrand package references from @draht/coding-agent-* to @draht/*
|
|
269
436
|
- add publishConfig for public npm access
|
|
270
437
|
- comprehensive READMEs, CONTRIBUTING.md, and phase summaries
|
|
271
438
|
- add vitest config, integration tests, and draht manifest test
|
|
@@ -275,7 +442,7 @@
|
|
|
275
442
|
|
|
276
443
|
- resolve post-rebase import and dependency issues
|
|
277
444
|
- rebrand .pi to .draht and pi: to draht: in tests, add verify script
|
|
278
|
-
- rebrand remaining @
|
|
445
|
+
- rebrand remaining @draht/coding-agent-* imports from upstream to @draht/*
|
|
279
446
|
- use draht-tools binary name in GSD prompts and CLI
|
|
280
447
|
- fix subagent spawn in source/dev mode
|
|
281
448
|
- load shipped extensions and rename /resume to /continue
|
|
@@ -309,7 +476,7 @@
|
|
|
309
476
|
|
|
310
477
|
### Changed
|
|
311
478
|
|
|
312
|
-
- update repo URLs from
|
|
479
|
+
- update repo URLs from draht-dev/draht to draht-dev/draht
|
|
313
480
|
|
|
314
481
|
## [2026.3.2-8] - 2026-03-02
|
|
315
482
|
|
|
@@ -346,7 +513,7 @@
|
|
|
346
513
|
|
|
347
514
|
### Changed
|
|
348
515
|
|
|
349
|
-
- rebrand package references from @
|
|
516
|
+
- rebrand package references from @draht/coding-agent-* to @draht/*
|
|
350
517
|
- add publishConfig for public npm access
|
|
351
518
|
- comprehensive READMEs, CONTRIBUTING.md, and phase summaries
|
|
352
519
|
- add vitest config, integration tests, and draht manifest test
|
|
@@ -366,20 +533,20 @@
|
|
|
366
533
|
|
|
367
534
|
### New Features
|
|
368
535
|
|
|
369
|
-
- Added OpenCode Go provider support with `opencode-go` model defaults and `OPENCODE_API_KEY` environment variable support ([docs/providers.md](docs/providers.md), [#1757](https://github.com/
|
|
370
|
-
- Added `branchSummary.skipPrompt` setting to skip branch summarization prompts during tree navigation ([docs/settings.md](docs/settings.md), [#1792](https://github.com/
|
|
371
|
-
- Added `gemini-3.1-flash-lite-preview` fallback model availability for Google provider catalogs when upstream model metadata lags ([README.md](README.md), [#1785](https://github.com/
|
|
536
|
+
- Added OpenCode Go provider support with `opencode-go` model defaults and `OPENCODE_API_KEY` environment variable support ([docs/providers.md](docs/providers.md), [#1757](https://github.com/draht-dev/draht/issues/1757)).
|
|
537
|
+
- Added `branchSummary.skipPrompt` setting to skip branch summarization prompts during tree navigation ([docs/settings.md](docs/settings.md), [#1792](https://github.com/draht-dev/draht/issues/1792)).
|
|
538
|
+
- Added `gemini-3.1-flash-lite-preview` fallback model availability for Google provider catalogs when upstream model metadata lags ([README.md](README.md), [#1785](https://github.com/draht-dev/draht/issues/1785)).
|
|
372
539
|
|
|
373
540
|
### Breaking Changes
|
|
374
541
|
|
|
375
542
|
- Changed scoped model thinking semantics. Scoped entries without an explicit `:<thinking>` suffix now inherit the current session thinking level when selected, instead of applying a startup-captured default.
|
|
376
|
-
- Moved Node OAuth runtime exports off the top-level `@
|
|
543
|
+
- Moved Node OAuth runtime exports off the top-level `@draht/ai` entry. OAuth login and refresh must be imported from `@draht/ai/oauth` ([#1814](https://github.com/draht-dev/draht/issues/1814)).
|
|
377
544
|
|
|
378
545
|
### Added
|
|
379
546
|
|
|
380
|
-
- Added `branchSummary.skipPrompt` setting to skip the summary prompt when navigating branches ([#1792](https://github.com/
|
|
381
|
-
- Added OpenCode Go provider support with `opencode-go` model defaults and `OPENCODE_API_KEY` environment variable support ([#1757](https://github.com/
|
|
382
|
-
- Added `gemini-3.1-flash-lite-preview` fallback model availability in provider catalogs when upstream catalogs lag ([#1785](https://github.com/
|
|
547
|
+
- Added `branchSummary.skipPrompt` setting to skip the summary prompt when navigating branches ([#1792](https://github.com/draht-dev/draht/issues/1792)).
|
|
548
|
+
- Added OpenCode Go provider support with `opencode-go` model defaults and `OPENCODE_API_KEY` environment variable support ([#1757](https://github.com/draht-dev/draht/issues/1757)).
|
|
549
|
+
- Added `gemini-3.1-flash-lite-preview` fallback model availability in provider catalogs when upstream catalogs lag ([#1785](https://github.com/draht-dev/draht/issues/1785)).
|
|
383
550
|
|
|
384
551
|
### Changed
|
|
385
552
|
|
|
@@ -388,87 +555,87 @@
|
|
|
388
555
|
### Fixed
|
|
389
556
|
|
|
390
557
|
- Fixed IME hardware cursor positioning in the custom extension editor (`ctx.ui.editor()` / extension editor dialog) by propagating focus to the internal `Editor`, preventing the terminal cursor from getting stuck at the bottom-right during composition.
|
|
391
|
-
- Added OSC 133 semantic zone markers around rendered user messages to support terminal navigation between prompts in iTerm2, WezTerm, Kitty, Ghostty, and other compatible terminals ([#1805](https://github.com/
|
|
392
|
-
- Fixed markdown blockquotes dropping nested list content in the TUI renderer ([#1787](https://github.com/
|
|
393
|
-
- Fixed TUI width handling for regional indicator symbols to prevent wrap drift and stale characters during streaming ([#1783](https://github.com/
|
|
394
|
-
- Fixed Kitty CSI-u handling to ignore unsupported modifiers so modifier-only events do not insert printable characters ([#1807](https://github.com/
|
|
395
|
-
- Fixed single-line paste handling to insert text atomically and avoid repeated `@` autocomplete scans on large pastes ([#1812](https://github.com/
|
|
396
|
-
- Fixed extension loading with the new `@
|
|
397
|
-
- Fixed browser-safe provider loading regressions by preloading the Bedrock provider module in compiled Bun binaries and rebuilding binaries against fresh workspace dependencies ([#1814](https://github.com/
|
|
398
|
-
- Fixed GNU screen terminal detection by downgrading theme output to 256-color mode for `screen*` TERM values ([#1809](https://github.com/
|
|
399
|
-
- Fixed branch summarization queue handling so messages typed while summaries are generated are processed correctly ([#1803](https://github.com/
|
|
400
|
-
- Fixed compaction summary requests to avoid reasoning output for non-reasoning models ([#1793](https://github.com/
|
|
558
|
+
- Added OSC 133 semantic zone markers around rendered user messages to support terminal navigation between prompts in iTerm2, WezTerm, Kitty, Ghostty, and other compatible terminals ([#1805](https://github.com/draht-dev/draht/issues/1805)).
|
|
559
|
+
- Fixed markdown blockquotes dropping nested list content in the TUI renderer ([#1787](https://github.com/draht-dev/draht/issues/1787)).
|
|
560
|
+
- Fixed TUI width handling for regional indicator symbols to prevent wrap drift and stale characters during streaming ([#1783](https://github.com/draht-dev/draht/issues/1783)).
|
|
561
|
+
- Fixed Kitty CSI-u handling to ignore unsupported modifiers so modifier-only events do not insert printable characters ([#1807](https://github.com/draht-dev/draht/issues/1807)).
|
|
562
|
+
- Fixed single-line paste handling to insert text atomically and avoid repeated `@` autocomplete scans on large pastes ([#1812](https://github.com/draht-dev/draht/issues/1812)).
|
|
563
|
+
- Fixed extension loading with the new `@draht/ai/oauth` export path by aliasing the oauth subpath in the extension loader and development path mapping ([#1814](https://github.com/draht-dev/draht/issues/1814)).
|
|
564
|
+
- Fixed browser-safe provider loading regressions by preloading the Bedrock provider module in compiled Bun binaries and rebuilding binaries against fresh workspace dependencies ([#1814](https://github.com/draht-dev/draht/issues/1814)).
|
|
565
|
+
- Fixed GNU screen terminal detection by downgrading theme output to 256-color mode for `screen*` TERM values ([#1809](https://github.com/draht-dev/draht/issues/1809)).
|
|
566
|
+
- Fixed branch summarization queue handling so messages typed while summaries are generated are processed correctly ([#1803](https://github.com/draht-dev/draht/issues/1803)).
|
|
567
|
+
- Fixed compaction summary requests to avoid reasoning output for non-reasoning models ([#1793](https://github.com/draht-dev/draht/issues/1793)).
|
|
401
568
|
- Fixed overflow auto-compaction cascades so a single overflow does not trigger repeated compaction loops.
|
|
402
|
-
- Fixed `models.json` to allow provider-scoped custom model ids and model-level `baseUrl` overrides ([#1759](https://github.com/
|
|
403
|
-
- Fixed session selector display sanitization by stripping control characters from session display text ([#1747](https://github.com/
|
|
404
|
-
- Fixed Groq Qwen3 reasoning effort mapping for OpenAI-compatible models ([#1745](https://github.com/
|
|
405
|
-
- Fixed Bedrock `AWS_PROFILE` region resolution by honoring profile `region` values ([#1800](https://github.com/
|
|
406
|
-
- Fixed Gemini 3.1 thinking-level detection for `google` and `google-vertex` providers ([#1785](https://github.com/
|
|
407
|
-
- Fixed browser bundling compatibility for `@
|
|
569
|
+
- Fixed `models.json` to allow provider-scoped custom model ids and model-level `baseUrl` overrides ([#1759](https://github.com/draht-dev/draht/issues/1759), [#1777](https://github.com/draht-dev/draht/issues/1777)).
|
|
570
|
+
- Fixed session selector display sanitization by stripping control characters from session display text ([#1747](https://github.com/draht-dev/draht/issues/1747)).
|
|
571
|
+
- Fixed Groq Qwen3 reasoning effort mapping for OpenAI-compatible models ([#1745](https://github.com/draht-dev/draht/issues/1745)).
|
|
572
|
+
- Fixed Bedrock `AWS_PROFILE` region resolution by honoring profile `region` values ([#1800](https://github.com/draht-dev/draht/issues/1800)).
|
|
573
|
+
- Fixed Gemini 3.1 thinking-level detection for `google` and `google-vertex` providers ([#1785](https://github.com/draht-dev/draht/issues/1785)).
|
|
574
|
+
- Fixed browser bundling compatibility for `@draht/ai` by removing Node-only side effects from default browser import paths ([#1814](https://github.com/draht-dev/draht/issues/1814)).
|
|
408
575
|
|
|
409
576
|
## [0.55.4] - 2026-03-02
|
|
410
577
|
|
|
411
578
|
### New Features
|
|
412
579
|
|
|
413
|
-
- Runtime tool registration now applies immediately in active sessions. Tools registered via `pi.registerTool()` after startup are available to `pi.getAllTools()` and the LLM without `/reload` ([docs/extensions.md](docs/extensions.md), [examples/extensions/dynamic-tools.ts](examples/extensions/dynamic-tools.ts), [#1720](https://github.com/
|
|
414
|
-
- Tool definitions can customize the default system prompt with `promptSnippet` (`Available tools`) and `promptGuidelines` (`Guidelines`) while the tool is active ([docs/extensions.md](docs/extensions.md), [#1720](https://github.com/
|
|
415
|
-
- Custom tool renderers can suppress transcript output without leaving extra spacing or empty transcript footprint in interactive rendering ([docs/extensions.md](docs/extensions.md), [#1719](https://github.com/
|
|
580
|
+
- Runtime tool registration now applies immediately in active sessions. Tools registered via `pi.registerTool()` after startup are available to `pi.getAllTools()` and the LLM without `/reload` ([docs/extensions.md](docs/extensions.md), [examples/extensions/dynamic-tools.ts](examples/extensions/dynamic-tools.ts), [#1720](https://github.com/draht-dev/draht/issues/1720)).
|
|
581
|
+
- Tool definitions can customize the default system prompt with `promptSnippet` (`Available tools`) and `promptGuidelines` (`Guidelines`) while the tool is active ([docs/extensions.md](docs/extensions.md), [#1720](https://github.com/draht-dev/draht/issues/1720)).
|
|
582
|
+
- Custom tool renderers can suppress transcript output without leaving extra spacing or empty transcript footprint in interactive rendering ([docs/extensions.md](docs/extensions.md), [#1719](https://github.com/draht-dev/draht/pull/1719)).
|
|
416
583
|
|
|
417
584
|
### Added
|
|
418
585
|
|
|
419
|
-
- Added optional `promptSnippet` to `ToolDefinition` for one-line entries in the default system prompt's `Available tools` section. Active extension tools appear there when registered and active ([#1237](https://github.com/
|
|
420
|
-
- Added optional `promptGuidelines` to `ToolDefinition` so active tools can append tool-specific bullets to the default system prompt `Guidelines` section ([#1720](https://github.com/
|
|
586
|
+
- Added optional `promptSnippet` to `ToolDefinition` for one-line entries in the default system prompt's `Available tools` section. Active extension tools appear there when registered and active ([#1237](https://github.com/draht-dev/draht/pull/1237) by [@semtexzv](https://github.com/semtexzv)).
|
|
587
|
+
- Added optional `promptGuidelines` to `ToolDefinition` so active tools can append tool-specific bullets to the default system prompt `Guidelines` section ([#1720](https://github.com/draht-dev/draht/issues/1720)).
|
|
421
588
|
|
|
422
589
|
### Fixed
|
|
423
590
|
|
|
424
|
-
- Fixed `pi.registerTool()` dynamic registration after session initialization. Tools registered in `session_start` and later handlers now refresh immediately, become active, and are visible to the LLM without `/reload` ([#1720](https://github.com/
|
|
425
|
-
- Fixed session message persistence ordering by serializing `AgentSession` event processing, preventing `toolResult` entries from being written before their corresponding assistant tool-call messages when extension handlers are asynchronous ([#1717](https://github.com/
|
|
426
|
-
- Fixed spacing artifacts when custom tool renderers intentionally suppress per-call transcript output, including extra blank rows in interactive streaming and non-zero transcript footprint for empty custom renders ([#1719](https://github.com/
|
|
427
|
-
- Fixed `session.prompt()` returning before retry completion by creating the retry promise synchronously at `agent_end` dispatch, which closes a race when earlier queued event handlers are async ([#1726](https://github.com/
|
|
591
|
+
- Fixed `pi.registerTool()` dynamic registration after session initialization. Tools registered in `session_start` and later handlers now refresh immediately, become active, and are visible to the LLM without `/reload` ([#1720](https://github.com/draht-dev/draht/issues/1720))
|
|
592
|
+
- Fixed session message persistence ordering by serializing `AgentSession` event processing, preventing `toolResult` entries from being written before their corresponding assistant tool-call messages when extension handlers are asynchronous ([#1717](https://github.com/draht-dev/draht/issues/1717))
|
|
593
|
+
- Fixed spacing artifacts when custom tool renderers intentionally suppress per-call transcript output, including extra blank rows in interactive streaming and non-zero transcript footprint for empty custom renders ([#1719](https://github.com/draht-dev/draht/pull/1719) by [@alasano](https://github.com/alasano))
|
|
594
|
+
- Fixed `session.prompt()` returning before retry completion by creating the retry promise synchronously at `agent_end` dispatch, which closes a race when earlier queued event handlers are async ([#1726](https://github.com/draht-dev/draht/pull/1726) by [@pasky](https://github.com/pasky))
|
|
428
595
|
|
|
429
596
|
## [0.55.3] - 2026-02-27
|
|
430
597
|
|
|
431
598
|
### Fixed
|
|
432
599
|
|
|
433
|
-
- Changed the default image paste keybinding on Windows to `alt+v` to avoid `ctrl+v` conflicts with terminal paste behavior ([#1682](https://github.com/
|
|
600
|
+
- Changed the default image paste keybinding on Windows to `alt+v` to avoid `ctrl+v` conflicts with terminal paste behavior ([#1682](https://github.com/draht-dev/draht/pull/1682) by [@mrexodia](https://github.com/mrexodia)).
|
|
434
601
|
|
|
435
602
|
## [0.55.2] - 2026-02-27
|
|
436
603
|
|
|
437
604
|
### New Features
|
|
438
605
|
|
|
439
|
-
- Extensions can dynamically remove custom providers via `pi.unregisterProvider(name)`, restoring any built-in models that were overridden, without requiring `/reload` ([docs](https://github.com/
|
|
606
|
+
- Extensions can dynamically remove custom providers via `pi.unregisterProvider(name)`, restoring any built-in models that were overridden, without requiring `/reload` ([docs](https://github.com/draht-dev/draht/blob/main/packages/coding-agent/docs/custom-provider.md)).
|
|
440
607
|
- `pi.registerProvider()` now takes effect immediately when called outside the initial extension load phase (e.g. from a command handler), removing the need for `/reload` after late registrations.
|
|
441
608
|
|
|
442
609
|
### Added
|
|
443
610
|
|
|
444
|
-
- `pi.unregisterProvider(name)` removes a dynamically registered provider and its models from the registry without requiring `/reload`. Built-in models that were overridden by the provider are restored ([#1669](https://github.com/
|
|
611
|
+
- `pi.unregisterProvider(name)` removes a dynamically registered provider and its models from the registry without requiring `/reload`. Built-in models that were overridden by the provider are restored ([#1669](https://github.com/draht-dev/draht/pull/1669) by [@aliou](https://github.com/aliou)).
|
|
445
612
|
|
|
446
613
|
### Fixed
|
|
447
614
|
|
|
448
|
-
- `pi.registerProvider()` now takes effect immediately when called after the initial extension load phase (e.g. from a command handler). Previously the registration sat in a pending queue that was never flushed until the next `/reload` ([#1669](https://github.com/
|
|
449
|
-
- Fixed duplicate session headers when forking from a point before any assistant message. `createBranchedSession` now defers file creation to `_persist()` when the branched path has no assistant message, matching the `newSession()` contract ([#1672](https://github.com/
|
|
450
|
-
- Fixed SIGINT being delivered to pi while the process is suspended (e.g. via `ctrl+z`), which could corrupt terminal state on resume ([#1668](https://github.com/
|
|
451
|
-
- Fixed Z.ai thinking control using wrong parameter name, causing thinking to always be enabled and wasting tokens/latency ([#1674](https://github.com/
|
|
452
|
-
- Fixed `redacted_thinking` blocks being silently dropped during Anthropic streaming, and related issues with interleaved-thinking beta headers and temperature being sent alongside extended thinking ([#1665](https://github.com/
|
|
453
|
-
- Fixed `(external, cli)` user-agent flag causing 401 errors on Anthropic setup-token endpoint ([#1677](https://github.com/
|
|
454
|
-
- Fixed crash when OpenAI-compatible provider returns a chunk with no `choices` array ([#1671](https://github.com/
|
|
615
|
+
- `pi.registerProvider()` now takes effect immediately when called after the initial extension load phase (e.g. from a command handler). Previously the registration sat in a pending queue that was never flushed until the next `/reload` ([#1669](https://github.com/draht-dev/draht/pull/1669) by [@aliou](https://github.com/aliou)).
|
|
616
|
+
- Fixed duplicate session headers when forking from a point before any assistant message. `createBranchedSession` now defers file creation to `_persist()` when the branched path has no assistant message, matching the `newSession()` contract ([#1672](https://github.com/draht-dev/draht/pull/1672) by [@w-winter](https://github.com/w-winter)).
|
|
617
|
+
- Fixed SIGINT being delivered to pi while the process is suspended (e.g. via `ctrl+z`), which could corrupt terminal state on resume ([#1668](https://github.com/draht-dev/draht/pull/1668) by [@aliou](https://github.com/aliou)).
|
|
618
|
+
- Fixed Z.ai thinking control using wrong parameter name, causing thinking to always be enabled and wasting tokens/latency ([#1674](https://github.com/draht-dev/draht/pull/1674) by [@okuyam2y](https://github.com/okuyam2y))
|
|
619
|
+
- Fixed `redacted_thinking` blocks being silently dropped during Anthropic streaming, and related issues with interleaved-thinking beta headers and temperature being sent alongside extended thinking ([#1665](https://github.com/draht-dev/draht/pull/1665) by [@tctev](https://github.com/tctev))
|
|
620
|
+
- Fixed `(external, cli)` user-agent flag causing 401 errors on Anthropic setup-token endpoint ([#1677](https://github.com/draht-dev/draht/pull/1677) by [@LazerLance777](https://github.com/LazerLance777))
|
|
621
|
+
- Fixed crash when OpenAI-compatible provider returns a chunk with no `choices` array ([#1671](https://github.com/draht-dev/draht/issues/1671))
|
|
455
622
|
|
|
456
623
|
## [0.55.1] - 2026-02-26
|
|
457
624
|
|
|
458
625
|
### New Features
|
|
459
626
|
|
|
460
627
|
- Added offline startup mode via `--offline` (or `PI_OFFLINE`) to disable startup network operations, with startup network timeouts to avoid hangs in restricted or offline environments.
|
|
461
|
-
- Added `gemini-3.1-pro-preview` model support to the `google-gemini-cli` provider ([#1599](https://github.com/
|
|
628
|
+
- Added `gemini-3.1-pro-preview` model support to the `google-gemini-cli` provider ([#1599](https://github.com/draht-dev/draht/pull/1599) by [@audichuang](https://github.com/audichuang)).
|
|
462
629
|
|
|
463
630
|
### Fixed
|
|
464
631
|
|
|
465
|
-
- Fixed offline startup hangs by adding offline startup behavior and network timeouts during managed tool setup ([#1631](https://github.com/
|
|
466
|
-
- Fixed Windows VT input initialization in ESM by loading koffi via createRequire, avoiding runtime and bundling issues in end-user environments ([#1627](https://github.com/
|
|
467
|
-
- Fixed managed `fd`/`rg` bootstrap on Windows in Git Bash by using `extract-zip` for `.zip` archives, searching extracted layouts more robustly, and isolating extraction temp directories to avoid concurrent download races ([#1348](https://github.com/
|
|
632
|
+
- Fixed offline startup hangs by adding offline startup behavior and network timeouts during managed tool setup ([#1631](https://github.com/draht-dev/draht/pull/1631) by [@mcollina](https://github.com/mcollina))
|
|
633
|
+
- Fixed Windows VT input initialization in ESM by loading koffi via createRequire, avoiding runtime and bundling issues in end-user environments ([#1627](https://github.com/draht-dev/draht/pull/1627) by [@kaste](https://github.com/kaste))
|
|
634
|
+
- Fixed managed `fd`/`rg` bootstrap on Windows in Git Bash by using `extract-zip` for `.zip` archives, searching extracted layouts more robustly, and isolating extraction temp directories to avoid concurrent download races ([#1348](https://github.com/draht-dev/draht/issues/1348))
|
|
468
635
|
- Fixed extension loading on Windows when resolving `@sinclair/typebox` aliases so subpath imports like `@sinclair/typebox/compiler` resolve correctly.
|
|
469
|
-
- Fixed adaptive thinking for Claude Sonnet 4.6 in Anthropic and Bedrock providers, and clamped unsupported `xhigh` effort values to supported levels ([#1548](https://github.com/
|
|
470
|
-
- Fixed Vertex ADC credential detection race by avoiding caching a false negative during async import initialization ([#1550](https://github.com/
|
|
471
|
-
- Fixed subagent extension example to resolve user agents from the configured agent directory instead of hardcoded paths ([#1559](https://github.com/
|
|
636
|
+
- Fixed adaptive thinking for Claude Sonnet 4.6 in Anthropic and Bedrock providers, and clamped unsupported `xhigh` effort values to supported levels ([#1548](https://github.com/draht-dev/draht/pull/1548) by [@tctev](https://github.com/tctev))
|
|
637
|
+
- Fixed Vertex ADC credential detection race by avoiding caching a false negative during async import initialization ([#1550](https://github.com/draht-dev/draht/pull/1550) by [@jeremiahgaylord-web](https://github.com/jeremiahgaylord-web))
|
|
638
|
+
- Fixed subagent extension example to resolve user agents from the configured agent directory instead of hardcoded paths ([#1559](https://github.com/draht-dev/draht/pull/1559) by [@tianshuwang](https://github.com/tianshuwang))
|
|
472
639
|
|
|
473
640
|
## [0.55.0] - 2026-02-24
|
|
474
641
|
|
|
@@ -482,7 +649,7 @@
|
|
|
482
649
|
### Fixed
|
|
483
650
|
|
|
484
651
|
- Fixed `.pi` folder being created unnecessarily when only reading settings. The folder is now only created when writing project-specific settings.
|
|
485
|
-
- Fixed extension-driven runtime theme changes to persist in settings so `/settings` reflects the active `currentTheme` after `ctx.ui.setTheme(...)` ([#1483](https://github.com/
|
|
652
|
+
- Fixed extension-driven runtime theme changes to persist in settings so `/settings` reflects the active `currentTheme` after `ctx.ui.setTheme(...)` ([#1483](https://github.com/draht-dev/draht/pull/1483) by [@ferologics](https://github.com/ferologics))
|
|
486
653
|
- Fixed interactive mode freezes during large streaming `write` tool calls by using incremental syntax highlighting while partial arguments stream, with a final full re-highlight after tool-call arguments complete.
|
|
487
654
|
|
|
488
655
|
## [0.54.1] - 2026-02-22
|
|
@@ -557,12 +724,12 @@
|
|
|
557
724
|
|
|
558
725
|
### Breaking Changes
|
|
559
726
|
|
|
560
|
-
- `ContextUsage.tokens` and `ContextUsage.percent` are now `number | null`. After compaction, context token count is unknown until the next LLM response, so these fields return `null`. Extensions that read `ContextUsage` must handle the `null` case. Removed `usageTokens`, `trailingTokens`, and `lastUsageIndex` fields from `ContextUsage` (implementation details that should not have been public) ([#1382](https://github.com/
|
|
561
|
-
- Git source parsing is now strict without `git:` prefix: only protocol URLs are treated as git (`https://`, `http://`, `ssh://`, `git://`). Shorthand sources like `github.com/org/repo` and `git@github.com:org/repo` now require the `git:` prefix. ([#1426](https://github.com/
|
|
727
|
+
- `ContextUsage.tokens` and `ContextUsage.percent` are now `number | null`. After compaction, context token count is unknown until the next LLM response, so these fields return `null`. Extensions that read `ContextUsage` must handle the `null` case. Removed `usageTokens`, `trailingTokens`, and `lastUsageIndex` fields from `ContextUsage` (implementation details that should not have been public) ([#1382](https://github.com/draht-dev/draht/pull/1382) by [@ferologics](https://github.com/ferologics))
|
|
728
|
+
- Git source parsing is now strict without `git:` prefix: only protocol URLs are treated as git (`https://`, `http://`, `ssh://`, `git://`). Shorthand sources like `github.com/org/repo` and `git@github.com:org/repo` now require the `git:` prefix. ([#1426](https://github.com/draht-dev/draht/issues/1426))
|
|
562
729
|
|
|
563
730
|
### Added
|
|
564
731
|
|
|
565
|
-
- Added extension event forwarding for message and tool execution lifecycles (`message_start`, `message_update`, `message_end`, `tool_execution_start`, `tool_execution_update`, `tool_execution_end`) ([#1375](https://github.com/
|
|
732
|
+
- Added extension event forwarding for message and tool execution lifecycles (`message_start`, `message_update`, `message_end`, `tool_execution_start`, `tool_execution_update`, `tool_execution_end`) ([#1375](https://github.com/draht-dev/draht/pull/1375) by [@sumeet](https://github.com/sumeet))
|
|
566
733
|
- Added `terminal_input` extension event to intercept, consume, or transform raw terminal input before normal TUI handling.
|
|
567
734
|
- Added `gpt-5.3-codex-spark` model definition for OpenAI and OpenAI Codex providers (research preview).
|
|
568
735
|
|
|
@@ -572,69 +739,69 @@
|
|
|
572
739
|
|
|
573
740
|
### Fixed
|
|
574
741
|
|
|
575
|
-
- Fixed context usage percentage in footer showing stale pre-compaction values. After compaction the footer now shows `?/200k` until the next LLM response provides accurate usage ([#1382](https://github.com/
|
|
576
|
-
- Fixed `_checkCompaction()` using the first compaction entry instead of the latest, which could cause incorrect overflow detection with multiple compactions ([#1382](https://github.com/
|
|
577
|
-
- `--model` now works without `--provider`, supports `provider/id` syntax, fuzzy matching, and `:<thinking>` suffix (e.g., `--model sonnet:high`, `--model openai/gpt-4o`) ([#1350](https://github.com/
|
|
578
|
-
- Fixed local package path normalization for extension sources while tightening git source parsing rules ([#1426](https://github.com/
|
|
742
|
+
- Fixed context usage percentage in footer showing stale pre-compaction values. After compaction the footer now shows `?/200k` until the next LLM response provides accurate usage ([#1382](https://github.com/draht-dev/draht/pull/1382) by [@ferologics](https://github.com/ferologics))
|
|
743
|
+
- Fixed `_checkCompaction()` using the first compaction entry instead of the latest, which could cause incorrect overflow detection with multiple compactions ([#1382](https://github.com/draht-dev/draht/pull/1382) by [@ferologics](https://github.com/ferologics))
|
|
744
|
+
- `--model` now works without `--provider`, supports `provider/id` syntax, fuzzy matching, and `:<thinking>` suffix (e.g., `--model sonnet:high`, `--model openai/gpt-4o`) ([#1350](https://github.com/draht-dev/draht/pull/1350) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
745
|
+
- Fixed local package path normalization for extension sources while tightening git source parsing rules ([#1426](https://github.com/draht-dev/draht/issues/1426))
|
|
579
746
|
- Fixed extension terminal input listeners not being cleared during session resets, which could leave stale handlers active.
|
|
580
|
-
- Fixed Termux bootstrap package name for `fd` installation ([#1433](https://github.com/
|
|
581
|
-
- Fixed `@` file autocomplete fuzzy matching to prioritize path-prefix and segment matches for nested paths ([#1423](https://github.com/
|
|
582
|
-
- Fixed OpenAI streaming tool-call parsing to tolerate malformed trailing JSON in partial chunks ([#1424](https://github.com/
|
|
747
|
+
- Fixed Termux bootstrap package name for `fd` installation ([#1433](https://github.com/draht-dev/draht/pull/1433))
|
|
748
|
+
- Fixed `@` file autocomplete fuzzy matching to prioritize path-prefix and segment matches for nested paths ([#1423](https://github.com/draht-dev/draht/issues/1423))
|
|
749
|
+
- Fixed OpenAI streaming tool-call parsing to tolerate malformed trailing JSON in partial chunks ([#1424](https://github.com/draht-dev/draht/issues/1424))
|
|
583
750
|
|
|
584
751
|
## [0.52.9] - 2026-02-08
|
|
585
752
|
|
|
586
753
|
### New Features
|
|
587
754
|
|
|
588
|
-
- Extensions can trigger a full runtime reload via `ctx.reload()`, useful for hot-reloading configuration or restarting the agent. See [docs/extensions.md](docs/extensions.md) and the [`reload-runtime` example](examples/extensions/reload-runtime.ts) ([#1371](https://github.com/
|
|
755
|
+
- Extensions can trigger a full runtime reload via `ctx.reload()`, useful for hot-reloading configuration or restarting the agent. See [docs/extensions.md](docs/extensions.md) and the [`reload-runtime` example](examples/extensions/reload-runtime.ts) ([#1371](https://github.com/draht-dev/draht/issues/1371))
|
|
589
756
|
- Short CLI disable aliases: `-ne` (`--no-extensions`), `-ns` (`--no-skills`), and `-np` (`--no-prompt-templates`) for faster interactive usage and scripting.
|
|
590
|
-
- `/export` HTML now includes collapsible tool input schemas (parameter names, types, and descriptions), improving session review and sharing workflows ([#1416](https://github.com/
|
|
591
|
-
- `pi.getAllTools()` now exposes tool parameters in addition to name and description, enabling richer extension integrations ([#1416](https://github.com/
|
|
757
|
+
- `/export` HTML now includes collapsible tool input schemas (parameter names, types, and descriptions), improving session review and sharing workflows ([#1416](https://github.com/draht-dev/draht/pull/1416) by [@marchellodev](https://github.com/marchellodev)).
|
|
758
|
+
- `pi.getAllTools()` now exposes tool parameters in addition to name and description, enabling richer extension integrations ([#1416](https://github.com/draht-dev/draht/pull/1416) by [@marchellodev](https://github.com/marchellodev)).
|
|
592
759
|
|
|
593
760
|
### Added
|
|
594
761
|
|
|
595
|
-
- Added `ctx.reload()` to the extension API for programmatic runtime reload ([#1371](https://github.com/
|
|
762
|
+
- Added `ctx.reload()` to the extension API for programmatic runtime reload ([#1371](https://github.com/draht-dev/draht/issues/1371))
|
|
596
763
|
- Added short aliases for disable flags: `-ne` for `--no-extensions`, `-ns` for `--no-skills`, `-np` for `--no-prompt-templates`
|
|
597
|
-
- `/export` HTML now includes tool input schema (parameter names, types, descriptions) in a collapsible section under each tool ([#1416](https://github.com/
|
|
598
|
-
- `pi.getAllTools()` now returns tool parameters in addition to name and description ([#1416](https://github.com/
|
|
764
|
+
- `/export` HTML now includes tool input schema (parameter names, types, descriptions) in a collapsible section under each tool ([#1416](https://github.com/draht-dev/draht/pull/1416) by [@marchellodev](https://github.com/marchellodev))
|
|
765
|
+
- `pi.getAllTools()` now returns tool parameters in addition to name and description ([#1416](https://github.com/draht-dev/draht/pull/1416) by [@marchellodev](https://github.com/marchellodev))
|
|
599
766
|
|
|
600
767
|
### Fixed
|
|
601
768
|
|
|
602
769
|
- Fixed extension source parsing so dot-prefixed local paths (for example `.pi/extensions/foo.ts`) are treated as local paths instead of git URLs
|
|
603
|
-
- Fixed fd/rg download failing on Windows due to `unzip` not being available; now uses `tar` for both `.tar.gz` and `.zip` extraction, with proper error reporting ([#1348](https://github.com/
|
|
604
|
-
- Fixed RPC mode documentation incorrectly stating `ctx.hasUI` is `false`; it is `true` because dialog and fire-and-forget UI methods work via the RPC sub-protocol. Also documented missing unsupported/degraded methods (`pasteToEditor`, `getAllThemes`, `getTheme`, `setTheme`) ([#1411](https://github.com/
|
|
605
|
-
- Fixed `rg` not available in bash tool by downloading it at startup alongside `fd` ([#1348](https://github.com/
|
|
606
|
-
- Fixed `custom-compaction` example to use `ModelRegistry` ([#1387](https://github.com/
|
|
607
|
-
- Google providers now support full JSON Schema in tool declarations (anyOf, oneOf, const, etc.) ([#1398](https://github.com/
|
|
770
|
+
- Fixed fd/rg download failing on Windows due to `unzip` not being available; now uses `tar` for both `.tar.gz` and `.zip` extraction, with proper error reporting ([#1348](https://github.com/draht-dev/draht/issues/1348))
|
|
771
|
+
- Fixed RPC mode documentation incorrectly stating `ctx.hasUI` is `false`; it is `true` because dialog and fire-and-forget UI methods work via the RPC sub-protocol. Also documented missing unsupported/degraded methods (`pasteToEditor`, `getAllThemes`, `getTheme`, `setTheme`) ([#1411](https://github.com/draht-dev/draht/pull/1411) by [@aliou](https://github.com/aliou))
|
|
772
|
+
- Fixed `rg` not available in bash tool by downloading it at startup alongside `fd` ([#1348](https://github.com/draht-dev/draht/issues/1348))
|
|
773
|
+
- Fixed `custom-compaction` example to use `ModelRegistry` ([#1387](https://github.com/draht-dev/draht/issues/1387))
|
|
774
|
+
- Google providers now support full JSON Schema in tool declarations (anyOf, oneOf, const, etc.) ([#1398](https://github.com/draht-dev/draht/issues/1398) by [@jarib](https://github.com/jarib))
|
|
608
775
|
- Reverted incorrect Antigravity model change: `claude-opus-4-6-thinking` back to `claude-opus-4-5-thinking` (model does not exist on Antigravity endpoint)
|
|
609
776
|
- Updated the Antigravity system instruction to a more compact version for Google Gemini CLI compatibility
|
|
610
|
-
- Corrected opencode context windows for Claude Sonnet 4 and 4.5 ([#1383](https://github.com/
|
|
611
|
-
- Fixed subagent example unknown-agent errors to include available agent names ([#1414](https://github.com/
|
|
777
|
+
- Corrected opencode context windows for Claude Sonnet 4 and 4.5 ([#1383](https://github.com/draht-dev/draht/issues/1383))
|
|
778
|
+
- Fixed subagent example unknown-agent errors to include available agent names ([#1414](https://github.com/draht-dev/draht/pull/1414) by [@dnouri](https://github.com/dnouri))
|
|
612
779
|
|
|
613
780
|
## [0.52.8] - 2026-02-07
|
|
614
781
|
|
|
615
782
|
### New Features
|
|
616
783
|
|
|
617
|
-
- Emacs-style kill ring (`ctrl+k`/`ctrl+y`/`alt+y`) and undo (`ctrl+z`) in the editor input ([#1373](https://github.com/
|
|
618
|
-
- OpenRouter `auto` model alias (`openrouter:auto`) for automatic model routing ([#1361](https://github.com/
|
|
619
|
-
- Extensions can programmatically paste content into the editor via `pasteToEditor` in the extension UI context. See [docs/extensions.md](docs/extensions.md) ([#1351](https://github.com/
|
|
620
|
-
- `pi <package> --help` and invalid subcommands now show helpful output instead of failing silently ([#1347](https://github.com/
|
|
784
|
+
- Emacs-style kill ring (`ctrl+k`/`ctrl+y`/`alt+y`) and undo (`ctrl+z`) in the editor input ([#1373](https://github.com/draht-dev/draht/pull/1373) by [@Perlence](https://github.com/Perlence))
|
|
785
|
+
- OpenRouter `auto` model alias (`openrouter:auto`) for automatic model routing ([#1361](https://github.com/draht-dev/draht/pull/1361) by [@yogasanas](https://github.com/yogasanas))
|
|
786
|
+
- Extensions can programmatically paste content into the editor via `pasteToEditor` in the extension UI context. See [docs/extensions.md](docs/extensions.md) ([#1351](https://github.com/draht-dev/draht/pull/1351) by [@kaofelix](https://github.com/kaofelix))
|
|
787
|
+
- `pi <package> --help` and invalid subcommands now show helpful output instead of failing silently ([#1347](https://github.com/draht-dev/draht/pull/1347) by [@ferologics](https://github.com/ferologics))
|
|
621
788
|
|
|
622
789
|
### Added
|
|
623
790
|
|
|
624
|
-
- Added `pasteToEditor` to extension UI context for programmatic editor paste ([#1351](https://github.com/
|
|
625
|
-
- Added package subcommand help and friendly error messages for invalid commands ([#1347](https://github.com/
|
|
626
|
-
- Added OpenRouter `auto` model alias for automatic model routing ([#1361](https://github.com/
|
|
627
|
-
- Added kill ring (ctrl+k/ctrl+y/alt+y) and undo (ctrl+z) support to the editor input ([#1373](https://github.com/
|
|
791
|
+
- Added `pasteToEditor` to extension UI context for programmatic editor paste ([#1351](https://github.com/draht-dev/draht/pull/1351) by [@kaofelix](https://github.com/kaofelix))
|
|
792
|
+
- Added package subcommand help and friendly error messages for invalid commands ([#1347](https://github.com/draht-dev/draht/pull/1347) by [@ferologics](https://github.com/ferologics))
|
|
793
|
+
- Added OpenRouter `auto` model alias for automatic model routing ([#1361](https://github.com/draht-dev/draht/pull/1361) by [@yogasanas](https://github.com/yogasanas))
|
|
794
|
+
- Added kill ring (ctrl+k/ctrl+y/alt+y) and undo (ctrl+z) support to the editor input ([#1373](https://github.com/draht-dev/draht/pull/1373) by [@Perlence](https://github.com/Perlence))
|
|
628
795
|
|
|
629
796
|
### Changed
|
|
630
797
|
|
|
631
|
-
- Replaced Claude Opus 4.5 with Opus 4.6 as default model ([#1345](https://github.com/
|
|
798
|
+
- Replaced Claude Opus 4.5 with Opus 4.6 as default model ([#1345](https://github.com/draht-dev/draht/pull/1345) by [@calvin-hpnet](https://github.com/calvin-hpnet))
|
|
632
799
|
|
|
633
800
|
### Fixed
|
|
634
801
|
|
|
635
802
|
- Fixed temporary git package caches (`-e <git-url>`) to refresh on cache hits for unpinned sources, including detached/no-upstream checkouts
|
|
636
|
-
- Fixed aborting retries when an extension customizes the editor ([#1364](https://github.com/
|
|
637
|
-
- Fixed autocomplete not propagating to custom editors created by extensions ([#1372](https://github.com/
|
|
803
|
+
- Fixed aborting retries when an extension customizes the editor ([#1364](https://github.com/draht-dev/draht/pull/1364) by [@Perlence](https://github.com/Perlence))
|
|
804
|
+
- Fixed autocomplete not propagating to custom editors created by extensions ([#1372](https://github.com/draht-dev/draht/pull/1372) by [@Perlence](https://github.com/Perlence))
|
|
638
805
|
- Fixed extension shutdown to use clean TUI shutdown path, preventing orphaned processes
|
|
639
806
|
|
|
640
807
|
## [0.52.7] - 2026-02-06
|
|
@@ -651,30 +818,30 @@
|
|
|
651
818
|
|
|
652
819
|
### Added
|
|
653
820
|
|
|
654
|
-
- Added `modelOverrides` in `models.json` to customize individual built-in models per provider without full provider replacement ([#1332](https://github.com/
|
|
655
|
-
- Added `AWS_BEDROCK_SKIP_AUTH` and `AWS_BEDROCK_FORCE_HTTP1` environment variables for connecting to unauthenticated Bedrock proxies ([#1320](https://github.com/
|
|
821
|
+
- Added `modelOverrides` in `models.json` to customize individual built-in models per provider without full provider replacement ([#1332](https://github.com/draht-dev/draht/pull/1332) by [@charles-cooper](https://github.com/charles-cooper))
|
|
822
|
+
- Added `AWS_BEDROCK_SKIP_AUTH` and `AWS_BEDROCK_FORCE_HTTP1` environment variables for connecting to unauthenticated Bedrock proxies ([#1320](https://github.com/draht-dev/draht/pull/1320) by [@virtuald](https://github.com/virtuald))
|
|
656
823
|
|
|
657
824
|
### Fixed
|
|
658
825
|
|
|
659
826
|
- Fixed extra spacing between thinking-only assistant content and subsequent tool execution blocks when assistant messages contain no text
|
|
660
|
-
- Fixed queued steering/follow-up/custom messages remaining stuck after threshold auto-compaction by resuming the agent loop when Agent-level queues still contain pending messages ([#1312](https://github.com/
|
|
661
|
-
- Fixed `tool_result` extension handlers to chain result patches across handlers instead of last-handler-wins behavior ([#1280](https://github.com/
|
|
662
|
-
- Fixed compromised auth lock files being handled gracefully instead of crashing auth storage initialization ([#1322](https://github.com/
|
|
663
|
-
- Fixed Bedrock adaptive thinking handling for Claude Opus 4.6 with interleaved thinking beta responses ([#1323](https://github.com/
|
|
664
|
-
- Fixed OpenAI Responses API requests to use `store: false` by default to avoid server-side history logging ([#1308](https://github.com/
|
|
665
|
-
- Fixed interactive mode startup by initializing autocomplete after resources are loaded ([#1328](https://github.com/
|
|
666
|
-
- Fixed `modelOverrides` merge behavior for nested objects and documented usage details ([#1062](https://github.com/
|
|
827
|
+
- Fixed queued steering/follow-up/custom messages remaining stuck after threshold auto-compaction by resuming the agent loop when Agent-level queues still contain pending messages ([#1312](https://github.com/draht-dev/draht/pull/1312) by [@ferologics](https://github.com/ferologics))
|
|
828
|
+
- Fixed `tool_result` extension handlers to chain result patches across handlers instead of last-handler-wins behavior ([#1280](https://github.com/draht-dev/draht/issues/1280))
|
|
829
|
+
- Fixed compromised auth lock files being handled gracefully instead of crashing auth storage initialization ([#1322](https://github.com/draht-dev/draht/issues/1322))
|
|
830
|
+
- Fixed Bedrock adaptive thinking handling for Claude Opus 4.6 with interleaved thinking beta responses ([#1323](https://github.com/draht-dev/draht/pull/1323) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
831
|
+
- Fixed OpenAI Responses API requests to use `store: false` by default to avoid server-side history logging ([#1308](https://github.com/draht-dev/draht/issues/1308))
|
|
832
|
+
- Fixed interactive mode startup by initializing autocomplete after resources are loaded ([#1328](https://github.com/draht-dev/draht/issues/1328))
|
|
833
|
+
- Fixed `modelOverrides` merge behavior for nested objects and documented usage details ([#1062](https://github.com/draht-dev/draht/issues/1062))
|
|
667
834
|
|
|
668
835
|
## [0.52.6] - 2026-02-05
|
|
669
836
|
|
|
670
837
|
### Breaking Changes
|
|
671
838
|
|
|
672
|
-
- Removed `/exit` command handling. Use `/quit` to exit ([#1303](https://github.com/
|
|
839
|
+
- Removed `/exit` command handling. Use `/quit` to exit ([#1303](https://github.com/draht-dev/draht/issues/1303))
|
|
673
840
|
|
|
674
841
|
### Fixed
|
|
675
842
|
|
|
676
|
-
- Fixed `/quit` being shadowed by fuzzy slash command autocomplete matches from skills by adding `/quit` to built-in command autocomplete ([#1303](https://github.com/
|
|
677
|
-
- Fixed local package source parsing and settings normalization regression that misclassified relative paths as git URLs and prevented globally installed local packages from loading after restart ([#1304](https://github.com/
|
|
843
|
+
- Fixed `/quit` being shadowed by fuzzy slash command autocomplete matches from skills by adding `/quit` to built-in command autocomplete ([#1303](https://github.com/draht-dev/draht/issues/1303))
|
|
844
|
+
- Fixed local package source parsing and settings normalization regression that misclassified relative paths as git URLs and prevented globally installed local packages from loading after restart ([#1304](https://github.com/draht-dev/draht/issues/1304))
|
|
678
845
|
|
|
679
846
|
## [0.52.5] - 2026-02-05
|
|
680
847
|
|
|
@@ -686,7 +853,7 @@
|
|
|
686
853
|
|
|
687
854
|
### Fixed
|
|
688
855
|
|
|
689
|
-
- Fixed extensions setting not respecting `package.json` `pi.extensions` manifest when directory is specified directly ([#1302](https://github.com/
|
|
856
|
+
- Fixed extensions setting not respecting `package.json` `pi.extensions` manifest when directory is specified directly ([#1302](https://github.com/draht-dev/draht/pull/1302) by [@hjanuschka](https://github.com/hjanuschka))
|
|
690
857
|
|
|
691
858
|
## [0.52.3] - 2026-02-05
|
|
692
859
|
|
|
@@ -724,52 +891,52 @@
|
|
|
724
891
|
- Added `minimal-mode.ts` example extension demonstrating how to override built-in tool rendering for a minimal display mode
|
|
725
892
|
- Added Claude Opus 4.6 model to the model catalog
|
|
726
893
|
- Added GPT-5.3 Codex model to the model catalog (OpenAI Codex provider only)
|
|
727
|
-
- Added SSH URL support for git packages ([#1287](https://github.com/
|
|
728
|
-
- Model selectors now display the selected model name ([#1275](https://github.com/
|
|
894
|
+
- Added SSH URL support for git packages ([#1287](https://github.com/draht-dev/draht/pull/1287) by [@markusn](https://github.com/markusn))
|
|
895
|
+
- Model selectors now display the selected model name ([#1275](https://github.com/draht-dev/draht/pull/1275) by [@haoqixu](https://github.com/haoqixu))
|
|
729
896
|
|
|
730
897
|
### Fixed
|
|
731
898
|
|
|
732
|
-
- Fixed HTML export losing indentation in ANSI-rendered tool output (e.g. JSON code blocks in custom tool results) ([#1269](https://github.com/
|
|
733
|
-
- Fixed images being silently dropped when `prompt()` is called with both `images` and `streamingBehavior` during streaming. `steer()`, `followUp()`, and the corresponding RPC commands now accept optional images. ([#1271](https://github.com/
|
|
734
|
-
- CLI `--help`, `--version`, `--list-models`, and `--export` now exit even if extensions keep the event loop alive ([#1285](https://github.com/
|
|
735
|
-
- Fixed crash when models send malformed tool arguments (objects instead of strings) ([#1259](https://github.com/
|
|
736
|
-
- Fixed custom message expand state not being respected ([#1258](https://github.com/
|
|
899
|
+
- Fixed HTML export losing indentation in ANSI-rendered tool output (e.g. JSON code blocks in custom tool results) ([#1269](https://github.com/draht-dev/draht/pull/1269) by [@aliou](https://github.com/aliou))
|
|
900
|
+
- Fixed images being silently dropped when `prompt()` is called with both `images` and `streamingBehavior` during streaming. `steer()`, `followUp()`, and the corresponding RPC commands now accept optional images. ([#1271](https://github.com/draht-dev/draht/pull/1271) by [@aliou](https://github.com/aliou))
|
|
901
|
+
- CLI `--help`, `--version`, `--list-models`, and `--export` now exit even if extensions keep the event loop alive ([#1285](https://github.com/draht-dev/draht/pull/1285) by [@ferologics](https://github.com/ferologics))
|
|
902
|
+
- Fixed crash when models send malformed tool arguments (objects instead of strings) ([#1259](https://github.com/draht-dev/draht/issues/1259))
|
|
903
|
+
- Fixed custom message expand state not being respected ([#1258](https://github.com/draht-dev/draht/pull/1258) by [@Gurpartap](https://github.com/Gurpartap))
|
|
737
904
|
- Fixed skill loader to respect .gitignore, .ignore, and .fdignore when scanning directories
|
|
738
905
|
|
|
739
906
|
## [0.51.6] - 2026-02-04
|
|
740
907
|
|
|
741
908
|
### New Features
|
|
742
909
|
|
|
743
|
-
- Configurable resume keybinding action for opening the session resume selector. See [docs/keybindings.md](docs/keybindings.md). ([#1249](https://github.com/
|
|
910
|
+
- Configurable resume keybinding action for opening the session resume selector. See [docs/keybindings.md](docs/keybindings.md). ([#1249](https://github.com/draht-dev/draht/pull/1249) by [@juanibiapina](https://github.com/juanibiapina))
|
|
744
911
|
|
|
745
912
|
### Added
|
|
746
913
|
|
|
747
|
-
- Added `resume` as a configurable keybinding action, allowing users to bind a key to open the session resume selector (like `newSession`, `tree`, and `fork`) ([#1249](https://github.com/
|
|
914
|
+
- Added `resume` as a configurable keybinding action, allowing users to bind a key to open the session resume selector (like `newSession`, `tree`, and `fork`) ([#1249](https://github.com/draht-dev/draht/pull/1249) by [@juanibiapina](https://github.com/juanibiapina))
|
|
748
915
|
|
|
749
916
|
### Changed
|
|
750
917
|
|
|
751
|
-
- Slash command menu now triggers on the first line even when other lines have content, allowing commands to be prepended to existing text ([#1227](https://github.com/
|
|
918
|
+
- Slash command menu now triggers on the first line even when other lines have content, allowing commands to be prepended to existing text ([#1227](https://github.com/draht-dev/draht/pull/1227) by [@aliou](https://github.com/aliou))
|
|
752
919
|
|
|
753
920
|
### Fixed
|
|
754
921
|
|
|
755
922
|
- Ignored unknown skill frontmatter fields when loading skills
|
|
756
|
-
- Fixed `/reload` not picking up changes in global settings.json ([#1241](https://github.com/
|
|
923
|
+
- Fixed `/reload` not picking up changes in global settings.json ([#1241](https://github.com/draht-dev/draht/issues/1241))
|
|
757
924
|
- Fixed forked sessions to persist the user message after forking
|
|
758
|
-
- Fixed forked sessions to write to new session files instead of the parent ([#1242](https://github.com/
|
|
759
|
-
- Fixed local package removal to normalize paths before comparison ([#1243](https://github.com/
|
|
760
|
-
- Fixed OpenAI Codex Responses provider to respect configured baseUrl ([#1244](https://github.com/
|
|
761
|
-
- Fixed `/settings` crashing in narrow terminals by handling small widths in the settings list ([#1246](https://github.com/
|
|
762
|
-
- Fixed Unix bash detection to fall back to PATH lookup when `/bin/bash` is unavailable, including Termux setups ([#1230](https://github.com/
|
|
925
|
+
- Fixed forked sessions to write to new session files instead of the parent ([#1242](https://github.com/draht-dev/draht/issues/1242))
|
|
926
|
+
- Fixed local package removal to normalize paths before comparison ([#1243](https://github.com/draht-dev/draht/issues/1243))
|
|
927
|
+
- Fixed OpenAI Codex Responses provider to respect configured baseUrl ([#1244](https://github.com/draht-dev/draht/issues/1244))
|
|
928
|
+
- Fixed `/settings` crashing in narrow terminals by handling small widths in the settings list ([#1246](https://github.com/draht-dev/draht/pull/1246) by [@haoqixu](https://github.com/haoqixu))
|
|
929
|
+
- Fixed Unix bash detection to fall back to PATH lookup when `/bin/bash` is unavailable, including Termux setups ([#1230](https://github.com/draht-dev/draht/pull/1230) by [@VaclavSynacek](https://github.com/VaclavSynacek))
|
|
763
930
|
|
|
764
931
|
## [0.51.5] - 2026-02-04
|
|
765
932
|
|
|
766
933
|
### Changed
|
|
767
934
|
|
|
768
|
-
- Changed Bedrock model generation to drop legacy workarounds now handled upstream ([#1239](https://github.com/
|
|
935
|
+
- Changed Bedrock model generation to drop legacy workarounds now handled upstream ([#1239](https://github.com/draht-dev/draht/pull/1239) by [@unexge](https://github.com/unexge))
|
|
769
936
|
|
|
770
937
|
### Fixed
|
|
771
938
|
|
|
772
|
-
- Fixed Windows package installs regression by using shell execution instead of `.cmd` resolution ([#1220](https://github.com/
|
|
939
|
+
- Fixed Windows package installs regression by using shell execution instead of `.cmd` resolution ([#1220](https://github.com/draht-dev/draht/issues/1220))
|
|
773
940
|
|
|
774
941
|
## [0.51.4] - 2026-02-03
|
|
775
942
|
|
|
@@ -783,7 +950,7 @@
|
|
|
783
950
|
|
|
784
951
|
### Fixed
|
|
785
952
|
|
|
786
|
-
- Fixed input scrolling to avoid splitting emoji sequences ([#1228](https://github.com/
|
|
953
|
+
- Fixed input scrolling to avoid splitting emoji sequences ([#1228](https://github.com/draht-dev/draht/pull/1228) by [@haoqixu](https://github.com/haoqixu))
|
|
787
954
|
|
|
788
955
|
## [0.51.3] - 2026-02-03
|
|
789
956
|
|
|
@@ -798,15 +965,15 @@
|
|
|
798
965
|
|
|
799
966
|
### Added
|
|
800
967
|
|
|
801
|
-
- Added `ExtensionAPI.getCommands()` to let extensions list available slash commands (extensions, prompt templates, skills) for invocation via `prompt` ([#1210](https://github.com/
|
|
802
|
-
- Added `commands.ts` example extension and exported `SlashCommandInfo` types for command discovery integrations ([#1210](https://github.com/
|
|
803
|
-
- Added local path support for `pi install` and `pi remove` with relative paths stored against the target settings file ([#1216](https://github.com/
|
|
968
|
+
- Added `ExtensionAPI.getCommands()` to let extensions list available slash commands (extensions, prompt templates, skills) for invocation via `prompt` ([#1210](https://github.com/draht-dev/draht/pull/1210) by [@w-winter](https://github.com/w-winter))
|
|
969
|
+
- Added `commands.ts` example extension and exported `SlashCommandInfo` types for command discovery integrations ([#1210](https://github.com/draht-dev/draht/pull/1210) by [@w-winter](https://github.com/w-winter))
|
|
970
|
+
- Added local path support for `pi install` and `pi remove` with relative paths stored against the target settings file ([#1216](https://github.com/draht-dev/draht/issues/1216))
|
|
804
971
|
|
|
805
972
|
### Fixed
|
|
806
973
|
|
|
807
974
|
- Fixed default thinking level persistence so settings-derived defaults are saved and restored correctly
|
|
808
|
-
- Fixed Windows package installs by resolving `npm.cmd` when `npm` is not directly executable ([#1220](https://github.com/
|
|
809
|
-
- Fixed xhigh thinking level support check to accept gpt-5.2 model IDs ([#1209](https://github.com/
|
|
975
|
+
- Fixed Windows package installs by resolving `npm.cmd` when `npm` is not directly executable ([#1220](https://github.com/draht-dev/draht/issues/1220))
|
|
976
|
+
- Fixed xhigh thinking level support check to accept gpt-5.2 model IDs ([#1209](https://github.com/draht-dev/draht/issues/1209))
|
|
810
977
|
|
|
811
978
|
## [0.51.2] - 2026-02-03
|
|
812
979
|
|
|
@@ -816,31 +983,31 @@
|
|
|
816
983
|
|
|
817
984
|
### Added
|
|
818
985
|
|
|
819
|
-
- Added ExtensionUIContext getToolsExpanded and setToolsExpanded for controlling tool output expansion ([#1199](https://github.com/
|
|
820
|
-
- Added install method detection to show package manager specific update instructions ([#1203](https://github.com/
|
|
986
|
+
- Added ExtensionUIContext getToolsExpanded and setToolsExpanded for controlling tool output expansion ([#1199](https://github.com/draht-dev/draht/pull/1199) by [@academo](https://github.com/academo))
|
|
987
|
+
- Added install method detection to show package manager specific update instructions ([#1203](https://github.com/draht-dev/draht/pull/1203) by [@Itsnotaka](https://github.com/Itsnotaka))
|
|
821
988
|
|
|
822
989
|
### Fixed
|
|
823
990
|
|
|
824
|
-
- Fixed Kitty key release events leaking to parent shell over slow SSH connections by draining stdin for up to 1s on exit ([#1204](https://github.com/
|
|
991
|
+
- Fixed Kitty key release events leaking to parent shell over slow SSH connections by draining stdin for up to 1s on exit ([#1204](https://github.com/draht-dev/draht/issues/1204))
|
|
825
992
|
- Fixed legacy newline handling in the editor to preserve previous newline behavior
|
|
826
993
|
- Fixed @ autocomplete to include hidden paths
|
|
827
994
|
- Fixed submit fallback to honor configured keybindings
|
|
828
|
-
- Fixed extension commands conflicting with built-in commands by skipping them ([#1196](https://github.com/
|
|
829
|
-
- Fixed @-prefixed tool paths failing to resolve by stripping the prefix ([#1206](https://github.com/
|
|
995
|
+
- Fixed extension commands conflicting with built-in commands by skipping them ([#1196](https://github.com/draht-dev/draht/pull/1196) by [@haoqixu](https://github.com/haoqixu))
|
|
996
|
+
- Fixed @-prefixed tool paths failing to resolve by stripping the prefix ([#1206](https://github.com/draht-dev/draht/issues/1206))
|
|
830
997
|
- Fixed install method detection to avoid stale cached results
|
|
831
998
|
|
|
832
999
|
## [0.51.1] - 2026-02-02
|
|
833
1000
|
|
|
834
1001
|
### New Features
|
|
835
1002
|
|
|
836
|
-
- **Extension API switchSession**: Extensions can now programmatically switch sessions via `ctx.switchSession(sessionPath)`. See [docs/extensions.md](docs/extensions.md). ([#1187](https://github.com/
|
|
1003
|
+
- **Extension API switchSession**: Extensions can now programmatically switch sessions via `ctx.switchSession(sessionPath)`. See [docs/extensions.md](docs/extensions.md). ([#1187](https://github.com/draht-dev/draht/issues/1187))
|
|
837
1004
|
- **Clear on shrink setting**: New `terminal.clearOnShrink` setting keeps the editor and footer pinned to the bottom of the terminal when content shrinks. May cause some flicker due to redraws. Disabled by default. Enable via `/settings` or `PI_CLEAR_ON_SHRINK=1` env var.
|
|
838
1005
|
|
|
839
1006
|
### Fixed
|
|
840
1007
|
|
|
841
|
-
- Fixed scoped models not finding valid credentials after logout ([#1194](https://github.com/
|
|
842
|
-
- Fixed Ctrl+D exit closing the parent SSH session due to stdin buffer race condition ([#1185](https://github.com/
|
|
843
|
-
- Fixed emoji cursor positioning in editor input ([#1183](https://github.com/
|
|
1008
|
+
- Fixed scoped models not finding valid credentials after logout ([#1194](https://github.com/draht-dev/draht/pull/1194) by [@terrorobe](https://github.com/terrorobe))
|
|
1009
|
+
- Fixed Ctrl+D exit closing the parent SSH session due to stdin buffer race condition ([#1185](https://github.com/draht-dev/draht/issues/1185))
|
|
1010
|
+
- Fixed emoji cursor positioning in editor input ([#1183](https://github.com/draht-dev/draht/pull/1183) by [@haoqixu](https://github.com/haoqixu))
|
|
844
1011
|
|
|
845
1012
|
## [0.51.0] - 2026-02-01
|
|
846
1013
|
|
|
@@ -860,117 +1027,117 @@
|
|
|
860
1027
|
- **Android/Termux support**: Pi now runs on Android via Termux. Install with:
|
|
861
1028
|
```bash
|
|
862
1029
|
pkg install nodejs termux-api git
|
|
863
|
-
npm install -g @
|
|
1030
|
+
npm install -g @draht/coding-agent
|
|
864
1031
|
mkdir -p ~/.pi/agent
|
|
865
1032
|
echo "You are running on Android in Termux." > ~/.pi/agent/AGENTS.md
|
|
866
1033
|
```
|
|
867
|
-
Clipboard operations fall back gracefully when `termux-api` is unavailable. ([#1164](https://github.com/
|
|
868
|
-
- **Bash spawn hook**: Extensions can now intercept and modify bash commands before execution via `pi.setBashSpawnHook()`. Adjust the command string, working directory, or environment variables. See [docs/extensions.md](docs/extensions.md). ([#1160](https://github.com/
|
|
1034
|
+
Clipboard operations fall back gracefully when `termux-api` is unavailable. ([#1164](https://github.com/draht-dev/draht/issues/1164))
|
|
1035
|
+
- **Bash spawn hook**: Extensions can now intercept and modify bash commands before execution via `pi.setBashSpawnHook()`. Adjust the command string, working directory, or environment variables. See [docs/extensions.md](docs/extensions.md). ([#1160](https://github.com/draht-dev/draht/pull/1160) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
869
1036
|
- **Linux ARM64 musl support**: Pi now runs on Alpine Linux ARM64 (linux-arm64-musl) via updated clipboard dependency.
|
|
870
|
-
- **Nix/Guix support**: `PI_PACKAGE_DIR` environment variable overrides the package path for content-addressed package managers where store paths tokenize poorly. See [README.md#environment-variables](README.md#environment-variables). ([#1153](https://github.com/
|
|
871
|
-
- **Named session filter**: `/resume` picker now supports filtering to show only named sessions via Ctrl+N. Configurable via `toggleSessionNamedFilter` keybinding. See [docs/keybindings.md](docs/keybindings.md). ([#1128](https://github.com/
|
|
872
|
-
- **Typed tool call events**: Extension developers can narrow `ToolCallEvent` types using `isToolCallEventType()` for better TypeScript support. See [docs/extensions.md#tool-call-events](docs/extensions.md#tool-call-events). ([#1147](https://github.com/
|
|
873
|
-
- **Extension UI Protocol**: Full RPC documentation and examples for extension dialogs and notifications, enabling headless clients to support interactive extensions. See [docs/rpc.md#extension-ui-protocol](docs/rpc.md#extension-ui-protocol). ([#1144](https://github.com/
|
|
1037
|
+
- **Nix/Guix support**: `PI_PACKAGE_DIR` environment variable overrides the package path for content-addressed package managers where store paths tokenize poorly. See [README.md#environment-variables](README.md#environment-variables). ([#1153](https://github.com/draht-dev/draht/pull/1153) by [@odysseus0](https://github.com/odysseus0))
|
|
1038
|
+
- **Named session filter**: `/resume` picker now supports filtering to show only named sessions via Ctrl+N. Configurable via `toggleSessionNamedFilter` keybinding. See [docs/keybindings.md](docs/keybindings.md). ([#1128](https://github.com/draht-dev/draht/pull/1128) by [@w-winter](https://github.com/w-winter))
|
|
1039
|
+
- **Typed tool call events**: Extension developers can narrow `ToolCallEvent` types using `isToolCallEventType()` for better TypeScript support. See [docs/extensions.md#tool-call-events](docs/extensions.md#tool-call-events). ([#1147](https://github.com/draht-dev/draht/pull/1147) by [@giuseppeg](https://github.com/giuseppeg))
|
|
1040
|
+
- **Extension UI Protocol**: Full RPC documentation and examples for extension dialogs and notifications, enabling headless clients to support interactive extensions. See [docs/rpc.md#extension-ui-protocol](docs/rpc.md#extension-ui-protocol). ([#1144](https://github.com/draht-dev/draht/pull/1144) by [@aliou](https://github.com/aliou))
|
|
874
1041
|
|
|
875
1042
|
### Added
|
|
876
1043
|
|
|
877
1044
|
- Added Linux ARM64 musl (Alpine Linux) support via clipboard dependency update
|
|
878
|
-
- Added Android/Termux support with graceful clipboard fallback ([#1164](https://github.com/
|
|
879
|
-
- Added bash tool spawn hook support for adjusting command, cwd, and env before execution ([#1160](https://github.com/
|
|
880
|
-
- Added typed `ToolCallEvent.input` per tool with `isToolCallEventType()` type guard for narrowing built-in tool events ([#1147](https://github.com/
|
|
881
|
-
- Exported `discoverAndLoadExtensions` from package to enable extension testing without a local repo clone ([#1148](https://github.com/
|
|
882
|
-
- Added Extension UI Protocol documentation to RPC docs covering all request/response types for extension dialogs and notifications ([#1144](https://github.com/
|
|
883
|
-
- Added `rpc-demo.ts` example extension exercising all RPC-supported extension UI methods ([#1144](https://github.com/
|
|
884
|
-
- Added `rpc-extension-ui.ts` TUI example client demonstrating the extension UI protocol with interactive dialogs ([#1144](https://github.com/
|
|
885
|
-
- Added `PI_PACKAGE_DIR` environment variable to override package path for content-addressed package managers (Nix, Guix) where store paths tokenize poorly ([#1153](https://github.com/
|
|
886
|
-
- `/resume` session picker now supports named-only filter toggle (default Ctrl+N, configurable via `toggleSessionNamedFilter`) to show only named sessions ([#1128](https://github.com/
|
|
887
|
-
|
|
888
|
-
### Fixed
|
|
889
|
-
|
|
890
|
-
- Fixed `pi update` not updating npm/git packages when called without arguments ([#1151](https://github.com/
|
|
891
|
-
- Fixed `models.json` validation requiring fields documented as optional. Model definitions now only require `id`; all other fields (`name`, `reasoning`, `input`, `cost`, `contextWindow`, `maxTokens`) have sensible defaults. ([#1146](https://github.com/
|
|
892
|
-
- Fixed models resolving relative paths in skill files from cwd instead of skill directory by adding explicit guidance to skills preamble ([#1136](https://github.com/
|
|
893
|
-
- Fixed tree selector losing focus state when navigating entries ([#1142](https://github.com/
|
|
894
|
-
- Fixed `cacheRetention` option not being passed through in `buildBaseOptions` ([#1154](https://github.com/
|
|
895
|
-
- Fixed OAuth login/refresh not using HTTP proxy settings (`HTTP_PROXY`, `HTTPS_PROXY` env vars) ([#1132](https://github.com/
|
|
896
|
-
- Fixed `pi update <source>` installing packages locally when the source is only registered globally ([#1163](https://github.com/
|
|
897
|
-
- Fixed tree navigation with summarization overwriting editor content typed during the summarization wait ([#1169](https://github.com/
|
|
1045
|
+
- Added Android/Termux support with graceful clipboard fallback ([#1164](https://github.com/draht-dev/draht/issues/1164))
|
|
1046
|
+
- Added bash tool spawn hook support for adjusting command, cwd, and env before execution ([#1160](https://github.com/draht-dev/draht/pull/1160) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1047
|
+
- Added typed `ToolCallEvent.input` per tool with `isToolCallEventType()` type guard for narrowing built-in tool events ([#1147](https://github.com/draht-dev/draht/pull/1147) by [@giuseppeg](https://github.com/giuseppeg))
|
|
1048
|
+
- Exported `discoverAndLoadExtensions` from package to enable extension testing without a local repo clone ([#1148](https://github.com/draht-dev/draht/issues/1148))
|
|
1049
|
+
- Added Extension UI Protocol documentation to RPC docs covering all request/response types for extension dialogs and notifications ([#1144](https://github.com/draht-dev/draht/pull/1144) by [@aliou](https://github.com/aliou))
|
|
1050
|
+
- Added `rpc-demo.ts` example extension exercising all RPC-supported extension UI methods ([#1144](https://github.com/draht-dev/draht/pull/1144) by [@aliou](https://github.com/aliou))
|
|
1051
|
+
- Added `rpc-extension-ui.ts` TUI example client demonstrating the extension UI protocol with interactive dialogs ([#1144](https://github.com/draht-dev/draht/pull/1144) by [@aliou](https://github.com/aliou))
|
|
1052
|
+
- Added `PI_PACKAGE_DIR` environment variable to override package path for content-addressed package managers (Nix, Guix) where store paths tokenize poorly ([#1153](https://github.com/draht-dev/draht/pull/1153) by [@odysseus0](https://github.com/odysseus0))
|
|
1053
|
+
- `/resume` session picker now supports named-only filter toggle (default Ctrl+N, configurable via `toggleSessionNamedFilter`) to show only named sessions ([#1128](https://github.com/draht-dev/draht/pull/1128) by [@w-winter](https://github.com/w-winter))
|
|
1054
|
+
|
|
1055
|
+
### Fixed
|
|
1056
|
+
|
|
1057
|
+
- Fixed `pi update` not updating npm/git packages when called without arguments ([#1151](https://github.com/draht-dev/draht/issues/1151))
|
|
1058
|
+
- Fixed `models.json` validation requiring fields documented as optional. Model definitions now only require `id`; all other fields (`name`, `reasoning`, `input`, `cost`, `contextWindow`, `maxTokens`) have sensible defaults. ([#1146](https://github.com/draht-dev/draht/issues/1146))
|
|
1059
|
+
- Fixed models resolving relative paths in skill files from cwd instead of skill directory by adding explicit guidance to skills preamble ([#1136](https://github.com/draht-dev/draht/issues/1136))
|
|
1060
|
+
- Fixed tree selector losing focus state when navigating entries ([#1142](https://github.com/draht-dev/draht/pull/1142) by [@Perlence](https://github.com/Perlence))
|
|
1061
|
+
- Fixed `cacheRetention` option not being passed through in `buildBaseOptions` ([#1154](https://github.com/draht-dev/draht/issues/1154))
|
|
1062
|
+
- Fixed OAuth login/refresh not using HTTP proxy settings (`HTTP_PROXY`, `HTTPS_PROXY` env vars) ([#1132](https://github.com/draht-dev/draht/issues/1132))
|
|
1063
|
+
- Fixed `pi update <source>` installing packages locally when the source is only registered globally ([#1163](https://github.com/draht-dev/draht/pull/1163) by [@aliou](https://github.com/aliou))
|
|
1064
|
+
- Fixed tree navigation with summarization overwriting editor content typed during the summarization wait ([#1169](https://github.com/draht-dev/draht/pull/1169) by [@aliou](https://github.com/aliou))
|
|
898
1065
|
|
|
899
1066
|
## [0.50.9] - 2026-02-01
|
|
900
1067
|
|
|
901
1068
|
### Added
|
|
902
1069
|
|
|
903
1070
|
- Added `titlebar-spinner.ts` example extension that shows a braille spinner animation in the terminal title while the agent is working.
|
|
904
|
-
- Added `PI_AI_ANTIGRAVITY_VERSION` environment variable documentation to help text ([#1129](https://github.com/
|
|
905
|
-
- Added `cacheRetention` stream option with provider-specific mappings for prompt cache controls, defaulting to short retention ([#1134](https://github.com/
|
|
1071
|
+
- Added `PI_AI_ANTIGRAVITY_VERSION` environment variable documentation to help text ([#1129](https://github.com/draht-dev/draht/issues/1129))
|
|
1072
|
+
- Added `cacheRetention` stream option with provider-specific mappings for prompt cache controls, defaulting to short retention ([#1134](https://github.com/draht-dev/draht/issues/1134))
|
|
906
1073
|
|
|
907
1074
|
## [0.50.8] - 2026-02-01
|
|
908
1075
|
|
|
909
1076
|
### Added
|
|
910
1077
|
|
|
911
|
-
- Added `newSession`, `tree`, and `fork` keybinding actions for `/new`, `/tree`, and `/fork` commands. All unbound by default. ([#1114](https://github.com/
|
|
912
|
-
- Added `retry.maxDelayMs` setting to cap maximum server-requested retry delay. When a provider requests a longer delay (e.g., Google's "quota will reset after 5h"), the request fails immediately with an informative error instead of waiting silently. Default: 60000ms (60 seconds). ([#1123](https://github.com/
|
|
913
|
-
- `/resume` session picker: new "Threaded" sort mode (now default) displays sessions in a tree structure based on fork relationships. Compact one-line format with message count and age on the right. ([#1124](https://github.com/
|
|
914
|
-
- Added Qwen CLI OAuth provider extension example. ([#940](https://github.com/
|
|
915
|
-
- Added OAuth `modifyModels` hook support for extension-registered providers at registration time. ([#940](https://github.com/
|
|
916
|
-
- Added Qwen thinking format support for OpenAI-compatible completions via `enable_thinking`. ([#940](https://github.com/
|
|
917
|
-
- Added sticky column tracking for vertical cursor navigation so the editor restores the preferred column when moving across short lines. ([#1120](https://github.com/
|
|
1078
|
+
- Added `newSession`, `tree`, and `fork` keybinding actions for `/new`, `/tree`, and `/fork` commands. All unbound by default. ([#1114](https://github.com/draht-dev/draht/pull/1114) by [@juanibiapina](https://github.com/juanibiapina))
|
|
1079
|
+
- Added `retry.maxDelayMs` setting to cap maximum server-requested retry delay. When a provider requests a longer delay (e.g., Google's "quota will reset after 5h"), the request fails immediately with an informative error instead of waiting silently. Default: 60000ms (60 seconds). ([#1123](https://github.com/draht-dev/draht/issues/1123))
|
|
1080
|
+
- `/resume` session picker: new "Threaded" sort mode (now default) displays sessions in a tree structure based on fork relationships. Compact one-line format with message count and age on the right. ([#1124](https://github.com/draht-dev/draht/pull/1124) by [@pasky](https://github.com/pasky))
|
|
1081
|
+
- Added Qwen CLI OAuth provider extension example. ([#940](https://github.com/draht-dev/draht/pull/940) by [@4h9fbZ](https://github.com/4h9fbZ))
|
|
1082
|
+
- Added OAuth `modifyModels` hook support for extension-registered providers at registration time. ([#940](https://github.com/draht-dev/draht/pull/940) by [@4h9fbZ](https://github.com/4h9fbZ))
|
|
1083
|
+
- Added Qwen thinking format support for OpenAI-compatible completions via `enable_thinking`. ([#940](https://github.com/draht-dev/draht/pull/940) by [@4h9fbZ](https://github.com/4h9fbZ))
|
|
1084
|
+
- Added sticky column tracking for vertical cursor navigation so the editor restores the preferred column when moving across short lines. ([#1120](https://github.com/draht-dev/draht/pull/1120) by [@Perlence](https://github.com/Perlence))
|
|
918
1085
|
- Added `resources_discover` extension hook to supply additional skills, prompts, and themes on startup and reload.
|
|
919
1086
|
|
|
920
1087
|
### Fixed
|
|
921
1088
|
|
|
922
|
-
- Fixed `switchSession()` appending spurious `thinking_level_change` entry to session log on resume. `setThinkingLevel()` is now idempotent. ([#1118](https://github.com/
|
|
923
|
-
- Fixed clipboard image paste on WSL2/WSLg writing invalid PNG files when clipboard provides `image/bmp` format. BMP images are now converted to PNG before saving. ([#1112](https://github.com/
|
|
924
|
-
- Fixed Kitty keyboard protocol base layout fallback so non-QWERTY layouts do not trigger wrong shortcuts ([#1096](https://github.com/
|
|
1089
|
+
- Fixed `switchSession()` appending spurious `thinking_level_change` entry to session log on resume. `setThinkingLevel()` is now idempotent. ([#1118](https://github.com/draht-dev/draht/issues/1118))
|
|
1090
|
+
- Fixed clipboard image paste on WSL2/WSLg writing invalid PNG files when clipboard provides `image/bmp` format. BMP images are now converted to PNG before saving. ([#1112](https://github.com/draht-dev/draht/pull/1112) by [@lightningRalf](https://github.com/lightningRalf))
|
|
1091
|
+
- Fixed Kitty keyboard protocol base layout fallback so non-QWERTY layouts do not trigger wrong shortcuts ([#1096](https://github.com/draht-dev/draht/pull/1096) by [@rytswd](https://github.com/rytswd))
|
|
925
1092
|
|
|
926
1093
|
## [0.50.7] - 2026-01-31
|
|
927
1094
|
|
|
928
1095
|
### Fixed
|
|
929
1096
|
|
|
930
|
-
- Multi-file extensions in packages now work correctly. Package resolution now uses the same discovery logic as local extensions: only `index.ts` (or manifest-declared entries) are loaded from subdirectories, not helper modules. ([#1102](https://github.com/
|
|
1097
|
+
- Multi-file extensions in packages now work correctly. Package resolution now uses the same discovery logic as local extensions: only `index.ts` (or manifest-declared entries) are loaded from subdirectories, not helper modules. ([#1102](https://github.com/draht-dev/draht/issues/1102))
|
|
931
1098
|
|
|
932
1099
|
## [0.50.6] - 2026-01-30
|
|
933
1100
|
|
|
934
1101
|
### Added
|
|
935
1102
|
|
|
936
|
-
- Added `ctx.getSystemPrompt()` to extension context for accessing the current effective system prompt ([#1098](https://github.com/
|
|
1103
|
+
- Added `ctx.getSystemPrompt()` to extension context for accessing the current effective system prompt ([#1098](https://github.com/draht-dev/draht/pull/1098) by [@kaofelix](https://github.com/kaofelix))
|
|
937
1104
|
|
|
938
1105
|
### Fixed
|
|
939
1106
|
|
|
940
|
-
- Fixed empty rows appearing below footer when content shrinks (e.g., closing `/tree`, clearing multi-line editor) ([#1095](https://github.com/
|
|
941
|
-
- Fixed terminal cursor remaining hidden after exiting TUI via `stop()` when a render was pending ([#1099](https://github.com/
|
|
1107
|
+
- Fixed empty rows appearing below footer when content shrinks (e.g., closing `/tree`, clearing multi-line editor) ([#1095](https://github.com/draht-dev/draht/pull/1095) by [@marckrenn](https://github.com/marckrenn))
|
|
1108
|
+
- Fixed terminal cursor remaining hidden after exiting TUI via `stop()` when a render was pending ([#1099](https://github.com/draht-dev/draht/pull/1099) by [@haoqixu](https://github.com/haoqixu))
|
|
942
1109
|
|
|
943
1110
|
## [0.50.4] - 2026-01-30
|
|
944
1111
|
|
|
945
1112
|
### New Features
|
|
946
1113
|
|
|
947
|
-
- **OSC 52 clipboard support for SSH/mosh** - The `/copy` command now works over remote connections using the OSC 52 terminal escape sequence. No more clipboard frustration when using pi over SSH. ([#1069](https://github.com/
|
|
948
|
-
- **Vercel AI Gateway routing** - Route requests through Vercel's AI Gateway with provider failover and load balancing. Configure via `vercelGatewayRouting` in models.json. ([#1051](https://github.com/
|
|
949
|
-
- **Character jump navigation** - Bash/Readline-style character search: Ctrl+] jumps forward to the next occurrence of a character, Ctrl+Alt+] jumps backward. ([#1074](https://github.com/
|
|
950
|
-
- **Emacs-style Ctrl+B/Ctrl+F navigation** - Alternative keybindings for word navigation (cursor word left/right) in the editor. ([#1053](https://github.com/
|
|
951
|
-
- **Line boundary navigation** - Editor jumps to line start when pressing Up at first visual line, and line end when pressing Down at last visual line. ([#1050](https://github.com/
|
|
952
|
-
- **Performance improvements** - Optimized image line detection and box rendering cache in the TUI for better rendering performance. ([#1084](https://github.com/
|
|
953
|
-
- **`set_session_name` RPC command** - Headless clients can now set the session display name programmatically. ([#1075](https://github.com/
|
|
954
|
-
- **Disable double-escape behavior** - New `"none"` option for `doubleEscapeAction` setting completely disables the double-escape shortcut. ([#973](https://github.com/
|
|
1114
|
+
- **OSC 52 clipboard support for SSH/mosh** - The `/copy` command now works over remote connections using the OSC 52 terminal escape sequence. No more clipboard frustration when using pi over SSH. ([#1069](https://github.com/draht-dev/draht/issues/1069) by [@gturkoglu](https://github.com/gturkoglu))
|
|
1115
|
+
- **Vercel AI Gateway routing** - Route requests through Vercel's AI Gateway with provider failover and load balancing. Configure via `vercelGatewayRouting` in models.json. ([#1051](https://github.com/draht-dev/draht/pull/1051) by [@ben-vargas](https://github.com/ben-vargas))
|
|
1116
|
+
- **Character jump navigation** - Bash/Readline-style character search: Ctrl+] jumps forward to the next occurrence of a character, Ctrl+Alt+] jumps backward. ([#1074](https://github.com/draht-dev/draht/pull/1074) by [@Perlence](https://github.com/Perlence))
|
|
1117
|
+
- **Emacs-style Ctrl+B/Ctrl+F navigation** - Alternative keybindings for word navigation (cursor word left/right) in the editor. ([#1053](https://github.com/draht-dev/draht/pull/1053) by [@ninlds](https://github.com/ninlds))
|
|
1118
|
+
- **Line boundary navigation** - Editor jumps to line start when pressing Up at first visual line, and line end when pressing Down at last visual line. ([#1050](https://github.com/draht-dev/draht/pull/1050) by [@4h9fbZ](https://github.com/4h9fbZ))
|
|
1119
|
+
- **Performance improvements** - Optimized image line detection and box rendering cache in the TUI for better rendering performance. ([#1084](https://github.com/draht-dev/draht/pull/1084) by [@can1357](https://github.com/can1357))
|
|
1120
|
+
- **`set_session_name` RPC command** - Headless clients can now set the session display name programmatically. ([#1075](https://github.com/draht-dev/draht/pull/1075) by [@dnouri](https://github.com/dnouri))
|
|
1121
|
+
- **Disable double-escape behavior** - New `"none"` option for `doubleEscapeAction` setting completely disables the double-escape shortcut. ([#973](https://github.com/draht-dev/draht/issues/973) by [@juanibiapina](https://github.com/juanibiapina))
|
|
955
1122
|
|
|
956
1123
|
### Added
|
|
957
1124
|
|
|
958
|
-
- Added "none" option to `doubleEscapeAction` setting to disable double-escape behavior entirely ([#973](https://github.com/
|
|
959
|
-
- Added OSC 52 clipboard support for SSH/mosh sessions. `/copy` now works over remote connections. ([#1069](https://github.com/
|
|
960
|
-
- Added Vercel AI Gateway routing support via `vercelGatewayRouting` in models.json ([#1051](https://github.com/
|
|
961
|
-
- Added Ctrl+B and Ctrl+F keybindings for cursor word left/right navigation in the editor ([#1053](https://github.com/
|
|
962
|
-
- Added character jump navigation: Ctrl+] jumps forward to next character, Ctrl+Alt+] jumps backward ([#1074](https://github.com/
|
|
963
|
-
- Editor now jumps to line start when pressing Up at first visual line, and line end when pressing Down at last visual line ([#1050](https://github.com/
|
|
964
|
-
- Optimized image line detection and box rendering cache for better TUI performance ([#1084](https://github.com/
|
|
965
|
-
- Added `set_session_name` RPC command for headless clients to set session display name ([#1075](https://github.com/
|
|
1125
|
+
- Added "none" option to `doubleEscapeAction` setting to disable double-escape behavior entirely ([#973](https://github.com/draht-dev/draht/issues/973) by [@juanibiapina](https://github.com/juanibiapina))
|
|
1126
|
+
- Added OSC 52 clipboard support for SSH/mosh sessions. `/copy` now works over remote connections. ([#1069](https://github.com/draht-dev/draht/issues/1069) by [@gturkoglu](https://github.com/gturkoglu))
|
|
1127
|
+
- Added Vercel AI Gateway routing support via `vercelGatewayRouting` in models.json ([#1051](https://github.com/draht-dev/draht/pull/1051) by [@ben-vargas](https://github.com/ben-vargas))
|
|
1128
|
+
- Added Ctrl+B and Ctrl+F keybindings for cursor word left/right navigation in the editor ([#1053](https://github.com/draht-dev/draht/pull/1053) by [@ninlds](https://github.com/ninlds))
|
|
1129
|
+
- Added character jump navigation: Ctrl+] jumps forward to next character, Ctrl+Alt+] jumps backward ([#1074](https://github.com/draht-dev/draht/pull/1074) by [@Perlence](https://github.com/Perlence))
|
|
1130
|
+
- Editor now jumps to line start when pressing Up at first visual line, and line end when pressing Down at last visual line ([#1050](https://github.com/draht-dev/draht/pull/1050) by [@4h9fbZ](https://github.com/4h9fbZ))
|
|
1131
|
+
- Optimized image line detection and box rendering cache for better TUI performance ([#1084](https://github.com/draht-dev/draht/pull/1084) by [@can1357](https://github.com/can1357))
|
|
1132
|
+
- Added `set_session_name` RPC command for headless clients to set session display name ([#1075](https://github.com/draht-dev/draht/pull/1075) by [@dnouri](https://github.com/dnouri))
|
|
966
1133
|
|
|
967
1134
|
### Fixed
|
|
968
1135
|
|
|
969
|
-
- Read tool now handles macOS filenames with curly quotes (U+2019) and NFD Unicode normalization ([#1078](https://github.com/
|
|
970
|
-
- Respect .gitignore, .ignore, and .fdignore files when scanning package resources for skills, prompts, themes, and extensions ([#1072](https://github.com/
|
|
971
|
-
- Fixed tool call argument defaults when providers omit inputs ([#1065](https://github.com/
|
|
972
|
-
- Invalid JSON in settings.json no longer causes the file to be overwritten with empty settings ([#1054](https://github.com/
|
|
973
|
-
- Config selector now shows folder name for extensions with duplicate display names ([#1064](https://github.com/
|
|
1136
|
+
- Read tool now handles macOS filenames with curly quotes (U+2019) and NFD Unicode normalization ([#1078](https://github.com/draht-dev/draht/issues/1078))
|
|
1137
|
+
- Respect .gitignore, .ignore, and .fdignore files when scanning package resources for skills, prompts, themes, and extensions ([#1072](https://github.com/draht-dev/draht/issues/1072))
|
|
1138
|
+
- Fixed tool call argument defaults when providers omit inputs ([#1065](https://github.com/draht-dev/draht/issues/1065))
|
|
1139
|
+
- Invalid JSON in settings.json no longer causes the file to be overwritten with empty settings ([#1054](https://github.com/draht-dev/draht/issues/1054))
|
|
1140
|
+
- Config selector now shows folder name for extensions with duplicate display names ([#1064](https://github.com/draht-dev/draht/pull/1064) by [@Graffioh](https://github.com/Graffioh))
|
|
974
1141
|
|
|
975
1142
|
## [0.50.3] - 2026-01-29
|
|
976
1143
|
|
|
@@ -998,45 +1165,45 @@
|
|
|
998
1165
|
|
|
999
1166
|
### Added
|
|
1000
1167
|
|
|
1001
|
-
- Added Hugging Face provider support via OpenAI-compatible Inference Router ([#994](https://github.com/
|
|
1002
|
-
- Added `PI_CACHE_RETENTION` environment variable to control cache TTL for Anthropic (5m vs 1h) and OpenAI (in-memory vs 24h). Set to `long` for extended retention. ([#967](https://github.com/
|
|
1003
|
-
- Added `autocompleteMaxVisible` setting for configurable autocomplete dropdown height (3-20 items, default 5) ([#972](https://github.com/
|
|
1168
|
+
- Added Hugging Face provider support via OpenAI-compatible Inference Router ([#994](https://github.com/draht-dev/draht/issues/994))
|
|
1169
|
+
- Added `PI_CACHE_RETENTION` environment variable to control cache TTL for Anthropic (5m vs 1h) and OpenAI (in-memory vs 24h). Set to `long` for extended retention. ([#967](https://github.com/draht-dev/draht/issues/967))
|
|
1170
|
+
- Added `autocompleteMaxVisible` setting for configurable autocomplete dropdown height (3-20 items, default 5) ([#972](https://github.com/draht-dev/draht/pull/972) by [@masonc15](https://github.com/masonc15))
|
|
1004
1171
|
- Added `/files` command to list all file operations (read, write, edit) in the current session
|
|
1005
|
-
- Added shell-style keybindings: `alt+b`/`alt+f` for word navigation, `ctrl+d` for delete character forward (when editor has text) ([#1043](https://github.com/
|
|
1006
|
-
- Added `get_commands` RPC method for headless clients to list available commands ([#995](https://github.com/
|
|
1172
|
+
- Added shell-style keybindings: `alt+b`/`alt+f` for word navigation, `ctrl+d` for delete character forward (when editor has text) ([#1043](https://github.com/draht-dev/draht/issues/1043) by [@jasonish](https://github.com/jasonish))
|
|
1173
|
+
- Added `get_commands` RPC method for headless clients to list available commands ([#995](https://github.com/draht-dev/draht/pull/995) by [@dnouri](https://github.com/dnouri))
|
|
1007
1174
|
|
|
1008
1175
|
### Changed
|
|
1009
1176
|
|
|
1010
|
-
- Improved `extractCursorPosition` performance in TUI: scans lines in reverse order, early-outs when cursor is above viewport ([#1004](https://github.com/
|
|
1011
|
-
- Autocomplete improvements: better handling of partial matches and edge cases ([#1024](https://github.com/
|
|
1177
|
+
- Improved `extractCursorPosition` performance in TUI: scans lines in reverse order, early-outs when cursor is above viewport ([#1004](https://github.com/draht-dev/draht/pull/1004) by [@can1357](https://github.com/can1357))
|
|
1178
|
+
- Autocomplete improvements: better handling of partial matches and edge cases ([#1024](https://github.com/draht-dev/draht/pull/1024) by [@Perlence](https://github.com/Perlence))
|
|
1012
1179
|
|
|
1013
1180
|
### Fixed
|
|
1014
1181
|
|
|
1015
1182
|
- External edits to `settings.json` are now preserved when pi reloads or saves unrelated settings. Previously, editing settings.json directly (e.g., removing a package from `packages` array) would be silently reverted on next pi startup when automatic setters like `setLastChangelogVersion()` triggered a save.
|
|
1016
|
-
- Fixed custom header not displaying correctly with `quietStartup` enabled ([#1039](https://github.com/
|
|
1017
|
-
- Empty array in package filter now disables all resources instead of falling back to manifest defaults ([#1044](https://github.com/
|
|
1018
|
-
- Auto-retry counter now resets after each successful LLM response instead of accumulating across tool-use turns ([#1019](https://github.com/
|
|
1019
|
-
- Fixed incorrect `.md` file names in warning messages ([#1041](https://github.com/
|
|
1020
|
-
- Fixed provider name hidden in footer when terminal is narrow ([#981](https://github.com/
|
|
1021
|
-
- Fixed backslash input buffering causing delayed character display in editor ([#1037](https://github.com/
|
|
1022
|
-
- Fixed markdown table rendering with proper row dividers and minimum column width ([#997](https://github.com/
|
|
1023
|
-
- Fixed OpenAI completions `toolChoice` handling ([#998](https://github.com/
|
|
1024
|
-
- Fixed cross-provider handoff failing when switching from OpenAI Responses API providers due to pipe-separated tool call IDs ([#1022](https://github.com/
|
|
1025
|
-
- Fixed 429 rate limit errors incorrectly triggering auto-compaction instead of retry with backoff ([#1038](https://github.com/
|
|
1026
|
-
- Fixed Anthropic provider to handle `sensitive` stop_reason returned by API ([#978](https://github.com/
|
|
1027
|
-
- Fixed DeepSeek API compatibility by detecting `deepseek.com` URLs and disabling unsupported `developer` role ([#1048](https://github.com/
|
|
1028
|
-
- Fixed Anthropic provider to preserve input token counts when proxies omit them in `message_delta` events ([#1045](https://github.com/
|
|
1183
|
+
- Fixed custom header not displaying correctly with `quietStartup` enabled ([#1039](https://github.com/draht-dev/draht/pull/1039) by [@tudoroancea](https://github.com/tudoroancea))
|
|
1184
|
+
- Empty array in package filter now disables all resources instead of falling back to manifest defaults ([#1044](https://github.com/draht-dev/draht/issues/1044))
|
|
1185
|
+
- Auto-retry counter now resets after each successful LLM response instead of accumulating across tool-use turns ([#1019](https://github.com/draht-dev/draht/issues/1019))
|
|
1186
|
+
- Fixed incorrect `.md` file names in warning messages ([#1041](https://github.com/draht-dev/draht/issues/1041) by [@llimllib](https://github.com/llimllib))
|
|
1187
|
+
- Fixed provider name hidden in footer when terminal is narrow ([#981](https://github.com/draht-dev/draht/pull/981) by [@Perlence](https://github.com/Perlence))
|
|
1188
|
+
- Fixed backslash input buffering causing delayed character display in editor ([#1037](https://github.com/draht-dev/draht/pull/1037) by [@Perlence](https://github.com/Perlence))
|
|
1189
|
+
- Fixed markdown table rendering with proper row dividers and minimum column width ([#997](https://github.com/draht-dev/draht/pull/997) by [@tmustier](https://github.com/tmustier))
|
|
1190
|
+
- Fixed OpenAI completions `toolChoice` handling ([#998](https://github.com/draht-dev/draht/pull/998) by [@williamtwomey](https://github.com/williamtwomey))
|
|
1191
|
+
- Fixed cross-provider handoff failing when switching from OpenAI Responses API providers due to pipe-separated tool call IDs ([#1022](https://github.com/draht-dev/draht/issues/1022))
|
|
1192
|
+
- Fixed 429 rate limit errors incorrectly triggering auto-compaction instead of retry with backoff ([#1038](https://github.com/draht-dev/draht/issues/1038))
|
|
1193
|
+
- Fixed Anthropic provider to handle `sensitive` stop_reason returned by API ([#978](https://github.com/draht-dev/draht/issues/978))
|
|
1194
|
+
- Fixed DeepSeek API compatibility by detecting `deepseek.com` URLs and disabling unsupported `developer` role ([#1048](https://github.com/draht-dev/draht/issues/1048))
|
|
1195
|
+
- Fixed Anthropic provider to preserve input token counts when proxies omit them in `message_delta` events ([#1045](https://github.com/draht-dev/draht/issues/1045))
|
|
1029
1196
|
- Fixed `autocompleteMaxVisible` setting not persisting to `settings.json`
|
|
1030
1197
|
|
|
1031
1198
|
## [0.50.1] - 2026-01-26
|
|
1032
1199
|
|
|
1033
1200
|
### Fixed
|
|
1034
1201
|
|
|
1035
|
-
- Git extension updates now handle force-pushed remotes gracefully instead of failing ([#961](https://github.com/
|
|
1036
|
-
- Extension `ctx.newSession({ setup })` now properly syncs agent state and renders messages after setup callback runs ([#968](https://github.com/
|
|
1202
|
+
- Git extension updates now handle force-pushed remotes gracefully instead of failing ([#961](https://github.com/draht-dev/draht/pull/961) by [@aliou](https://github.com/aliou))
|
|
1203
|
+
- Extension `ctx.newSession({ setup })` now properly syncs agent state and renders messages after setup callback runs ([#968](https://github.com/draht-dev/draht/issues/968))
|
|
1037
1204
|
- Fixed extension UI bindings not initializing when starting with no extensions, which broke UI methods after `/reload`
|
|
1038
|
-
- Fixed `/hotkeys` output to title-case extension hotkeys ([#969](https://github.com/
|
|
1039
|
-
- Fixed model catalog generation to exclude deprecated OpenCode Zen models ([#970](https://github.com/
|
|
1205
|
+
- Fixed `/hotkeys` output to title-case extension hotkeys ([#969](https://github.com/draht-dev/draht/pull/969) by [@Perlence](https://github.com/Perlence))
|
|
1206
|
+
- Fixed model catalog generation to exclude deprecated OpenCode Zen models ([#970](https://github.com/draht-dev/draht/pull/970) by [@DanielTatarkin](https://github.com/DanielTatarkin))
|
|
1040
1207
|
- Fixed git extension removal to prune empty directories
|
|
1041
1208
|
|
|
1042
1209
|
## [0.50.0] - 2026-01-26
|
|
@@ -1061,125 +1228,125 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1061
1228
|
|
|
1062
1229
|
### Breaking Changes
|
|
1063
1230
|
|
|
1064
|
-
- Header values in `models.json` now resolve environment variables (if a header value matches an env var name, the env var value is used). This may change behavior if a literal header value accidentally matches an env var name. ([#909](https://github.com/
|
|
1065
|
-
- External packages (npm/git) are now configured via `packages` array in settings.json instead of `extensions`. Existing npm:/git: entries in `extensions` are auto-migrated. ([#645](https://github.com/
|
|
1066
|
-
- Resource loading now uses `ResourceLoader` only and settings.json uses arrays for extensions, skills, prompts, and themes ([#645](https://github.com/
|
|
1067
|
-
- Removed `discoverAuthStorage` and `discoverModels` from the SDK. `AuthStorage` and `ModelRegistry` now default to `~/.pi/agent` paths unless you pass an `agentDir` ([#645](https://github.com/
|
|
1231
|
+
- Header values in `models.json` now resolve environment variables (if a header value matches an env var name, the env var value is used). This may change behavior if a literal header value accidentally matches an env var name. ([#909](https://github.com/draht-dev/draht/issues/909))
|
|
1232
|
+
- External packages (npm/git) are now configured via `packages` array in settings.json instead of `extensions`. Existing npm:/git: entries in `extensions` are auto-migrated. ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1233
|
+
- Resource loading now uses `ResourceLoader` only and settings.json uses arrays for extensions, skills, prompts, and themes ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1234
|
+
- Removed `discoverAuthStorage` and `discoverModels` from the SDK. `AuthStorage` and `ModelRegistry` now default to `~/.pi/agent` paths unless you pass an `agentDir` ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1068
1235
|
|
|
1069
1236
|
### Added
|
|
1070
1237
|
|
|
1071
|
-
- Session renaming in `/resume` picker via `Ctrl+R` without opening the session ([#863](https://github.com/
|
|
1072
|
-
- Session selector keybindings are now configurable ([#948](https://github.com/
|
|
1073
|
-
- `disable-model-invocation` frontmatter field for skills to prevent agentic invocation while still allowing explicit `/skill:name` commands ([#927](https://github.com/
|
|
1074
|
-
- Exposed `copyToClipboard` utility for extensions ([#926](https://github.com/
|
|
1075
|
-
- Skill invocation messages are now collapsible in chat output, showing collapsed by default with skill name and expand hint ([#894](https://github.com/
|
|
1076
|
-
- Header values in `models.json` now support environment variables and shell commands, matching `apiKey` resolution ([#909](https://github.com/
|
|
1077
|
-
- Added HTTP proxy environment variable support for API requests ([#942](https://github.com/
|
|
1078
|
-
- Added OpenRouter provider routing support for custom models via `openRouterRouting` compat field ([#859](https://github.com/
|
|
1079
|
-
- Added `azure-openai-responses` provider support for Azure OpenAI Responses API. ([#890](https://github.com/
|
|
1080
|
-
- Added changelog link to update notifications ([#925](https://github.com/
|
|
1081
|
-
- Added `--verbose` CLI flag to override quietStartup setting ([#906](https://github.com/
|
|
1238
|
+
- Session renaming in `/resume` picker via `Ctrl+R` without opening the session ([#863](https://github.com/draht-dev/draht/pull/863) by [@svkozak](https://github.com/svkozak))
|
|
1239
|
+
- Session selector keybindings are now configurable ([#948](https://github.com/draht-dev/draht/pull/948) by [@aos](https://github.com/aos))
|
|
1240
|
+
- `disable-model-invocation` frontmatter field for skills to prevent agentic invocation while still allowing explicit `/skill:name` commands ([#927](https://github.com/draht-dev/draht/issues/927))
|
|
1241
|
+
- Exposed `copyToClipboard` utility for extensions ([#926](https://github.com/draht-dev/draht/issues/926) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1242
|
+
- Skill invocation messages are now collapsible in chat output, showing collapsed by default with skill name and expand hint ([#894](https://github.com/draht-dev/draht/issues/894))
|
|
1243
|
+
- Header values in `models.json` now support environment variables and shell commands, matching `apiKey` resolution ([#909](https://github.com/draht-dev/draht/issues/909))
|
|
1244
|
+
- Added HTTP proxy environment variable support for API requests ([#942](https://github.com/draht-dev/draht/pull/942) by [@haoqixu](https://github.com/haoqixu))
|
|
1245
|
+
- Added OpenRouter provider routing support for custom models via `openRouterRouting` compat field ([#859](https://github.com/draht-dev/draht/pull/859) by [@v01dpr1mr0s3](https://github.com/v01dpr1mr0s3))
|
|
1246
|
+
- Added `azure-openai-responses` provider support for Azure OpenAI Responses API. ([#890](https://github.com/draht-dev/draht/pull/890) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
1247
|
+
- Added changelog link to update notifications ([#925](https://github.com/draht-dev/draht/pull/925) by [@dannote](https://github.com/dannote))
|
|
1248
|
+
- Added `--verbose` CLI flag to override quietStartup setting ([#906](https://github.com/draht-dev/draht/pull/906) by [@Perlence](https://github.com/Perlence))
|
|
1082
1249
|
- `markdown.codeBlockIndent` setting to customize code block indentation in rendered output
|
|
1083
|
-
- Extension package management with `pi install`, `pi remove`, `pi update`, and `pi list` commands ([#645](https://github.com/
|
|
1084
|
-
- Package filtering: selectively load resources from packages using object form in `packages` array ([#645](https://github.com/
|
|
1085
|
-
- Glob pattern support with minimatch in package filters, top-level settings arrays, and pi manifest (e.g., `"!funky.json"`, `"*.ts"`) ([#645](https://github.com/
|
|
1086
|
-
- `/reload` command to reload extensions, skills, prompts, and themes ([#645](https://github.com/
|
|
1087
|
-
- `pi config` command with TUI to enable/disable package and top-level resources via patterns ([#938](https://github.com/
|
|
1088
|
-
- CLI flags for `--skill`, `--prompt-template`, `--theme`, `--no-prompt-templates`, and `--no-themes` ([#645](https://github.com/
|
|
1089
|
-
- Package deduplication: if same package appears in global and project settings, project wins ([#645](https://github.com/
|
|
1090
|
-
- Unified collision reporting with `ResourceDiagnostic` type for all resource types ([#645](https://github.com/
|
|
1250
|
+
- Extension package management with `pi install`, `pi remove`, `pi update`, and `pi list` commands ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1251
|
+
- Package filtering: selectively load resources from packages using object form in `packages` array ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1252
|
+
- Glob pattern support with minimatch in package filters, top-level settings arrays, and pi manifest (e.g., `"!funky.json"`, `"*.ts"`) ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1253
|
+
- `/reload` command to reload extensions, skills, prompts, and themes ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1254
|
+
- `pi config` command with TUI to enable/disable package and top-level resources via patterns ([#938](https://github.com/draht-dev/draht/issues/938))
|
|
1255
|
+
- CLI flags for `--skill`, `--prompt-template`, `--theme`, `--no-prompt-templates`, and `--no-themes` ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1256
|
+
- Package deduplication: if same package appears in global and project settings, project wins ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1257
|
+
- Unified collision reporting with `ResourceDiagnostic` type for all resource types ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1091
1258
|
- Show provider alongside the model in the footer if multiple providers are available
|
|
1092
1259
|
- Custom provider support via `pi.registerProvider()` with `streamSimple` for custom API implementations
|
|
1093
1260
|
- Added `custom-provider.ts` example extension demonstrating custom Anthropic provider with OAuth
|
|
1094
1261
|
|
|
1095
1262
|
### Changed
|
|
1096
1263
|
|
|
1097
|
-
- `/resume` picker sort toggle moved to `Ctrl+S` to free `Ctrl+R` for rename ([#863](https://github.com/
|
|
1098
|
-
- HTML export: clicking a sidebar message now navigates to its newest leaf and scrolls to it, instead of truncating the branch ([#853](https://github.com/
|
|
1099
|
-
- HTML export: active path is now visually highlighted with dimmed off-path nodes ([#929](https://github.com/
|
|
1264
|
+
- `/resume` picker sort toggle moved to `Ctrl+S` to free `Ctrl+R` for rename ([#863](https://github.com/draht-dev/draht/pull/863) by [@svkozak](https://github.com/svkozak))
|
|
1265
|
+
- HTML export: clicking a sidebar message now navigates to its newest leaf and scrolls to it, instead of truncating the branch ([#853](https://github.com/draht-dev/draht/pull/853) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1266
|
+
- HTML export: active path is now visually highlighted with dimmed off-path nodes ([#929](https://github.com/draht-dev/draht/pull/929) by [@hewliyang](https://github.com/hewliyang))
|
|
1100
1267
|
- Azure OpenAI Responses provider now uses base URL configuration with deployment-aware model mapping and no longer includes service tier handling
|
|
1101
|
-
- `/reload` now re-renders the entire scrollback so updated extension components are visible immediately ([#928](https://github.com/
|
|
1102
|
-
- Skill, prompt template, and theme discovery now use settings and CLI path arrays instead of legacy filters ([#645](https://github.com/
|
|
1268
|
+
- `/reload` now re-renders the entire scrollback so updated extension components are visible immediately ([#928](https://github.com/draht-dev/draht/pull/928) by [@ferologics](https://github.com/ferologics))
|
|
1269
|
+
- Skill, prompt template, and theme discovery now use settings and CLI path arrays instead of legacy filters ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1103
1270
|
|
|
1104
1271
|
### Fixed
|
|
1105
1272
|
|
|
1106
|
-
- Extension `setWorkingMessage()` calls in `agent_start` handlers now work correctly; previously the message was silently ignored because the loading animation didn't exist yet ([#935](https://github.com/
|
|
1273
|
+
- Extension `setWorkingMessage()` calls in `agent_start` handlers now work correctly; previously the message was silently ignored because the loading animation didn't exist yet ([#935](https://github.com/draht-dev/draht/issues/935))
|
|
1107
1274
|
- Fixed package auto-discovery to respect loader rules, config overrides, and force-exclude patterns
|
|
1108
|
-
- Fixed /reload restoring the correct editor after reload ([#949](https://github.com/
|
|
1109
|
-
- Fixed distributed themes breaking `/export` ([#946](https://github.com/
|
|
1275
|
+
- Fixed /reload restoring the correct editor after reload ([#949](https://github.com/draht-dev/draht/pull/949) by [@Perlence](https://github.com/Perlence))
|
|
1276
|
+
- Fixed distributed themes breaking `/export` ([#946](https://github.com/draht-dev/draht/pull/946) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1110
1277
|
- Fixed startup hints to clarify thinking level selection and expanded thinking guidance
|
|
1111
1278
|
- Fixed SDK initial model resolution to use `findInitialModel` and default to Claude Opus 4.5 for Anthropic models
|
|
1112
1279
|
- Fixed no-models warning to include the `/model` instruction
|
|
1113
1280
|
- Fixed authentication error messages to point to the authentication documentation
|
|
1114
1281
|
- Fixed bash output hint lines to truncate to terminal width
|
|
1115
|
-
- Fixed custom editors to honor the `paddingX` setting ([#936](https://github.com/
|
|
1282
|
+
- Fixed custom editors to honor the `paddingX` setting ([#936](https://github.com/draht-dev/draht/pull/936) by [@Perlence](https://github.com/Perlence))
|
|
1116
1283
|
- Fixed system prompt tool list to show only built-in tools
|
|
1117
1284
|
- Fixed package manager to check npm package versions before using cached copies
|
|
1118
1285
|
- Fixed package manager to run `npm install` after cloning git repositories with a package.json
|
|
1119
1286
|
- Fixed extension provider registrations to apply before model resolution
|
|
1120
|
-
- Fixed editor multi-line insertion handling and lastAction tracking ([#945](https://github.com/
|
|
1121
|
-
- Fixed editor word wrapping to reserve a cursor column ([#934](https://github.com/
|
|
1122
|
-
- Fixed editor word wrapping to use single-pass backtracking for whitespace handling ([#924](https://github.com/
|
|
1287
|
+
- Fixed editor multi-line insertion handling and lastAction tracking ([#945](https://github.com/draht-dev/draht/pull/945) by [@Perlence](https://github.com/Perlence))
|
|
1288
|
+
- Fixed editor word wrapping to reserve a cursor column ([#934](https://github.com/draht-dev/draht/pull/934) by [@Perlence](https://github.com/Perlence))
|
|
1289
|
+
- Fixed editor word wrapping to use single-pass backtracking for whitespace handling ([#924](https://github.com/draht-dev/draht/pull/924) by [@Perlence](https://github.com/Perlence))
|
|
1123
1290
|
- Fixed Kitty image ID allocation and cleanup to prevent image ID collisions
|
|
1124
|
-
- Fixed overlays staying centered after terminal resizes ([#950](https://github.com/
|
|
1291
|
+
- Fixed overlays staying centered after terminal resizes ([#950](https://github.com/draht-dev/draht/pull/950) by [@nicobailon](https://github.com/nicobailon))
|
|
1125
1292
|
- Fixed streaming dispatch to use the model api type instead of hardcoded API defaults
|
|
1126
1293
|
- Fixed Google providers to default tool call arguments to an empty object when omitted
|
|
1127
|
-
- Fixed OpenAI Responses streaming to handle `arguments.done` events on OpenAI-compatible endpoints ([#917](https://github.com/
|
|
1294
|
+
- Fixed OpenAI Responses streaming to handle `arguments.done` events on OpenAI-compatible endpoints ([#917](https://github.com/draht-dev/draht/pull/917) by [@williballenthin](https://github.com/williballenthin))
|
|
1128
1295
|
- Fixed OpenAI Codex Responses tool strictness handling after the shared responses refactor
|
|
1129
1296
|
- Fixed Azure OpenAI Responses streaming to guard deltas before content parts and correct metadata and handoff gating
|
|
1130
|
-
- Fixed OpenAI completions tool-result image batching after consecutive tool results ([#902](https://github.com/
|
|
1131
|
-
- Off-by-one error in bash output "earlier lines" count caused by counting spacing newline as hidden content ([#921](https://github.com/
|
|
1132
|
-
- User package filters now layer on top of manifest filters instead of replacing them ([#645](https://github.com/
|
|
1297
|
+
- Fixed OpenAI completions tool-result image batching after consecutive tool results ([#902](https://github.com/draht-dev/draht/pull/902) by [@terrorobe](https://github.com/terrorobe))
|
|
1298
|
+
- Off-by-one error in bash output "earlier lines" count caused by counting spacing newline as hidden content ([#921](https://github.com/draht-dev/draht/issues/921))
|
|
1299
|
+
- User package filters now layer on top of manifest filters instead of replacing them ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1133
1300
|
- Auto-retry now handles "terminated" errors from Codex API mid-stream failures
|
|
1134
|
-
- Follow-up queue (Alt+Enter) now sends full paste content instead of `[paste #N ...]` markers ([#912](https://github.com/
|
|
1135
|
-
- Fixed Alt-Up not restoring messages queued during compaction ([#923](https://github.com/
|
|
1136
|
-
- Fixed session corruption when loading empty or invalid session files via `--session` flag ([#932](https://github.com/
|
|
1137
|
-
- Fixed extension shortcuts not firing when extension also uses `setEditorComponent()` ([#947](https://github.com/
|
|
1138
|
-
- Session "modified" time now uses last message timestamp instead of file mtime, so renaming doesn't reorder the recent list ([#863](https://github.com/
|
|
1301
|
+
- Follow-up queue (Alt+Enter) now sends full paste content instead of `[paste #N ...]` markers ([#912](https://github.com/draht-dev/draht/issues/912))
|
|
1302
|
+
- Fixed Alt-Up not restoring messages queued during compaction ([#923](https://github.com/draht-dev/draht/pull/923) by [@aliou](https://github.com/aliou))
|
|
1303
|
+
- Fixed session corruption when loading empty or invalid session files via `--session` flag ([#932](https://github.com/draht-dev/draht/issues/932) by [@armanddp](https://github.com/armanddp))
|
|
1304
|
+
- Fixed extension shortcuts not firing when extension also uses `setEditorComponent()` ([#947](https://github.com/draht-dev/draht/pull/947) by [@Perlence](https://github.com/Perlence))
|
|
1305
|
+
- Session "modified" time now uses last message timestamp instead of file mtime, so renaming doesn't reorder the recent list ([#863](https://github.com/draht-dev/draht/pull/863) by [@svkozak](https://github.com/svkozak))
|
|
1139
1306
|
|
|
1140
1307
|
## [0.49.3] - 2026-01-22
|
|
1141
1308
|
|
|
1142
1309
|
### Added
|
|
1143
1310
|
|
|
1144
|
-
- `markdown.codeBlockIndent` setting to customize code block indentation in rendered output ([#855](https://github.com/
|
|
1145
|
-
- Added `inline-bash.ts` example extension for expanding `!{command}` patterns in prompts ([#881](https://github.com/
|
|
1146
|
-
- Added `antigravity-image-gen.ts` example extension for AI image generation via Google Antigravity ([#893](https://github.com/
|
|
1147
|
-
- Added `PI_SHARE_VIEWER_URL` environment variable for custom share viewer URLs ([#889](https://github.com/
|
|
1148
|
-
- Added Alt+Delete as hotkey for delete word forwards ([#878](https://github.com/
|
|
1311
|
+
- `markdown.codeBlockIndent` setting to customize code block indentation in rendered output ([#855](https://github.com/draht-dev/draht/pull/855) by [@terrorobe](https://github.com/terrorobe))
|
|
1312
|
+
- Added `inline-bash.ts` example extension for expanding `!{command}` patterns in prompts ([#881](https://github.com/draht-dev/draht/pull/881) by [@scutifer](https://github.com/scutifer))
|
|
1313
|
+
- Added `antigravity-image-gen.ts` example extension for AI image generation via Google Antigravity ([#893](https://github.com/draht-dev/draht/pull/893) by [@ben-vargas](https://github.com/ben-vargas))
|
|
1314
|
+
- Added `PI_SHARE_VIEWER_URL` environment variable for custom share viewer URLs ([#889](https://github.com/draht-dev/draht/pull/889) by [@andresaraujo](https://github.com/andresaraujo))
|
|
1315
|
+
- Added Alt+Delete as hotkey for delete word forwards ([#878](https://github.com/draht-dev/draht/pull/878) by [@Perlence](https://github.com/Perlence))
|
|
1149
1316
|
|
|
1150
1317
|
### Changed
|
|
1151
1318
|
|
|
1152
|
-
- Tree selector: changed label filter shortcut from `l` to `Shift+L` so users can search for entries containing "l" ([#861](https://github.com/
|
|
1153
|
-
- Fuzzy matching now scores consecutive matches higher for better search relevance ([#860](https://github.com/
|
|
1319
|
+
- Tree selector: changed label filter shortcut from `l` to `Shift+L` so users can search for entries containing "l" ([#861](https://github.com/draht-dev/draht/pull/861) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1320
|
+
- Fuzzy matching now scores consecutive matches higher for better search relevance ([#860](https://github.com/draht-dev/draht/pull/860) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1154
1321
|
|
|
1155
1322
|
### Fixed
|
|
1156
1323
|
|
|
1157
|
-
- Fixed error messages showing hardcoded `~/.pi/agent/` paths instead of respecting `PI_CODING_AGENT_DIR` ([#887](https://github.com/
|
|
1158
|
-
- Fixed `write` tool not displaying errors in the UI when execution fails ([#856](https://github.com/
|
|
1159
|
-
- Fixed HTML export using default theme instead of user's active theme ([#870](https://github.com/
|
|
1160
|
-
- Show session name in the footer and terminal / tab title ([#876](https://github.com/
|
|
1161
|
-
- Fixed 256color fallback in Terminal.app to prevent color rendering issues ([#869](https://github.com/
|
|
1324
|
+
- Fixed error messages showing hardcoded `~/.pi/agent/` paths instead of respecting `PI_CODING_AGENT_DIR` ([#887](https://github.com/draht-dev/draht/pull/887) by [@aliou](https://github.com/aliou))
|
|
1325
|
+
- Fixed `write` tool not displaying errors in the UI when execution fails ([#856](https://github.com/draht-dev/draht/issues/856))
|
|
1326
|
+
- Fixed HTML export using default theme instead of user's active theme ([#870](https://github.com/draht-dev/draht/pull/870) by [@scutifer](https://github.com/scutifer))
|
|
1327
|
+
- Show session name in the footer and terminal / tab title ([#876](https://github.com/draht-dev/draht/pull/876) by [@scutifer](https://github.com/scutifer))
|
|
1328
|
+
- Fixed 256color fallback in Terminal.app to prevent color rendering issues ([#869](https://github.com/draht-dev/draht/pull/869) by [@Perlence](https://github.com/Perlence))
|
|
1162
1329
|
- Fixed viewport tracking and cursor positioning for overlays and content shrink scenarios
|
|
1163
|
-
- Fixed autocomplete to allow searches with `/` characters (e.g., `folder1/folder2`) ([#882](https://github.com/
|
|
1164
|
-
- Fixed autolinked emails displaying redundant `(mailto:...)` suffix ([#888](https://github.com/
|
|
1330
|
+
- Fixed autocomplete to allow searches with `/` characters (e.g., `folder1/folder2`) ([#882](https://github.com/draht-dev/draht/pull/882) by [@richardgill](https://github.com/richardgill))
|
|
1331
|
+
- Fixed autolinked emails displaying redundant `(mailto:...)` suffix ([#888](https://github.com/draht-dev/draht/pull/888) by [@terrorobe](https://github.com/terrorobe))
|
|
1165
1332
|
- Fixed `@` file autocomplete adding space after directories, breaking continued autocomplete into subdirectories
|
|
1166
1333
|
|
|
1167
1334
|
## [0.49.2] - 2026-01-19
|
|
1168
1335
|
|
|
1169
1336
|
### Added
|
|
1170
1337
|
|
|
1171
|
-
- Added widget placement option for extension widgets via `widgetPlacement` in `pi.addWidget()` ([#850](https://github.com/
|
|
1172
|
-
- Added AWS credential detection for ECS/Kubernetes environments: `AWS_CONTAINER_CREDENTIALS_RELATIVE_URI`, `AWS_CONTAINER_CREDENTIALS_FULL_URI`, `AWS_WEB_IDENTITY_TOKEN_FILE` ([#848](https://github.com/
|
|
1173
|
-
- Add "quiet startup" setting to `/settings` ([#847](https://github.com/
|
|
1338
|
+
- Added widget placement option for extension widgets via `widgetPlacement` in `pi.addWidget()` ([#850](https://github.com/draht-dev/draht/pull/850) by [@marckrenn](https://github.com/marckrenn))
|
|
1339
|
+
- Added AWS credential detection for ECS/Kubernetes environments: `AWS_CONTAINER_CREDENTIALS_RELATIVE_URI`, `AWS_CONTAINER_CREDENTIALS_FULL_URI`, `AWS_WEB_IDENTITY_TOKEN_FILE` ([#848](https://github.com/draht-dev/draht/issues/848))
|
|
1340
|
+
- Add "quiet startup" setting to `/settings` ([#847](https://github.com/draht-dev/draht/pull/847) by [@unexge](https://github.com/unexge))
|
|
1174
1341
|
|
|
1175
1342
|
### Changed
|
|
1176
1343
|
|
|
1177
|
-
- HTML export now includes JSONL download button, jump-to-last-message on click, and fixed missing labels ([#853](https://github.com/
|
|
1178
|
-
- Improved error message for OAuth authentication failures (expired credentials, offline) instead of generic 'No API key found' ([#849](https://github.com/
|
|
1344
|
+
- HTML export now includes JSONL download button, jump-to-last-message on click, and fixed missing labels ([#853](https://github.com/draht-dev/draht/pull/853) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1345
|
+
- Improved error message for OAuth authentication failures (expired credentials, offline) instead of generic 'No API key found' ([#849](https://github.com/draht-dev/draht/pull/849) by [@zedrdave](https://github.com/zedrdave))
|
|
1179
1346
|
|
|
1180
1347
|
### Fixed
|
|
1181
|
-
- Fixed `/model` selector scope toggle so you can switch between all and scoped models when scoped models are saved ([#844](https://github.com/
|
|
1182
|
-
- Fixed OpenAI Responses 400 error "reasoning without following item" when replaying aborted turns ([#838](https://github.com/
|
|
1348
|
+
- Fixed `/model` selector scope toggle so you can switch between all and scoped models when scoped models are saved ([#844](https://github.com/draht-dev/draht/issues/844))
|
|
1349
|
+
- Fixed OpenAI Responses 400 error "reasoning without following item" when replaying aborted turns ([#838](https://github.com/draht-dev/draht/pull/838))
|
|
1183
1350
|
- Fixed pi exiting with code 0 when cancelling resume session selection
|
|
1184
1351
|
|
|
1185
1352
|
### Removed
|
|
@@ -1190,33 +1357,33 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1190
1357
|
|
|
1191
1358
|
### Added
|
|
1192
1359
|
|
|
1193
|
-
- Added `strictResponsesPairing` compat option for custom OpenAI Responses models on Azure ([#768](https://github.com/
|
|
1194
|
-
- Session selector (`/resume`) now supports path display toggle (`Ctrl+P`) and session deletion (`Ctrl+D`) with inline confirmation ([#816](https://github.com/
|
|
1195
|
-
- Added undo support in interactive mode with Ctrl+- hotkey. ([#831](https://github.com/
|
|
1360
|
+
- Added `strictResponsesPairing` compat option for custom OpenAI Responses models on Azure ([#768](https://github.com/draht-dev/draht/pull/768) by [@prateekmedia](https://github.com/prateekmedia))
|
|
1361
|
+
- Session selector (`/resume`) now supports path display toggle (`Ctrl+P`) and session deletion (`Ctrl+D`) with inline confirmation ([#816](https://github.com/draht-dev/draht/pull/816) by [@w-winter](https://github.com/w-winter))
|
|
1362
|
+
- Added undo support in interactive mode with Ctrl+- hotkey. ([#831](https://github.com/draht-dev/draht/pull/831) by [@Perlence](https://github.com/Perlence))
|
|
1196
1363
|
|
|
1197
1364
|
### Changed
|
|
1198
1365
|
|
|
1199
|
-
- Share URLs now use hash fragments (`#`) instead of query strings (`?`) to prevent session IDs from being sent to buildwithpi.ai ([#829](https://github.com/
|
|
1200
|
-
- API keys in `models.json` can now be retrieved via shell command using `!` prefix (e.g., `"apiKey": "!security find-generic-password -ws 'anthropic'"` for macOS Keychain) ([#762](https://github.com/
|
|
1366
|
+
- Share URLs now use hash fragments (`#`) instead of query strings (`?`) to prevent session IDs from being sent to buildwithpi.ai ([#829](https://github.com/draht-dev/draht/pull/829) by [@terrorobe](https://github.com/terrorobe))
|
|
1367
|
+
- API keys in `models.json` can now be retrieved via shell command using `!` prefix (e.g., `"apiKey": "!security find-generic-password -ws 'anthropic'"` for macOS Keychain) ([#762](https://github.com/draht-dev/draht/pull/762) by [@cv](https://github.com/cv))
|
|
1201
1368
|
|
|
1202
1369
|
### Fixed
|
|
1203
1370
|
|
|
1204
|
-
- Fixed IME candidate window appearing in wrong position when filtering menus with Input Method Editor (e.g., Chinese IME). Components with search inputs now properly propagate focus state for cursor positioning. ([#827](https://github.com/
|
|
1205
|
-
- Fixed extension shortcut conflicts to respect user keybindings when built-in actions are remapped. ([#826](https://github.com/
|
|
1371
|
+
- Fixed IME candidate window appearing in wrong position when filtering menus with Input Method Editor (e.g., Chinese IME). Components with search inputs now properly propagate focus state for cursor positioning. ([#827](https://github.com/draht-dev/draht/issues/827))
|
|
1372
|
+
- Fixed extension shortcut conflicts to respect user keybindings when built-in actions are remapped. ([#826](https://github.com/draht-dev/draht/pull/826) by [@richardgill](https://github.com/richardgill))
|
|
1206
1373
|
- Fixed photon WASM loading in standalone compiled binaries.
|
|
1207
|
-
- Fixed tool call ID normalization for cross-provider handoffs (e.g., Codex to Antigravity Claude) ([#821](https://github.com/
|
|
1374
|
+
- Fixed tool call ID normalization for cross-provider handoffs (e.g., Codex to Antigravity Claude) ([#821](https://github.com/draht-dev/draht/issues/821))
|
|
1208
1375
|
|
|
1209
1376
|
## [0.49.0] - 2026-01-17
|
|
1210
1377
|
|
|
1211
1378
|
### Added
|
|
1212
1379
|
|
|
1213
|
-
- `pi.setLabel(entryId, label)` in ExtensionAPI for setting per-entry labels from extensions ([#806](https://github.com/
|
|
1214
|
-
- Export `keyHint`, `appKeyHint`, `editorKey`, `appKey`, `rawKeyHint` for extensions to format keybinding hints consistently ([#802](https://github.com/
|
|
1215
|
-
- Exported `VERSION` from the package index and updated the custom-header example. ([#798](https://github.com/
|
|
1216
|
-
- Added `showHardwareCursor` setting to control cursor visibility while still positioning it for IME support. ([#800](https://github.com/
|
|
1217
|
-
- Added Emacs-style kill ring editing with yank and yank-pop keybindings, plus legacy Alt+letter handling and Alt+D delete word forward support in the interactive editor. ([#810](https://github.com/
|
|
1380
|
+
- `pi.setLabel(entryId, label)` in ExtensionAPI for setting per-entry labels from extensions ([#806](https://github.com/draht-dev/draht/issues/806))
|
|
1381
|
+
- Export `keyHint`, `appKeyHint`, `editorKey`, `appKey`, `rawKeyHint` for extensions to format keybinding hints consistently ([#802](https://github.com/draht-dev/draht/pull/802) by [@dannote](https://github.com/dannote))
|
|
1382
|
+
- Exported `VERSION` from the package index and updated the custom-header example. ([#798](https://github.com/draht-dev/draht/pull/798) by [@tallshort](https://github.com/tallshort))
|
|
1383
|
+
- Added `showHardwareCursor` setting to control cursor visibility while still positioning it for IME support. ([#800](https://github.com/draht-dev/draht/pull/800) by [@ghoulr](https://github.com/ghoulr))
|
|
1384
|
+
- Added Emacs-style kill ring editing with yank and yank-pop keybindings, plus legacy Alt+letter handling and Alt+D delete word forward support in the interactive editor. ([#810](https://github.com/draht-dev/draht/pull/810) by [@Perlence](https://github.com/Perlence))
|
|
1218
1385
|
- Added `ctx.compact()` and `ctx.getContextUsage()` to extension contexts for programmatic compaction and context usage checks.
|
|
1219
|
-
- Added documentation for delete word forward and kill ring keybindings in interactive mode. ([#810](https://github.com/
|
|
1386
|
+
- Added documentation for delete word forward and kill ring keybindings in interactive mode. ([#810](https://github.com/draht-dev/draht/pull/810) by [@Perlence](https://github.com/Perlence))
|
|
1220
1387
|
|
|
1221
1388
|
### Changed
|
|
1222
1389
|
|
|
@@ -1225,10 +1392,10 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1225
1392
|
|
|
1226
1393
|
### Fixed
|
|
1227
1394
|
|
|
1228
|
-
- Fixed photon module failing to load in ESM context with "require is not defined" error ([#795](https://github.com/
|
|
1395
|
+
- Fixed photon module failing to load in ESM context with "require is not defined" error ([#795](https://github.com/draht-dev/draht/pull/795) by [@dannote](https://github.com/dannote))
|
|
1229
1396
|
- Fixed compaction UI not showing when extensions trigger compaction.
|
|
1230
|
-
- Fixed orphaned tool results after errored assistant messages causing Codex API errors. When an assistant message has `stopReason: "error"`, its tool calls are now excluded from pending tool tracking, preventing synthetic tool results from being generated for calls that will be dropped by provider-specific converters. ([#812](https://github.com/
|
|
1231
|
-
- Fixed Bedrock Claude max_tokens handling to always exceed thinking budget tokens, preventing compaction failures. ([#797](https://github.com/
|
|
1397
|
+
- Fixed orphaned tool results after errored assistant messages causing Codex API errors. When an assistant message has `stopReason: "error"`, its tool calls are now excluded from pending tool tracking, preventing synthetic tool results from being generated for calls that will be dropped by provider-specific converters. ([#812](https://github.com/draht-dev/draht/issues/812))
|
|
1398
|
+
- Fixed Bedrock Claude max_tokens handling to always exceed thinking budget tokens, preventing compaction failures. ([#797](https://github.com/draht-dev/draht/pull/797) by [@pjtf93](https://github.com/pjtf93))
|
|
1232
1399
|
- Fixed Claude Code tool name normalization to match the Claude Code tool list case-insensitively and remove invalid mappings.
|
|
1233
1400
|
|
|
1234
1401
|
### Removed
|
|
@@ -1239,28 +1406,28 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1239
1406
|
|
|
1240
1407
|
### Added
|
|
1241
1408
|
|
|
1242
|
-
- Added `quietStartup` setting to silence startup output (version header, loaded context info, model scope line). Changelog notifications are still shown. ([#777](https://github.com/
|
|
1409
|
+
- Added `quietStartup` setting to silence startup output (version header, loaded context info, model scope line). Changelog notifications are still shown. ([#777](https://github.com/draht-dev/draht/pull/777) by [@ribelo](https://github.com/ribelo))
|
|
1243
1410
|
- Added `editorPaddingX` setting for horizontal padding in input editor (0-3, default: 0)
|
|
1244
|
-
- Added `shellCommandPrefix` setting to prepend commands to every bash execution, enabling alias expansion in non-interactive shells (e.g., `"shellCommandPrefix": "shopt -s expand_aliases"`) ([#790](https://github.com/
|
|
1245
|
-
- Added bash-style argument slicing for prompt templates ([#770](https://github.com/
|
|
1246
|
-
- Extension commands can provide argument auto-completions via `getArgumentCompletions` in `pi.registerCommand()` ([#775](https://github.com/
|
|
1247
|
-
- Bash tool now displays the timeout value in the UI when a timeout is set ([#780](https://github.com/
|
|
1248
|
-
- Export `getShellConfig` for extensions to detect user's shell environment ([#766](https://github.com/
|
|
1249
|
-
- Added `thinkingText` and `selectedBg` to theme schema ([#763](https://github.com/
|
|
1250
|
-
- `navigateTree()` now supports `replaceInstructions` option to replace the default summarization prompt entirely, and `label` option to attach a label to the branch summary entry ([#787](https://github.com/
|
|
1251
|
-
|
|
1252
|
-
### Fixed
|
|
1253
|
-
|
|
1254
|
-
- Fixed crash during auto-compaction when summarization fails (e.g., quota exceeded). Now displays error message instead of crashing ([#792](https://github.com/
|
|
1255
|
-
- Fixed `--session <UUID>` to search globally across projects if not found locally, with option to fork sessions from other projects ([#785](https://github.com/
|
|
1256
|
-
- Fixed standalone binary WASM loading on Linux ([#784](https://github.com/
|
|
1257
|
-
- Fixed string numbers in tool arguments not being coerced to numbers during validation ([#786](https://github.com/
|
|
1258
|
-
- Fixed `--no-extensions` flag not preventing extension discovery ([#776](https://github.com/
|
|
1259
|
-
- Fixed extension messages rendering twice on startup when `pi.sendMessage({ display: true })` is called during `session_start` ([#765](https://github.com/
|
|
1260
|
-
- Fixed `PI_CODING_AGENT_DIR` env var not expanding tilde (`~`) to home directory ([#778](https://github.com/
|
|
1261
|
-
- Fixed session picker hint text overflow ([#764](https://github.com/
|
|
1262
|
-
- Fixed Kitty keyboard protocol shifted symbol keys (e.g., `@`, `?`) not working in editor ([#779](https://github.com/
|
|
1263
|
-
- Fixed Bedrock tool call IDs causing API errors from invalid characters ([#781](https://github.com/
|
|
1411
|
+
- Added `shellCommandPrefix` setting to prepend commands to every bash execution, enabling alias expansion in non-interactive shells (e.g., `"shellCommandPrefix": "shopt -s expand_aliases"`) ([#790](https://github.com/draht-dev/draht/pull/790) by [@richardgill](https://github.com/richardgill))
|
|
1412
|
+
- Added bash-style argument slicing for prompt templates ([#770](https://github.com/draht-dev/draht/pull/770) by [@airtonix](https://github.com/airtonix))
|
|
1413
|
+
- Extension commands can provide argument auto-completions via `getArgumentCompletions` in `pi.registerCommand()` ([#775](https://github.com/draht-dev/draht/pull/775) by [@ribelo](https://github.com/ribelo))
|
|
1414
|
+
- Bash tool now displays the timeout value in the UI when a timeout is set ([#780](https://github.com/draht-dev/draht/pull/780) by [@dannote](https://github.com/dannote))
|
|
1415
|
+
- Export `getShellConfig` for extensions to detect user's shell environment ([#766](https://github.com/draht-dev/draht/pull/766) by [@dannote](https://github.com/dannote))
|
|
1416
|
+
- Added `thinkingText` and `selectedBg` to theme schema ([#763](https://github.com/draht-dev/draht/pull/763) by [@scutifer](https://github.com/scutifer))
|
|
1417
|
+
- `navigateTree()` now supports `replaceInstructions` option to replace the default summarization prompt entirely, and `label` option to attach a label to the branch summary entry ([#787](https://github.com/draht-dev/draht/pull/787) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1418
|
+
|
|
1419
|
+
### Fixed
|
|
1420
|
+
|
|
1421
|
+
- Fixed crash during auto-compaction when summarization fails (e.g., quota exceeded). Now displays error message instead of crashing ([#792](https://github.com/draht-dev/draht/issues/792))
|
|
1422
|
+
- Fixed `--session <UUID>` to search globally across projects if not found locally, with option to fork sessions from other projects ([#785](https://github.com/draht-dev/draht/pull/785) by [@ribelo](https://github.com/ribelo))
|
|
1423
|
+
- Fixed standalone binary WASM loading on Linux ([#784](https://github.com/draht-dev/draht/issues/784))
|
|
1424
|
+
- Fixed string numbers in tool arguments not being coerced to numbers during validation ([#786](https://github.com/draht-dev/draht/pull/786) by [@dannote](https://github.com/dannote))
|
|
1425
|
+
- Fixed `--no-extensions` flag not preventing extension discovery ([#776](https://github.com/draht-dev/draht/issues/776))
|
|
1426
|
+
- Fixed extension messages rendering twice on startup when `pi.sendMessage({ display: true })` is called during `session_start` ([#765](https://github.com/draht-dev/draht/pull/765) by [@dannote](https://github.com/dannote))
|
|
1427
|
+
- Fixed `PI_CODING_AGENT_DIR` env var not expanding tilde (`~`) to home directory ([#778](https://github.com/draht-dev/draht/pull/778) by [@aliou](https://github.com/aliou))
|
|
1428
|
+
- Fixed session picker hint text overflow ([#764](https://github.com/draht-dev/draht/issues/764))
|
|
1429
|
+
- Fixed Kitty keyboard protocol shifted symbol keys (e.g., `@`, `?`) not working in editor ([#779](https://github.com/draht-dev/draht/pull/779) by [@iamd3vil](https://github.com/iamd3vil))
|
|
1430
|
+
- Fixed Bedrock tool call IDs causing API errors from invalid characters ([#781](https://github.com/draht-dev/draht/pull/781) by [@pjtf93](https://github.com/pjtf93))
|
|
1264
1431
|
|
|
1265
1432
|
### Changed
|
|
1266
1433
|
|
|
@@ -1270,16 +1437,16 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1270
1437
|
|
|
1271
1438
|
### Breaking Changes
|
|
1272
1439
|
|
|
1273
|
-
- Extensions using `Editor` directly must now pass `TUI` as the first constructor argument: `new Editor(tui, theme)`. The `tui` parameter is available in extension factory functions. ([#732](https://github.com/
|
|
1440
|
+
- Extensions using `Editor` directly must now pass `TUI` as the first constructor argument: `new Editor(tui, theme)`. The `tui` parameter is available in extension factory functions. ([#732](https://github.com/draht-dev/draht/issues/732))
|
|
1274
1441
|
|
|
1275
1442
|
### Added
|
|
1276
1443
|
|
|
1277
|
-
- **OpenAI Codex official support**: Full compatibility with OpenAI's Codex CLI models (`gpt-5.1`, `gpt-5.2`, `gpt-5.1-codex-mini`, `gpt-5.2-codex`). Features include static system prompt for OpenAI allowlisting, prompt caching via session ID, and reasoning signature retention across turns. Set `OPENAI_API_KEY` and use `--provider openai-codex` or select a Codex model. ([#737](https://github.com/
|
|
1444
|
+
- **OpenAI Codex official support**: Full compatibility with OpenAI's Codex CLI models (`gpt-5.1`, `gpt-5.2`, `gpt-5.1-codex-mini`, `gpt-5.2-codex`). Features include static system prompt for OpenAI allowlisting, prompt caching via session ID, and reasoning signature retention across turns. Set `OPENAI_API_KEY` and use `--provider openai-codex` or select a Codex model. ([#737](https://github.com/draht-dev/draht/pull/737))
|
|
1278
1445
|
- `pi-internal://` URL scheme in read tool for accessing internal documentation. The model can read files from the coding-agent package (README, docs, examples) to learn about extending pi.
|
|
1279
|
-
- New `input` event in extension system for intercepting, transforming, or handling user input before the agent processes it. Supports three result types: `continue` (pass through), `transform` (modify text/images), `handled` (respond without LLM). Handlers chain transforms and short-circuit on handled. ([#761](https://github.com/
|
|
1280
|
-
- Extension example: `input-transform.ts` demonstrating input interception patterns (quick mode, instant commands, source routing) ([#761](https://github.com/
|
|
1281
|
-
- Custom tool HTML export: extensions with `renderCall`/`renderResult` now render in `/share` and `/export` output with ANSI-to-HTML color conversion ([#702](https://github.com/
|
|
1282
|
-
- Direct filter shortcuts in Tree mode: Ctrl+D (default), Ctrl+T (no-tools), Ctrl+U (user-only), Ctrl+L (labeled-only), Ctrl+A (all) ([#747](https://github.com/
|
|
1446
|
+
- New `input` event in extension system for intercepting, transforming, or handling user input before the agent processes it. Supports three result types: `continue` (pass through), `transform` (modify text/images), `handled` (respond without LLM). Handlers chain transforms and short-circuit on handled. ([#761](https://github.com/draht-dev/draht/pull/761) by [@nicobailon](https://github.com/nicobailon))
|
|
1447
|
+
- Extension example: `input-transform.ts` demonstrating input interception patterns (quick mode, instant commands, source routing) ([#761](https://github.com/draht-dev/draht/pull/761) by [@nicobailon](https://github.com/nicobailon))
|
|
1448
|
+
- Custom tool HTML export: extensions with `renderCall`/`renderResult` now render in `/share` and `/export` output with ANSI-to-HTML color conversion ([#702](https://github.com/draht-dev/draht/pull/702) by [@aliou](https://github.com/aliou))
|
|
1449
|
+
- Direct filter shortcuts in Tree mode: Ctrl+D (default), Ctrl+T (no-tools), Ctrl+U (user-only), Ctrl+L (labeled-only), Ctrl+A (all) ([#747](https://github.com/draht-dev/draht/pull/747) by [@kaofelix](https://github.com/kaofelix))
|
|
1283
1450
|
|
|
1284
1451
|
### Changed
|
|
1285
1452
|
|
|
@@ -1287,58 +1454,58 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1287
1454
|
|
|
1288
1455
|
### Fixed
|
|
1289
1456
|
|
|
1290
|
-
- Editor no longer corrupts terminal display when loading large prompts via `setEditorText`. Content now scrolls vertically with indicators showing lines above/below the viewport. ([#732](https://github.com/
|
|
1291
|
-
- Piped stdin now works correctly: `echo foo | pi` is equivalent to `pi -p foo`. When stdin is piped, print mode is automatically enabled since interactive mode requires a TTY ([#708](https://github.com/
|
|
1292
|
-
- Session tree now preserves branch connectors and indentation when filters hide intermediate entries so descendants attach to the nearest visible ancestor and sibling branches align. Fixed in both TUI and HTML export ([#739](https://github.com/
|
|
1293
|
-
- Added `upstream connect`, `connection refused`, and `reset before headers` patterns to auto-retry error detection ([#733](https://github.com/
|
|
1294
|
-
- Multi-line YAML frontmatter in skills and prompt templates now parses correctly. Centralized frontmatter parsing using the `yaml` library. ([#728](https://github.com/
|
|
1295
|
-
- `ctx.shutdown()` now waits for pending UI renders to complete before exiting, ensuring notifications and final output are visible ([#756](https://github.com/
|
|
1296
|
-
- OpenAI Codex provider now retries on transient errors (429, 5xx, connection failures) with exponential backoff ([#733](https://github.com/
|
|
1457
|
+
- Editor no longer corrupts terminal display when loading large prompts via `setEditorText`. Content now scrolls vertically with indicators showing lines above/below the viewport. ([#732](https://github.com/draht-dev/draht/issues/732))
|
|
1458
|
+
- Piped stdin now works correctly: `echo foo | pi` is equivalent to `pi -p foo`. When stdin is piped, print mode is automatically enabled since interactive mode requires a TTY ([#708](https://github.com/draht-dev/draht/issues/708))
|
|
1459
|
+
- Session tree now preserves branch connectors and indentation when filters hide intermediate entries so descendants attach to the nearest visible ancestor and sibling branches align. Fixed in both TUI and HTML export ([#739](https://github.com/draht-dev/draht/pull/739) by [@w-winter](https://github.com/w-winter))
|
|
1460
|
+
- Added `upstream connect`, `connection refused`, and `reset before headers` patterns to auto-retry error detection ([#733](https://github.com/draht-dev/draht/issues/733))
|
|
1461
|
+
- Multi-line YAML frontmatter in skills and prompt templates now parses correctly. Centralized frontmatter parsing using the `yaml` library. ([#728](https://github.com/draht-dev/draht/pull/728) by [@richardgill](https://github.com/richardgill))
|
|
1462
|
+
- `ctx.shutdown()` now waits for pending UI renders to complete before exiting, ensuring notifications and final output are visible ([#756](https://github.com/draht-dev/draht/issues/756))
|
|
1463
|
+
- OpenAI Codex provider now retries on transient errors (429, 5xx, connection failures) with exponential backoff ([#733](https://github.com/draht-dev/draht/issues/733))
|
|
1297
1464
|
|
|
1298
1465
|
## [0.46.0] - 2026-01-15
|
|
1299
1466
|
|
|
1300
1467
|
### Fixed
|
|
1301
1468
|
|
|
1302
|
-
- Scoped models (`--models` or `enabledModels`) now remember the last selected model across sessions instead of always starting with the first model in the scope ([#736](https://github.com/
|
|
1303
|
-
- Show `bun install` instead of `npm install` in update notification when running under Bun ([#714](https://github.com/
|
|
1304
|
-
- `/skill` prompts now include the skill path ([#711](https://github.com/
|
|
1305
|
-
- Use configurable `expandTools` keybinding instead of hardcoded Ctrl+O ([#717](https://github.com/
|
|
1306
|
-
- Compaction turn prefix summaries now merge correctly ([#738](https://github.com/
|
|
1307
|
-
- Avoid unsigned Gemini 3 tool calls ([#741](https://github.com/
|
|
1308
|
-
- Fixed signature support for non-Anthropic models in Amazon Bedrock provider ([#727](https://github.com/
|
|
1309
|
-
- Keyboard shortcuts (Ctrl+C, Ctrl+D, etc.) now work on non-Latin keyboard layouts (Russian, Ukrainian, Bulgarian, etc.) in terminals supporting Kitty keyboard protocol with alternate key reporting ([#718](https://github.com/
|
|
1469
|
+
- Scoped models (`--models` or `enabledModels`) now remember the last selected model across sessions instead of always starting with the first model in the scope ([#736](https://github.com/draht-dev/draht/pull/736) by [@ogulcancelik](https://github.com/ogulcancelik))
|
|
1470
|
+
- Show `bun install` instead of `npm install` in update notification when running under Bun ([#714](https://github.com/draht-dev/draht/pull/714) by [@dannote](https://github.com/dannote))
|
|
1471
|
+
- `/skill` prompts now include the skill path ([#711](https://github.com/draht-dev/draht/pull/711) by [@jblwilliams](https://github.com/jblwilliams))
|
|
1472
|
+
- Use configurable `expandTools` keybinding instead of hardcoded Ctrl+O ([#717](https://github.com/draht-dev/draht/pull/717) by [@dannote](https://github.com/dannote))
|
|
1473
|
+
- Compaction turn prefix summaries now merge correctly ([#738](https://github.com/draht-dev/draht/pull/738) by [@vsabavat](https://github.com/vsabavat))
|
|
1474
|
+
- Avoid unsigned Gemini 3 tool calls ([#741](https://github.com/draht-dev/draht/pull/741) by [@roshanasingh4](https://github.com/roshanasingh4))
|
|
1475
|
+
- Fixed signature support for non-Anthropic models in Amazon Bedrock provider ([#727](https://github.com/draht-dev/draht/pull/727) by [@unexge](https://github.com/unexge))
|
|
1476
|
+
- Keyboard shortcuts (Ctrl+C, Ctrl+D, etc.) now work on non-Latin keyboard layouts (Russian, Ukrainian, Bulgarian, etc.) in terminals supporting Kitty keyboard protocol with alternate key reporting ([#718](https://github.com/draht-dev/draht/pull/718) by [@dannote](https://github.com/dannote))
|
|
1310
1477
|
|
|
1311
1478
|
### Added
|
|
1312
1479
|
|
|
1313
|
-
- Edit tool now uses fuzzy matching as fallback when exact match fails, tolerating trailing whitespace, smart quotes, Unicode dashes, and special spaces ([#713](https://github.com/
|
|
1314
|
-
- Support `APPEND_SYSTEM.md` to append instructions to the system prompt ([#716](https://github.com/
|
|
1315
|
-
- Session picker search: Ctrl+R toggles sorting between fuzzy match (default) and most recent; supports quoted phrase matching and `re:` regex mode ([#731](https://github.com/
|
|
1316
|
-
- Export `getAgentDir` for extensions ([#749](https://github.com/
|
|
1317
|
-
- Show loaded prompt templates on startup ([#743](https://github.com/
|
|
1318
|
-
- MiniMax China (`minimax-cn`) provider support ([#725](https://github.com/
|
|
1319
|
-
- `gpt-5.2-codex` models for GitHub Copilot and OpenCode Zen providers ([#734](https://github.com/
|
|
1480
|
+
- Edit tool now uses fuzzy matching as fallback when exact match fails, tolerating trailing whitespace, smart quotes, Unicode dashes, and special spaces ([#713](https://github.com/draht-dev/draht/pull/713) by [@dannote](https://github.com/dannote))
|
|
1481
|
+
- Support `APPEND_SYSTEM.md` to append instructions to the system prompt ([#716](https://github.com/draht-dev/draht/pull/716) by [@tallshort](https://github.com/tallshort))
|
|
1482
|
+
- Session picker search: Ctrl+R toggles sorting between fuzzy match (default) and most recent; supports quoted phrase matching and `re:` regex mode ([#731](https://github.com/draht-dev/draht/pull/731) by [@ogulcancelik](https://github.com/ogulcancelik))
|
|
1483
|
+
- Export `getAgentDir` for extensions ([#749](https://github.com/draht-dev/draht/pull/749) by [@dannote](https://github.com/dannote))
|
|
1484
|
+
- Show loaded prompt templates on startup ([#743](https://github.com/draht-dev/draht/pull/743) by [@tallshort](https://github.com/tallshort))
|
|
1485
|
+
- MiniMax China (`minimax-cn`) provider support ([#725](https://github.com/draht-dev/draht/pull/725) by [@tallshort](https://github.com/tallshort))
|
|
1486
|
+
- `gpt-5.2-codex` models for GitHub Copilot and OpenCode Zen providers ([#734](https://github.com/draht-dev/draht/pull/734) by [@aadishv](https://github.com/aadishv))
|
|
1320
1487
|
|
|
1321
1488
|
### Changed
|
|
1322
1489
|
|
|
1323
|
-
- Replaced `wasm-vips` with `@silvia-odwyer/photon-node` for image processing ([#710](https://github.com/
|
|
1324
|
-
- Extension example: `plan-mode/` shortcut changed from Shift+P to Ctrl+Alt+P to avoid conflict with typing capital P ([#746](https://github.com/
|
|
1325
|
-
- UI keybinding hints now respect configured keybindings across components ([#724](https://github.com/
|
|
1326
|
-
- CLI process title is now set to `pi` for easier process identification ([#742](https://github.com/
|
|
1490
|
+
- Replaced `wasm-vips` with `@silvia-odwyer/photon-node` for image processing ([#710](https://github.com/draht-dev/draht/pull/710) by [@can1357](https://github.com/can1357))
|
|
1491
|
+
- Extension example: `plan-mode/` shortcut changed from Shift+P to Ctrl+Alt+P to avoid conflict with typing capital P ([#746](https://github.com/draht-dev/draht/pull/746) by [@ferologics](https://github.com/ferologics))
|
|
1492
|
+
- UI keybinding hints now respect configured keybindings across components ([#724](https://github.com/draht-dev/draht/pull/724) by [@dannote](https://github.com/dannote))
|
|
1493
|
+
- CLI process title is now set to `pi` for easier process identification ([#742](https://github.com/draht-dev/draht/pull/742) by [@richardgill](https://github.com/richardgill))
|
|
1327
1494
|
|
|
1328
1495
|
## [0.45.7] - 2026-01-13
|
|
1329
1496
|
|
|
1330
1497
|
### Added
|
|
1331
1498
|
|
|
1332
|
-
- Exported `highlightCode` and `getLanguageFromPath` for extensions ([#703](https://github.com/
|
|
1499
|
+
- Exported `highlightCode` and `getLanguageFromPath` for extensions ([#703](https://github.com/draht-dev/draht/pull/703) by [@dannote](https://github.com/dannote))
|
|
1333
1500
|
|
|
1334
1501
|
## [0.45.6] - 2026-01-13
|
|
1335
1502
|
|
|
1336
1503
|
### Added
|
|
1337
1504
|
|
|
1338
|
-
- `ctx.ui.custom()` now accepts `overlayOptions` for overlay positioning and sizing (anchor, margins, offsets, percentages, absolute positioning) ([#667](https://github.com/
|
|
1339
|
-
- `ctx.ui.custom()` now accepts `onHandle` callback to receive the `OverlayHandle` for controlling overlay visibility ([#667](https://github.com/
|
|
1340
|
-
- Extension example: `overlay-qa-tests.ts` with 10 commands for testing overlay positioning, animation, and toggle scenarios ([#667](https://github.com/
|
|
1341
|
-
- Extension example: `doom-overlay/` - DOOM game running as an overlay at 35 FPS (auto-downloads WAD on first run) ([#667](https://github.com/
|
|
1505
|
+
- `ctx.ui.custom()` now accepts `overlayOptions` for overlay positioning and sizing (anchor, margins, offsets, percentages, absolute positioning) ([#667](https://github.com/draht-dev/draht/pull/667) by [@nicobailon](https://github.com/nicobailon))
|
|
1506
|
+
- `ctx.ui.custom()` now accepts `onHandle` callback to receive the `OverlayHandle` for controlling overlay visibility ([#667](https://github.com/draht-dev/draht/pull/667) by [@nicobailon](https://github.com/nicobailon))
|
|
1507
|
+
- Extension example: `overlay-qa-tests.ts` with 10 commands for testing overlay positioning, animation, and toggle scenarios ([#667](https://github.com/draht-dev/draht/pull/667) by [@nicobailon](https://github.com/nicobailon))
|
|
1508
|
+
- Extension example: `doom-overlay/` - DOOM game running as an overlay at 35 FPS (auto-downloads WAD on first run) ([#667](https://github.com/draht-dev/draht/pull/667) by [@nicobailon](https://github.com/nicobailon))
|
|
1342
1509
|
|
|
1343
1510
|
## [0.45.5] - 2026-01-13
|
|
1344
1511
|
|
|
@@ -1351,28 +1518,28 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1351
1518
|
### Changed
|
|
1352
1519
|
|
|
1353
1520
|
- Light theme colors adjusted for WCAG AA compliance (4.5:1 contrast ratio against white backgrounds)
|
|
1354
|
-
- Replaced `sharp` with `wasm-vips` for image processing (resize, PNG conversion). Eliminates native build requirements that caused installation failures on some systems. ([#696](https://github.com/
|
|
1521
|
+
- Replaced `sharp` with `wasm-vips` for image processing (resize, PNG conversion). Eliminates native build requirements that caused installation failures on some systems. ([#696](https://github.com/draht-dev/draht/issues/696))
|
|
1355
1522
|
|
|
1356
1523
|
### Added
|
|
1357
1524
|
|
|
1358
|
-
- Extension example: `summarize.ts` for summarizing conversations using custom UI and an external model ([#684](https://github.com/
|
|
1359
|
-
- Extension example: `question.ts` enhanced with custom UI for asking user questions ([#693](https://github.com/
|
|
1360
|
-
- Extension example: `plan-mode/` enhanced with explicit step tracking and progress widget ([#694](https://github.com/
|
|
1361
|
-
- Extension example: `questionnaire.ts` for multi-question input with tab bar navigation ([#695](https://github.com/
|
|
1362
|
-
- Experimental Vercel AI Gateway provider support: set `AI_GATEWAY_API_KEY` and use `--provider vercel-ai-gateway`. Token usage is currently reported incorrectly by Anthropic Messages compatible endpoint. ([#689](https://github.com/
|
|
1525
|
+
- Extension example: `summarize.ts` for summarizing conversations using custom UI and an external model ([#684](https://github.com/draht-dev/draht/pull/684) by [@scutifer](https://github.com/scutifer))
|
|
1526
|
+
- Extension example: `question.ts` enhanced with custom UI for asking user questions ([#693](https://github.com/draht-dev/draht/pull/693) by [@ferologics](https://github.com/ferologics))
|
|
1527
|
+
- Extension example: `plan-mode/` enhanced with explicit step tracking and progress widget ([#694](https://github.com/draht-dev/draht/pull/694) by [@ferologics](https://github.com/ferologics))
|
|
1528
|
+
- Extension example: `questionnaire.ts` for multi-question input with tab bar navigation ([#695](https://github.com/draht-dev/draht/pull/695) by [@ferologics](https://github.com/ferologics))
|
|
1529
|
+
- Experimental Vercel AI Gateway provider support: set `AI_GATEWAY_API_KEY` and use `--provider vercel-ai-gateway`. Token usage is currently reported incorrectly by Anthropic Messages compatible endpoint. ([#689](https://github.com/draht-dev/draht/pull/689) by [@timolins](https://github.com/timolins))
|
|
1363
1530
|
|
|
1364
1531
|
### Fixed
|
|
1365
1532
|
|
|
1366
|
-
- Fix API key resolution after model switches by using provider argument ([#691](https://github.com/
|
|
1367
|
-
- Fixed z.ai thinking/reasoning: thinking toggle now correctly enables/disables thinking for z.ai models ([#688](https://github.com/
|
|
1368
|
-
- Fixed extension loading in compiled Bun binary: extensions with local file imports now work correctly. Updated `@mariozechner/jiti` to v2.6.5 which bundles babel for Bun binary compatibility. ([#681](https://github.com/
|
|
1369
|
-
- Fixed theme loading when installed via mise: use wrapper directory in release tarballs for compatibility with mise's `strip_components=1` extraction. ([#681](https://github.com/
|
|
1533
|
+
- Fix API key resolution after model switches by using provider argument ([#691](https://github.com/draht-dev/draht/pull/691) by [@joshp123](https://github.com/joshp123))
|
|
1534
|
+
- Fixed z.ai thinking/reasoning: thinking toggle now correctly enables/disables thinking for z.ai models ([#688](https://github.com/draht-dev/draht/issues/688))
|
|
1535
|
+
- Fixed extension loading in compiled Bun binary: extensions with local file imports now work correctly. Updated `@mariozechner/jiti` to v2.6.5 which bundles babel for Bun binary compatibility. ([#681](https://github.com/draht-dev/draht/issues/681))
|
|
1536
|
+
- Fixed theme loading when installed via mise: use wrapper directory in release tarballs for compatibility with mise's `strip_components=1` extraction. ([#681](https://github.com/draht-dev/draht/issues/681))
|
|
1370
1537
|
|
|
1371
1538
|
## [0.45.2] - 2026-01-13
|
|
1372
1539
|
|
|
1373
1540
|
### Fixed
|
|
1374
1541
|
|
|
1375
|
-
- Extensions now load correctly in compiled Bun binary using `@mariozechner/jiti` fork with `virtualModules` support. Bundled packages (`@sinclair/typebox`, `@
|
|
1542
|
+
- Extensions now load correctly in compiled Bun binary using `@mariozechner/jiti` fork with `virtualModules` support. Bundled packages (`@sinclair/typebox`, `@draht/tui`, `@draht/ai`, `@draht/coding-agent`) are accessible to extensions without filesystem node_modules.
|
|
1376
1543
|
|
|
1377
1544
|
## [0.45.1] - 2026-01-13
|
|
1378
1545
|
|
|
@@ -1384,79 +1551,79 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1384
1551
|
|
|
1385
1552
|
### Added
|
|
1386
1553
|
|
|
1387
|
-
- MiniMax provider support: set `MINIMAX_API_KEY` and use `minimax/MiniMax-M2.1` ([#656](https://github.com/
|
|
1388
|
-
- `/scoped-models`: Alt+Up/Down to reorder enabled models. Order is preserved when saving with Ctrl+S and determines Ctrl+P cycling order. ([#676](https://github.com/
|
|
1389
|
-
- Amazon Bedrock provider support (experimental, tested with Anthropic Claude models only) ([#494](https://github.com/
|
|
1390
|
-
- Extension example: `sandbox/` for OS-level bash sandboxing using `@anthropic-ai/sandbox-runtime` with per-project config ([#673](https://github.com/
|
|
1554
|
+
- MiniMax provider support: set `MINIMAX_API_KEY` and use `minimax/MiniMax-M2.1` ([#656](https://github.com/draht-dev/draht/pull/656) by [@dannote](https://github.com/dannote))
|
|
1555
|
+
- `/scoped-models`: Alt+Up/Down to reorder enabled models. Order is preserved when saving with Ctrl+S and determines Ctrl+P cycling order. ([#676](https://github.com/draht-dev/draht/pull/676) by [@thomasmhr](https://github.com/thomasmhr))
|
|
1556
|
+
- Amazon Bedrock provider support (experimental, tested with Anthropic Claude models only) ([#494](https://github.com/draht-dev/draht/pull/494) by [@unexge](https://github.com/unexge))
|
|
1557
|
+
- Extension example: `sandbox/` for OS-level bash sandboxing using `@anthropic-ai/sandbox-runtime` with per-project config ([#673](https://github.com/draht-dev/draht/pull/673) by [@dannote](https://github.com/dannote))
|
|
1391
1558
|
- Print mode JSON output now emits the session header as the first line.
|
|
1392
1559
|
|
|
1393
1560
|
## [0.44.0] - 2026-01-12
|
|
1394
1561
|
|
|
1395
1562
|
### Breaking Changes
|
|
1396
1563
|
|
|
1397
|
-
- `pi.getAllTools()` now returns `ToolInfo[]` (with `name` and `description`) instead of `string[]`. Extensions that only need names can use `.map(t => t.name)`. ([#648](https://github.com/
|
|
1564
|
+
- `pi.getAllTools()` now returns `ToolInfo[]` (with `name` and `description`) instead of `string[]`. Extensions that only need names can use `.map(t => t.name)`. ([#648](https://github.com/draht-dev/draht/pull/648) by [@carsonfarmer](https://github.com/carsonfarmer))
|
|
1398
1565
|
|
|
1399
1566
|
### Added
|
|
1400
1567
|
|
|
1401
|
-
- Session naming: `/name <name>` command sets a display name shown in the session selector instead of the first message. Useful for distinguishing forked sessions. Extensions can use `pi.setSessionName()` and `pi.getSessionName()`. ([#650](https://github.com/
|
|
1402
|
-
- Extension example: `notify.ts` for desktop notifications via OSC 777 escape sequence ([#658](https://github.com/
|
|
1403
|
-
- Inline hint for queued messages showing the `Alt+Up` restore shortcut ([#657](https://github.com/
|
|
1404
|
-
- Page-up/down navigation in `/resume` session selector to jump by 5 items ([#662](https://github.com/
|
|
1405
|
-
- Fuzzy search in `/settings` menu: type to filter settings by label ([#643](https://github.com/
|
|
1568
|
+
- Session naming: `/name <name>` command sets a display name shown in the session selector instead of the first message. Useful for distinguishing forked sessions. Extensions can use `pi.setSessionName()` and `pi.getSessionName()`. ([#650](https://github.com/draht-dev/draht/pull/650) by [@scutifer](https://github.com/scutifer))
|
|
1569
|
+
- Extension example: `notify.ts` for desktop notifications via OSC 777 escape sequence ([#658](https://github.com/draht-dev/draht/pull/658) by [@ferologics](https://github.com/ferologics))
|
|
1570
|
+
- Inline hint for queued messages showing the `Alt+Up` restore shortcut ([#657](https://github.com/draht-dev/draht/pull/657) by [@tmustier](https://github.com/tmustier))
|
|
1571
|
+
- Page-up/down navigation in `/resume` session selector to jump by 5 items ([#662](https://github.com/draht-dev/draht/pull/662) by [@aliou](https://github.com/aliou))
|
|
1572
|
+
- Fuzzy search in `/settings` menu: type to filter settings by label ([#643](https://github.com/draht-dev/draht/pull/643) by [@ninlds](https://github.com/ninlds))
|
|
1406
1573
|
|
|
1407
1574
|
### Fixed
|
|
1408
1575
|
|
|
1409
|
-
- Session selector now stays open when current folder has no sessions, allowing Tab to switch to "all" scope ([#661](https://github.com/
|
|
1576
|
+
- Session selector now stays open when current folder has no sessions, allowing Tab to switch to "all" scope ([#661](https://github.com/draht-dev/draht/pull/661) by [@aliou](https://github.com/aliou))
|
|
1410
1577
|
- Extensions using theme utilities like `getSettingsListTheme()` now work in dev mode with tsx
|
|
1411
1578
|
|
|
1412
1579
|
## [0.43.0] - 2026-01-11
|
|
1413
1580
|
|
|
1414
1581
|
### Breaking Changes
|
|
1415
1582
|
|
|
1416
|
-
- Extension editor (`ctx.ui.editor()`) now uses Enter to submit and Shift+Enter for newlines, matching the main editor. Previously used Ctrl+Enter to submit. Extensions with hardcoded "ctrl+enter" hints need updating. ([#642](https://github.com/
|
|
1417
|
-
- Renamed `/branch` command to `/fork` ([#641](https://github.com/
|
|
1583
|
+
- Extension editor (`ctx.ui.editor()`) now uses Enter to submit and Shift+Enter for newlines, matching the main editor. Previously used Ctrl+Enter to submit. Extensions with hardcoded "ctrl+enter" hints need updating. ([#642](https://github.com/draht-dev/draht/pull/642) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1584
|
+
- Renamed `/branch` command to `/fork` ([#641](https://github.com/draht-dev/draht/issues/641))
|
|
1418
1585
|
- RPC: `branch` → `fork`, `get_branch_messages` → `get_fork_messages`
|
|
1419
1586
|
- SDK: `branch()` → `fork()`, `getBranchMessages()` → `getForkMessages()`
|
|
1420
1587
|
- AgentSession: `branch()` → `fork()`, `getUserMessagesForBranching()` → `getUserMessagesForForking()`
|
|
1421
1588
|
- Extension events: `session_before_branch` → `session_before_fork`, `session_branch` → `session_fork`
|
|
1422
1589
|
- Settings: `doubleEscapeAction: "branch" | "tree"` → `"fork" | "tree"`
|
|
1423
|
-
- `SessionManager.list()` and `SessionManager.listAll()` are now async, returning `Promise<SessionInfo[]>`. Callers must await them. ([#620](https://github.com/
|
|
1590
|
+
- `SessionManager.list()` and `SessionManager.listAll()` are now async, returning `Promise<SessionInfo[]>`. Callers must await them. ([#620](https://github.com/draht-dev/draht/pull/620) by [@tmustier](https://github.com/tmustier))
|
|
1424
1591
|
|
|
1425
1592
|
### Added
|
|
1426
|
-
- `/resume` selector now toggles between current-folder and all sessions with Tab, showing the session cwd in the All view and loading progress. ([#620](https://github.com/
|
|
1593
|
+
- `/resume` selector now toggles between current-folder and all sessions with Tab, showing the session cwd in the All view and loading progress. ([#620](https://github.com/draht-dev/draht/pull/620) by [@tmustier](https://github.com/tmustier))
|
|
1427
1594
|
- `SessionManager.list()` and `SessionManager.listAll()` accept optional `onProgress` callback for progress updates
|
|
1428
1595
|
- `SessionInfo.cwd` field containing the session's working directory (empty string for old sessions)
|
|
1429
1596
|
- `SessionListProgress` type export for progress callbacks
|
|
1430
|
-
- `/scoped-models` command to enable/disable models for Ctrl+P cycling. Changes are session-only by default; press Ctrl+S to persist to settings.json. ([#626](https://github.com/
|
|
1431
|
-
- `model_select` extension hook fires when model changes via `/model`, model cycling, or session restore with `source` field and `previousModel` ([#628](https://github.com/
|
|
1432
|
-
- `ctx.ui.setWorkingMessage()` extension API to customize the "Working..." message during streaming ([#625](https://github.com/
|
|
1433
|
-
- Skill slash commands: loaded skills are registered as `/skill:name` commands for quick access. Toggle via `/settings` or `skills.enableSkillCommands` in settings.json. ([#630](https://github.com/
|
|
1597
|
+
- `/scoped-models` command to enable/disable models for Ctrl+P cycling. Changes are session-only by default; press Ctrl+S to persist to settings.json. ([#626](https://github.com/draht-dev/draht/pull/626) by [@CarlosGtrz](https://github.com/CarlosGtrz))
|
|
1598
|
+
- `model_select` extension hook fires when model changes via `/model`, model cycling, or session restore with `source` field and `previousModel` ([#628](https://github.com/draht-dev/draht/pull/628) by [@marckrenn](https://github.com/marckrenn))
|
|
1599
|
+
- `ctx.ui.setWorkingMessage()` extension API to customize the "Working..." message during streaming ([#625](https://github.com/draht-dev/draht/pull/625) by [@nicobailon](https://github.com/nicobailon))
|
|
1600
|
+
- Skill slash commands: loaded skills are registered as `/skill:name` commands for quick access. Toggle via `/settings` or `skills.enableSkillCommands` in settings.json. ([#630](https://github.com/draht-dev/draht/pull/630) by [@Dwsy](https://github.com/Dwsy))
|
|
1434
1601
|
- Slash command autocomplete now uses fuzzy matching (type `/skbra` to match `/skill:brave-search`)
|
|
1435
|
-
- `/tree` branch summarization now offers three options: "No summary", "Summarize", and "Summarize with custom prompt". Custom prompts are appended as additional focus to the default summarization instructions. ([#642](https://github.com/
|
|
1602
|
+
- `/tree` branch summarization now offers three options: "No summary", "Summarize", and "Summarize with custom prompt". Custom prompts are appended as additional focus to the default summarization instructions. ([#642](https://github.com/draht-dev/draht/pull/642) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1436
1603
|
|
|
1437
1604
|
### Fixed
|
|
1438
1605
|
|
|
1439
|
-
- Missing spacer between assistant message and text editor ([#655](https://github.com/
|
|
1440
|
-
- Session picker respects custom keybindings when using `--resume` ([#633](https://github.com/
|
|
1441
|
-
- Custom footer extensions now see model changes: `ctx.model` is now a getter that returns the current model instead of a snapshot from when the context was created ([#634](https://github.com/
|
|
1606
|
+
- Missing spacer between assistant message and text editor ([#655](https://github.com/draht-dev/draht/issues/655))
|
|
1607
|
+
- Session picker respects custom keybindings when using `--resume` ([#633](https://github.com/draht-dev/draht/pull/633) by [@aos](https://github.com/aos))
|
|
1608
|
+
- Custom footer extensions now see model changes: `ctx.model` is now a getter that returns the current model instead of a snapshot from when the context was created ([#634](https://github.com/draht-dev/draht/pull/634) by [@ogulcancelik](https://github.com/ogulcancelik))
|
|
1442
1609
|
- Footer git branch not updating after external branch switches. Git uses atomic writes (temp file + rename), which changes the inode and breaks `fs.watch` on the file. Now watches the directory instead.
|
|
1443
|
-
- Extension loading errors are now displayed to the user instead of being silently ignored ([#639](https://github.com/
|
|
1610
|
+
- Extension loading errors are now displayed to the user instead of being silently ignored ([#639](https://github.com/draht-dev/draht/pull/639) by [@aliou](https://github.com/aliou))
|
|
1444
1611
|
|
|
1445
1612
|
## [0.42.5] - 2026-01-11
|
|
1446
1613
|
|
|
1447
1614
|
### Fixed
|
|
1448
1615
|
|
|
1449
|
-
- Reduced flicker by only re-rendering changed lines ([#617](https://github.com/
|
|
1616
|
+
- Reduced flicker by only re-rendering changed lines ([#617](https://github.com/draht-dev/draht/pull/617) by [@ogulcancelik](https://github.com/ogulcancelik)). No worries tho, there's still a little flicker in the VS Code Terminal. Praise the flicker.
|
|
1450
1617
|
- Cursor position tracking when content shrinks with unchanged remaining lines
|
|
1451
|
-
- TUI renders with wrong dimensions after suspend/resume if terminal was resized while suspended ([#599](https://github.com/
|
|
1452
|
-
- Pasted content containing Kitty key release patterns (e.g., `:3F` in MAC addresses) was incorrectly filtered out ([#623](https://github.com/
|
|
1618
|
+
- TUI renders with wrong dimensions after suspend/resume if terminal was resized while suspended ([#599](https://github.com/draht-dev/draht/issues/599))
|
|
1619
|
+
- Pasted content containing Kitty key release patterns (e.g., `:3F` in MAC addresses) was incorrectly filtered out ([#623](https://github.com/draht-dev/draht/pull/623) by [@ogulcancelik](https://github.com/ogulcancelik))
|
|
1453
1620
|
|
|
1454
1621
|
## [0.42.4] - 2026-01-10
|
|
1455
1622
|
|
|
1456
1623
|
### Fixed
|
|
1457
1624
|
|
|
1458
|
-
- Bash output expanded hint now says "(ctrl+o to collapse)" ([#610](https://github.com/
|
|
1459
|
-
- Fixed UTF-8 text corruption in remote bash execution (SSH, containers) by using streaming TextDecoder ([#608](https://github.com/
|
|
1625
|
+
- Bash output expanded hint now says "(ctrl+o to collapse)" ([#610](https://github.com/draht-dev/draht/pull/610) by [@tallshort](https://github.com/tallshort))
|
|
1626
|
+
- Fixed UTF-8 text corruption in remote bash execution (SSH, containers) by using streaming TextDecoder ([#608](https://github.com/draht-dev/draht/issues/608))
|
|
1460
1627
|
|
|
1461
1628
|
## [0.42.3] - 2026-01-10
|
|
1462
1629
|
|
|
@@ -1468,19 +1635,19 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1468
1635
|
|
|
1469
1636
|
### Added
|
|
1470
1637
|
|
|
1471
|
-
- `/model <search>` now pre-filters the model selector or auto-selects on exact match. Use `provider/model` syntax to disambiguate (e.g., `/model openai/gpt-4`). ([#587](https://github.com/
|
|
1472
|
-
- `FooterDataProvider` for custom footers: `ctx.ui.setFooter()` now receives a third `footerData` parameter providing `getGitBranch()`, `getExtensionStatuses()`, and `onBranchChange()` for reactive updates ([#600](https://github.com/
|
|
1473
|
-
- `Alt+Up` hotkey to restore queued steering/follow-up messages back into the editor without aborting the current run ([#604](https://github.com/
|
|
1638
|
+
- `/model <search>` now pre-filters the model selector or auto-selects on exact match. Use `provider/model` syntax to disambiguate (e.g., `/model openai/gpt-4`). ([#587](https://github.com/draht-dev/draht/pull/587) by [@zedrdave](https://github.com/zedrdave))
|
|
1639
|
+
- `FooterDataProvider` for custom footers: `ctx.ui.setFooter()` now receives a third `footerData` parameter providing `getGitBranch()`, `getExtensionStatuses()`, and `onBranchChange()` for reactive updates ([#600](https://github.com/draht-dev/draht/pull/600) by [@nicobailon](https://github.com/nicobailon))
|
|
1640
|
+
- `Alt+Up` hotkey to restore queued steering/follow-up messages back into the editor without aborting the current run ([#604](https://github.com/draht-dev/draht/pull/604) by [@tmustier](https://github.com/tmustier))
|
|
1474
1641
|
|
|
1475
1642
|
### Fixed
|
|
1476
1643
|
|
|
1477
|
-
- Fixed LM Studio compatibility for OpenAI Responses tool strict mapping in the ai provider ([#598](https://github.com/
|
|
1644
|
+
- Fixed LM Studio compatibility for OpenAI Responses tool strict mapping in the ai provider ([#598](https://github.com/draht-dev/draht/pull/598) by [@gnattu](https://github.com/gnattu))
|
|
1478
1645
|
|
|
1479
1646
|
## [0.42.1] - 2026-01-09
|
|
1480
1647
|
|
|
1481
1648
|
### Fixed
|
|
1482
1649
|
|
|
1483
|
-
- Symlinked directories in `prompts/` folders are now followed when loading prompt templates ([#601](https://github.com/
|
|
1650
|
+
- Symlinked directories in `prompts/` folders are now followed when loading prompt templates ([#601](https://github.com/draht-dev/draht/pull/601) by [@aliou](https://github.com/aliou))
|
|
1484
1651
|
|
|
1485
1652
|
## [0.42.0] - 2026-01-09
|
|
1486
1653
|
|
|
@@ -1521,32 +1688,32 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1521
1688
|
|
|
1522
1689
|
### Breaking Changes
|
|
1523
1690
|
|
|
1524
|
-
- `before_agent_start` event now receives `systemPrompt` in the event object and returns `systemPrompt` (full replacement) instead of `systemPromptAppend`. Extensions that were appending must now use `event.systemPrompt + extra` pattern. ([#575](https://github.com/
|
|
1525
|
-
- `discoverSkills()` now returns `{ skills: Skill[], warnings: SkillWarning[] }` instead of `Skill[]`. This allows callers to handle skill loading warnings. ([#577](https://github.com/
|
|
1691
|
+
- `before_agent_start` event now receives `systemPrompt` in the event object and returns `systemPrompt` (full replacement) instead of `systemPromptAppend`. Extensions that were appending must now use `event.systemPrompt + extra` pattern. ([#575](https://github.com/draht-dev/draht/issues/575))
|
|
1692
|
+
- `discoverSkills()` now returns `{ skills: Skill[], warnings: SkillWarning[] }` instead of `Skill[]`. This allows callers to handle skill loading warnings. ([#577](https://github.com/draht-dev/draht/pull/577) by [@cv](https://github.com/cv))
|
|
1526
1693
|
|
|
1527
1694
|
### Added
|
|
1528
1695
|
|
|
1529
|
-
- `ctx.ui.getAllThemes()`, `ctx.ui.getTheme(name)`, and `ctx.ui.setTheme(name | Theme)` methods for extensions to list, load, and switch themes at runtime ([#576](https://github.com/
|
|
1530
|
-
- `--no-tools` flag to disable all built-in tools, allowing extension-only tool setups ([#557](https://github.com/
|
|
1531
|
-
- Pluggable operations for built-in tools enabling remote execution via SSH or other transports ([#564](https://github.com/
|
|
1532
|
-
- `user_bash` event for intercepting user `!`/`!!` commands, allowing extensions to redirect to remote systems ([#528](https://github.com/
|
|
1696
|
+
- `ctx.ui.getAllThemes()`, `ctx.ui.getTheme(name)`, and `ctx.ui.setTheme(name | Theme)` methods for extensions to list, load, and switch themes at runtime ([#576](https://github.com/draht-dev/draht/pull/576))
|
|
1697
|
+
- `--no-tools` flag to disable all built-in tools, allowing extension-only tool setups ([#557](https://github.com/draht-dev/draht/pull/557) by [@cv](https://github.com/cv))
|
|
1698
|
+
- Pluggable operations for built-in tools enabling remote execution via SSH or other transports ([#564](https://github.com/draht-dev/draht/issues/564)). Interfaces: `ReadOperations`, `WriteOperations`, `EditOperations`, `BashOperations`, `LsOperations`, `GrepOperations`, `FindOperations`
|
|
1699
|
+
- `user_bash` event for intercepting user `!`/`!!` commands, allowing extensions to redirect to remote systems ([#528](https://github.com/draht-dev/draht/issues/528))
|
|
1533
1700
|
- `setActiveTools()` in ExtensionAPI for dynamic tool management
|
|
1534
1701
|
- Built-in renderers used automatically for tool overrides without custom `renderCall`/`renderResult`
|
|
1535
1702
|
- `ssh.ts` example: remote tool execution via `--ssh user@host:/path`
|
|
1536
1703
|
- `interactive-shell.ts` example: run interactive commands (vim, git rebase, htop) with full terminal access via `!i` prefix or auto-detection
|
|
1537
|
-
- Wayland clipboard support for `/copy` command using wl-copy with xclip/xsel fallback ([#570](https://github.com/
|
|
1538
|
-
- **Experimental:** `ctx.ui.custom()` now accepts `{ overlay: true }` option for floating modal components that composite over existing content without clearing the screen ([#558](https://github.com/
|
|
1539
|
-
- `AgentSession.skills` and `AgentSession.skillWarnings` properties to access loaded skills without rediscovery ([#577](https://github.com/
|
|
1704
|
+
- Wayland clipboard support for `/copy` command using wl-copy with xclip/xsel fallback ([#570](https://github.com/draht-dev/draht/pull/570) by [@OgulcanCelik](https://github.com/OgulcanCelik))
|
|
1705
|
+
- **Experimental:** `ctx.ui.custom()` now accepts `{ overlay: true }` option for floating modal components that composite over existing content without clearing the screen ([#558](https://github.com/draht-dev/draht/pull/558) by [@nicobailon](https://github.com/nicobailon))
|
|
1706
|
+
- `AgentSession.skills` and `AgentSession.skillWarnings` properties to access loaded skills without rediscovery ([#577](https://github.com/draht-dev/draht/pull/577) by [@cv](https://github.com/cv))
|
|
1540
1707
|
|
|
1541
1708
|
### Fixed
|
|
1542
1709
|
|
|
1543
|
-
- String `systemPrompt` in `createAgentSession()` now works as a full replacement instead of having context files and skills appended, matching documented behavior ([#543](https://github.com/
|
|
1544
|
-
- Update notification for bun binary installs now shows release download URL instead of npm command ([#567](https://github.com/
|
|
1545
|
-
- ESC key now works during "Working..." state after auto-retry ([#568](https://github.com/
|
|
1546
|
-
- Abort messages now show correct retry attempt count (e.g., "Aborted after 2 retry attempts") ([#568](https://github.com/
|
|
1547
|
-
- Fixed Antigravity provider returning 429 errors despite available quota ([#571](https://github.com/
|
|
1548
|
-
- Fixed malformed thinking text in Gemini/Antigravity responses where thinking content appeared as regular text or vice versa. Cross-model conversations now properly convert thinking blocks to plain text. ([#561](https://github.com/
|
|
1549
|
-
- `--no-skills` flag now correctly prevents skills from loading in interactive mode ([#577](https://github.com/
|
|
1710
|
+
- String `systemPrompt` in `createAgentSession()` now works as a full replacement instead of having context files and skills appended, matching documented behavior ([#543](https://github.com/draht-dev/draht/issues/543))
|
|
1711
|
+
- Update notification for bun binary installs now shows release download URL instead of npm command ([#567](https://github.com/draht-dev/draht/pull/567) by [@ferologics](https://github.com/ferologics))
|
|
1712
|
+
- ESC key now works during "Working..." state after auto-retry ([#568](https://github.com/draht-dev/draht/pull/568) by [@tmustier](https://github.com/tmustier))
|
|
1713
|
+
- Abort messages now show correct retry attempt count (e.g., "Aborted after 2 retry attempts") ([#568](https://github.com/draht-dev/draht/pull/568) by [@tmustier](https://github.com/tmustier))
|
|
1714
|
+
- Fixed Antigravity provider returning 429 errors despite available quota ([#571](https://github.com/draht-dev/draht/pull/571) by [@ben-vargas](https://github.com/ben-vargas))
|
|
1715
|
+
- Fixed malformed thinking text in Gemini/Antigravity responses where thinking content appeared as regular text or vice versa. Cross-model conversations now properly convert thinking blocks to plain text. ([#561](https://github.com/draht-dev/draht/issues/561))
|
|
1716
|
+
- `--no-skills` flag now correctly prevents skills from loading in interactive mode ([#577](https://github.com/draht-dev/draht/pull/577) by [@cv](https://github.com/cv))
|
|
1550
1717
|
|
|
1551
1718
|
## [0.38.0] - 2026-01-08
|
|
1552
1719
|
|
|
@@ -1558,44 +1725,44 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1558
1725
|
- `ExtensionRunner` constructor now requires `runtime: ExtensionRuntime` as second parameter
|
|
1559
1726
|
- `ExtensionRunner.initialize()` signature changed from options object to positional params `(actions, contextActions, commandContextActions?, uiContext?)`
|
|
1560
1727
|
- `ExtensionRunner.getHasUI()` renamed to `hasUI()`
|
|
1561
|
-
- OpenAI Codex model aliases removed (`gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `codex-mini-latest`). Use canonical IDs: `gpt-5.1`, `gpt-5.1-codex-mini`, `gpt-5.2`, `gpt-5.2-codex`. ([#536](https://github.com/
|
|
1728
|
+
- OpenAI Codex model aliases removed (`gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `codex-mini-latest`). Use canonical IDs: `gpt-5.1`, `gpt-5.1-codex-mini`, `gpt-5.2`, `gpt-5.2-codex`. ([#536](https://github.com/draht-dev/draht/pull/536) by [@ghoulr](https://github.com/ghoulr))
|
|
1562
1729
|
|
|
1563
1730
|
### Added
|
|
1564
1731
|
|
|
1565
|
-
- `--no-extensions` flag to disable extension discovery while still allowing explicit `-e` paths ([#524](https://github.com/
|
|
1732
|
+
- `--no-extensions` flag to disable extension discovery while still allowing explicit `-e` paths ([#524](https://github.com/draht-dev/draht/pull/524) by [@cv](https://github.com/cv))
|
|
1566
1733
|
- SDK: `InteractiveMode`, `runPrintMode()`, `runRpcMode()` exported for building custom run modes. See `docs/sdk.md`.
|
|
1567
|
-
- `PI_SKIP_VERSION_CHECK` environment variable to disable new version notifications at startup ([#549](https://github.com/
|
|
1568
|
-
- `thinkingBudgets` setting to customize token budgets per thinking level for token-based providers ([#529](https://github.com/
|
|
1569
|
-
- Extension UI dialogs (`ctx.ui.select()`, `ctx.ui.confirm()`, `ctx.ui.input()`) now support a `timeout` option with live countdown display ([#522](https://github.com/
|
|
1734
|
+
- `PI_SKIP_VERSION_CHECK` environment variable to disable new version notifications at startup ([#549](https://github.com/draht-dev/draht/pull/549) by [@aos](https://github.com/aos))
|
|
1735
|
+
- `thinkingBudgets` setting to customize token budgets per thinking level for token-based providers ([#529](https://github.com/draht-dev/draht/pull/529) by [@melihmucuk](https://github.com/melihmucuk))
|
|
1736
|
+
- Extension UI dialogs (`ctx.ui.select()`, `ctx.ui.confirm()`, `ctx.ui.input()`) now support a `timeout` option with live countdown display ([#522](https://github.com/draht-dev/draht/pull/522) by [@nicobailon](https://github.com/nicobailon))
|
|
1570
1737
|
- Extensions can now provide custom editor components via `ctx.ui.setEditorComponent()`. See `examples/extensions/modal-editor.ts` and `docs/tui.md` Pattern 7.
|
|
1571
|
-
- Extension factories can now be async, enabling dynamic imports and lazy-loaded dependencies ([#513](https://github.com/
|
|
1572
|
-
- `ctx.shutdown()` is now available in extension contexts for requesting a graceful shutdown. In interactive mode, shutdown is deferred until the agent becomes idle (after processing all queued steering and follow-up messages). In RPC mode, shutdown is deferred until after completing the current command response. In print mode, shutdown is a no-op as the process exits automatically when prompts complete. ([#542](https://github.com/
|
|
1738
|
+
- Extension factories can now be async, enabling dynamic imports and lazy-loaded dependencies ([#513](https://github.com/draht-dev/draht/pull/513) by [@austinm911](https://github.com/austinm911))
|
|
1739
|
+
- `ctx.shutdown()` is now available in extension contexts for requesting a graceful shutdown. In interactive mode, shutdown is deferred until the agent becomes idle (after processing all queued steering and follow-up messages). In RPC mode, shutdown is deferred until after completing the current command response. In print mode, shutdown is a no-op as the process exits automatically when prompts complete. ([#542](https://github.com/draht-dev/draht/pull/542) by [@kaofelix](https://github.com/kaofelix))
|
|
1573
1740
|
|
|
1574
1741
|
### Fixed
|
|
1575
1742
|
|
|
1576
|
-
- Default thinking level from settings now applies correctly when `enabledModels` is configured ([#540](https://github.com/
|
|
1577
|
-
- External edits to `settings.json` while pi is running are now preserved when pi saves settings ([#527](https://github.com/
|
|
1578
|
-
- Overflow-based compaction now skips if error came from a different model or was already handled by a previous compaction ([#535](https://github.com/
|
|
1579
|
-
- OpenAI Codex context window reduced from 400k to 272k tokens to match Codex CLI defaults and prevent 400 errors ([#536](https://github.com/
|
|
1743
|
+
- Default thinking level from settings now applies correctly when `enabledModels` is configured ([#540](https://github.com/draht-dev/draht/pull/540) by [@ferologics](https://github.com/ferologics))
|
|
1744
|
+
- External edits to `settings.json` while pi is running are now preserved when pi saves settings ([#527](https://github.com/draht-dev/draht/pull/527) by [@ferologics](https://github.com/ferologics))
|
|
1745
|
+
- Overflow-based compaction now skips if error came from a different model or was already handled by a previous compaction ([#535](https://github.com/draht-dev/draht/pull/535) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1746
|
+
- OpenAI Codex context window reduced from 400k to 272k tokens to match Codex CLI defaults and prevent 400 errors ([#536](https://github.com/draht-dev/draht/pull/536) by [@ghoulr](https://github.com/ghoulr))
|
|
1580
1747
|
- Context overflow detection now recognizes `context_length_exceeded` errors.
|
|
1581
|
-
- Key presses no longer dropped when input is batched over SSH ([#538](https://github.com/
|
|
1582
|
-
- Clipboard image support now works on Alpine Linux and other musl-based distros ([#533](https://github.com/
|
|
1748
|
+
- Key presses no longer dropped when input is batched over SSH ([#538](https://github.com/draht-dev/draht/issues/538))
|
|
1749
|
+
- Clipboard image support now works on Alpine Linux and other musl-based distros ([#533](https://github.com/draht-dev/draht/issues/533))
|
|
1583
1750
|
|
|
1584
1751
|
## [0.37.6] - 2026-01-06
|
|
1585
1752
|
|
|
1586
1753
|
### Added
|
|
1587
1754
|
|
|
1588
|
-
- Extension UI dialogs (`ctx.ui.select()`, `ctx.ui.confirm()`, `ctx.ui.input()`) now accept an optional `AbortSignal` to programmatically dismiss dialogs. Useful for implementing timeouts. See `examples/extensions/timed-confirm.ts`. ([#474](https://github.com/
|
|
1589
|
-
- HTML export now shows bridge prompts in model change messages for Codex sessions ([#510](https://github.com/
|
|
1755
|
+
- Extension UI dialogs (`ctx.ui.select()`, `ctx.ui.confirm()`, `ctx.ui.input()`) now accept an optional `AbortSignal` to programmatically dismiss dialogs. Useful for implementing timeouts. See `examples/extensions/timed-confirm.ts`. ([#474](https://github.com/draht-dev/draht/issues/474))
|
|
1756
|
+
- HTML export now shows bridge prompts in model change messages for Codex sessions ([#510](https://github.com/draht-dev/draht/pull/510) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1590
1757
|
|
|
1591
1758
|
## [0.37.5] - 2026-01-06
|
|
1592
1759
|
|
|
1593
1760
|
### Added
|
|
1594
1761
|
|
|
1595
|
-
- ExtensionAPI: `setModel()`, `getThinkingLevel()`, `setThinkingLevel()` methods for extensions to change model and thinking level at runtime ([#509](https://github.com/
|
|
1762
|
+
- ExtensionAPI: `setModel()`, `getThinkingLevel()`, `setThinkingLevel()` methods for extensions to change model and thinking level at runtime ([#509](https://github.com/draht-dev/draht/issues/509))
|
|
1596
1763
|
- Exported truncation utilities for custom tools: `truncateHead`, `truncateTail`, `truncateLine`, `formatSize`, `DEFAULT_MAX_BYTES`, `DEFAULT_MAX_LINES`, `TruncationOptions`, `TruncationResult`
|
|
1597
1764
|
- New example `truncated-tool.ts` demonstrating proper output truncation with custom rendering for extensions
|
|
1598
|
-
- New example `preset.ts` demonstrating preset configurations with model/thinking/tools switching ([#347](https://github.com/
|
|
1765
|
+
- New example `preset.ts` demonstrating preset configurations with model/thinking/tools switching ([#347](https://github.com/draht-dev/draht/issues/347))
|
|
1599
1766
|
- Documentation for output truncation best practices in `docs/extensions.md`
|
|
1600
1767
|
- Exported all UI components for extensions: `ArminComponent`, `AssistantMessageComponent`, `BashExecutionComponent`, `BorderedLoader`, `BranchSummaryMessageComponent`, `CompactionSummaryMessageComponent`, `CustomEditor`, `CustomMessageComponent`, `DynamicBorder`, `ExtensionEditorComponent`, `ExtensionInputComponent`, `ExtensionSelectorComponent`, `FooterComponent`, `LoginDialogComponent`, `ModelSelectorComponent`, `OAuthSelectorComponent`, `SessionSelectorComponent`, `SettingsSelectorComponent`, `ShowImagesSelectorComponent`, `ThemeSelectorComponent`, `ThinkingSelectorComponent`, `ToolExecutionComponent`, `TreeSelectorComponent`, `UserMessageComponent`, `UserMessageSelectorComponent`, plus utilities `renderDiff`, `truncateToVisualLines`
|
|
1601
1768
|
- `docs/tui.md`: Common Patterns section with copy-paste code for SelectList, BorderedLoader, SettingsList, setStatus, setWidget, setFooter
|
|
@@ -1607,8 +1774,8 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1607
1774
|
|
|
1608
1775
|
### Added
|
|
1609
1776
|
|
|
1610
|
-
- Session picker (`pi -r`) and `--session` flag now support searching/resuming by session ID (UUID prefix) ([#495](https://github.com/
|
|
1611
|
-
- Extensions can now replace the startup header with `ctx.ui.setHeader()`, see `examples/extensions/custom-header.ts` ([#500](https://github.com/
|
|
1777
|
+
- Session picker (`pi -r`) and `--session` flag now support searching/resuming by session ID (UUID prefix) ([#495](https://github.com/draht-dev/draht/issues/495) by [@arunsathiya](https://github.com/arunsathiya))
|
|
1778
|
+
- Extensions can now replace the startup header with `ctx.ui.setHeader()`, see `examples/extensions/custom-header.ts` ([#500](https://github.com/draht-dev/draht/pull/500) by [@tudoroancea](https://github.com/tudoroancea))
|
|
1612
1779
|
|
|
1613
1780
|
### Changed
|
|
1614
1781
|
|
|
@@ -1617,31 +1784,31 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1617
1784
|
|
|
1618
1785
|
### Fixed
|
|
1619
1786
|
|
|
1620
|
-
- Queued steering/follow-up messages no longer wipe unsent editor input ([#503](https://github.com/
|
|
1621
|
-
- OAuth token refresh failure no longer crashes app at startup, allowing user to `/login` to re-authenticate ([#498](https://github.com/
|
|
1787
|
+
- Queued steering/follow-up messages no longer wipe unsent editor input ([#503](https://github.com/draht-dev/draht/pull/503) by [@tmustier](https://github.com/tmustier))
|
|
1788
|
+
- OAuth token refresh failure no longer crashes app at startup, allowing user to `/login` to re-authenticate ([#498](https://github.com/draht-dev/draht/issues/498))
|
|
1622
1789
|
|
|
1623
1790
|
## [0.37.3] - 2026-01-06
|
|
1624
1791
|
|
|
1625
1792
|
### Added
|
|
1626
1793
|
|
|
1627
|
-
- Extensions can now replace the footer with `ctx.ui.setFooter()`, see `examples/extensions/custom-footer.ts` ([#481](https://github.com/
|
|
1794
|
+
- Extensions can now replace the footer with `ctx.ui.setFooter()`, see `examples/extensions/custom-footer.ts` ([#481](https://github.com/draht-dev/draht/issues/481))
|
|
1628
1795
|
- Session ID is now forwarded to LLM providers for session-based caching (used by OpenAI Codex for prompt caching).
|
|
1629
|
-
- Added `blockImages` setting to prevent images from being sent to LLM providers ([#492](https://github.com/
|
|
1630
|
-
- Extensions can now send user messages via `pi.sendUserMessage()` ([#483](https://github.com/
|
|
1796
|
+
- Added `blockImages` setting to prevent images from being sent to LLM providers ([#492](https://github.com/draht-dev/draht/pull/492) by [@jsinge97](https://github.com/jsinge97))
|
|
1797
|
+
- Extensions can now send user messages via `pi.sendUserMessage()` ([#483](https://github.com/draht-dev/draht/issues/483))
|
|
1631
1798
|
|
|
1632
1799
|
### Fixed
|
|
1633
1800
|
|
|
1634
1801
|
- Add `minimatch` as a direct dependency for explicit imports.
|
|
1635
|
-
- Status bar now shows correct git branch when running in a git worktree ([#490](https://github.com/
|
|
1636
|
-
- Interactive mode: Ctrl+V clipboard image paste now works on Wayland sessions by using `wl-paste` with `xclip` fallback ([#488](https://github.com/
|
|
1802
|
+
- Status bar now shows correct git branch when running in a git worktree ([#490](https://github.com/draht-dev/draht/pull/490) by [@kcosr](https://github.com/kcosr))
|
|
1803
|
+
- Interactive mode: Ctrl+V clipboard image paste now works on Wayland sessions by using `wl-paste` with `xclip` fallback ([#488](https://github.com/draht-dev/draht/pull/488) by [@ghoulr](https://github.com/ghoulr))
|
|
1637
1804
|
|
|
1638
1805
|
## [0.37.2] - 2026-01-05
|
|
1639
1806
|
|
|
1640
1807
|
### Fixed
|
|
1641
1808
|
|
|
1642
|
-
- Extension directories in `settings.json` now respect `package.json` manifests, matching global extension behavior ([#480](https://github.com/
|
|
1809
|
+
- Extension directories in `settings.json` now respect `package.json` manifests, matching global extension behavior ([#480](https://github.com/draht-dev/draht/pull/480) by [@prateekmedia](https://github.com/prateekmedia))
|
|
1643
1810
|
- Share viewer: deep links now scroll to the target message when opened via `/share`
|
|
1644
|
-
- Bash tool now handles spawn errors gracefully instead of crashing the agent (missing cwd, invalid shell path) ([#479](https://github.com/
|
|
1811
|
+
- Bash tool now handles spawn errors gracefully instead of crashing the agent (missing cwd, invalid shell path) ([#479](https://github.com/draht-dev/draht/pull/479) by [@robinwander](https://github.com/robinwander))
|
|
1645
1812
|
|
|
1646
1813
|
## [0.37.1] - 2026-01-05
|
|
1647
1814
|
|
|
@@ -1653,35 +1820,35 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1653
1820
|
|
|
1654
1821
|
### Added
|
|
1655
1822
|
|
|
1656
|
-
- Share viewer: copy-link button on messages to share URLs that navigate directly to a specific message ([#477](https://github.com/
|
|
1657
|
-
- Extension example: add `claude-rules` to load `.claude/rules/` entries into the system prompt ([#461](https://github.com/
|
|
1658
|
-
- Headless OAuth login: all providers now show paste input for manual URL/code entry, works over SSH without DISPLAY ([#428](https://github.com/
|
|
1823
|
+
- Share viewer: copy-link button on messages to share URLs that navigate directly to a specific message ([#477](https://github.com/draht-dev/draht/pull/477) by [@lockmeister](https://github.com/lockmeister))
|
|
1824
|
+
- Extension example: add `claude-rules` to load `.claude/rules/` entries into the system prompt ([#461](https://github.com/draht-dev/draht/pull/461) by [@vaayne](https://github.com/vaayne))
|
|
1825
|
+
- Headless OAuth login: all providers now show paste input for manual URL/code entry, works over SSH without DISPLAY ([#428](https://github.com/draht-dev/draht/pull/428) by [@ben-vargas](https://github.com/ben-vargas), [#468](https://github.com/draht-dev/draht/pull/468) by [@crcatala](https://github.com/crcatala))
|
|
1659
1826
|
|
|
1660
1827
|
### Changed
|
|
1661
1828
|
|
|
1662
1829
|
- OAuth login UI now uses dedicated dialog component with consistent borders
|
|
1663
1830
|
- Assume truecolor support for all terminals except `dumb`, empty, or `linux` (fixes colors over SSH)
|
|
1664
|
-
- OpenAI Codex clean-up: removed per-thinking-level model variants, thinking level is now set separately and the provider clamps to what each model supports internally (initial implementation in [#472](https://github.com/
|
|
1831
|
+
- OpenAI Codex clean-up: removed per-thinking-level model variants, thinking level is now set separately and the provider clamps to what each model supports internally (initial implementation in [#472](https://github.com/draht-dev/draht/pull/472) by [@ben-vargas](https://github.com/ben-vargas))
|
|
1665
1832
|
|
|
1666
1833
|
### Fixed
|
|
1667
1834
|
|
|
1668
|
-
- Messages submitted during compaction are queued and delivered after compaction completes, preserving steering and follow-up behavior. Extension commands execute immediately during compaction. ([#476](https://github.com/
|
|
1669
|
-
- Managed binaries (`fd`, `rg`) now stored in `~/.pi/agent/bin/` instead of `tools/`, eliminating false deprecation warnings ([#470](https://github.com/
|
|
1670
|
-
- Extensions defined in `settings.json` were not loaded ([#463](https://github.com/
|
|
1671
|
-
- OAuth refresh no longer logs users out when multiple pi instances are running ([#466](https://github.com/
|
|
1672
|
-
- Migration warnings now ignore `fd.exe` and `rg.exe` in `tools/` on Windows ([#458](https://github.com/
|
|
1673
|
-
- CI: add `examples/extensions/with-deps` to workspaces to fix typecheck ([#467](https://github.com/
|
|
1674
|
-
- SDK: passing `extensions: []` now disables extension discovery as documented ([#465](https://github.com/
|
|
1835
|
+
- Messages submitted during compaction are queued and delivered after compaction completes, preserving steering and follow-up behavior. Extension commands execute immediately during compaction. ([#476](https://github.com/draht-dev/draht/pull/476) by [@tmustier](https://github.com/tmustier))
|
|
1836
|
+
- Managed binaries (`fd`, `rg`) now stored in `~/.pi/agent/bin/` instead of `tools/`, eliminating false deprecation warnings ([#470](https://github.com/draht-dev/draht/pull/470) by [@mcinteerj](https://github.com/mcinteerj))
|
|
1837
|
+
- Extensions defined in `settings.json` were not loaded ([#463](https://github.com/draht-dev/draht/pull/463) by [@melihmucuk](https://github.com/melihmucuk))
|
|
1838
|
+
- OAuth refresh no longer logs users out when multiple pi instances are running ([#466](https://github.com/draht-dev/draht/pull/466) by [@Cursivez](https://github.com/Cursivez))
|
|
1839
|
+
- Migration warnings now ignore `fd.exe` and `rg.exe` in `tools/` on Windows ([#458](https://github.com/draht-dev/draht/pull/458) by [@carlosgtrz](https://github.com/carlosgtrz))
|
|
1840
|
+
- CI: add `examples/extensions/with-deps` to workspaces to fix typecheck ([#467](https://github.com/draht-dev/draht/pull/467) by [@aliou](https://github.com/aliou))
|
|
1841
|
+
- SDK: passing `extensions: []` now disables extension discovery as documented ([#465](https://github.com/draht-dev/draht/pull/465) by [@aliou](https://github.com/aliou))
|
|
1675
1842
|
|
|
1676
1843
|
## [0.36.0] - 2026-01-05
|
|
1677
1844
|
|
|
1678
1845
|
### Added
|
|
1679
1846
|
|
|
1680
|
-
- Experimental: OpenAI Codex OAuth provider support: access Codex models via ChatGPT Plus/Pro subscription using `/login openai-codex` ([#451](https://github.com/
|
|
1847
|
+
- Experimental: OpenAI Codex OAuth provider support: access Codex models via ChatGPT Plus/Pro subscription using `/login openai-codex` ([#451](https://github.com/draht-dev/draht/pull/451) by [@kim0](https://github.com/kim0))
|
|
1681
1848
|
|
|
1682
1849
|
## [0.35.0] - 2026-01-05
|
|
1683
1850
|
|
|
1684
|
-
This release unifies hooks and custom tools into a single "extensions" system and renames "slash commands" to "prompt templates". ([#454](https://github.com/
|
|
1851
|
+
This release unifies hooks and custom tools into a single "extensions" system and renames "slash commands" to "prompt templates". ([#454](https://github.com/draht-dev/draht/issues/454))
|
|
1685
1852
|
|
|
1686
1853
|
**Before migrating, read:**
|
|
1687
1854
|
|
|
@@ -1717,14 +1884,14 @@ Hooks and custom tools are now unified as **extensions**. Both were TypeScript m
|
|
|
1717
1884
|
|
|
1718
1885
|
1. **Direct files:** `extensions/*.ts` or `*.js` → loaded directly
|
|
1719
1886
|
2. **Subdirectory with index:** `extensions/myext/index.ts` → loaded as single extension
|
|
1720
|
-
3. **Subdirectory with package.json:** `extensions/myext/package.json` with `"
|
|
1887
|
+
3. **Subdirectory with package.json:** `extensions/myext/package.json` with `"draht"` field → loads declared paths
|
|
1721
1888
|
|
|
1722
1889
|
```json
|
|
1723
1890
|
// extensions/my-package/package.json
|
|
1724
1891
|
{
|
|
1725
1892
|
"name": "my-extension-package",
|
|
1726
1893
|
"dependencies": { "zod": "^3.0.0" },
|
|
1727
|
-
"
|
|
1894
|
+
"draht": {
|
|
1728
1895
|
"extensions": ["./src/main.ts", "./src/tools.ts"]
|
|
1729
1896
|
}
|
|
1730
1897
|
}
|
|
@@ -1749,16 +1916,16 @@ No recursion beyond one level. Complex packages must use the `package.json` mani
|
|
|
1749
1916
|
|
|
1750
1917
|
```typescript
|
|
1751
1918
|
// Before (hook)
|
|
1752
|
-
import type { HookAPI, HookContext } from "@
|
|
1919
|
+
import type { HookAPI, HookContext } from "@draht/coding-agent";
|
|
1753
1920
|
export default function (pi: HookAPI) { ... }
|
|
1754
1921
|
|
|
1755
1922
|
// Before (custom tool)
|
|
1756
|
-
import type { CustomToolFactory } from "@
|
|
1923
|
+
import type { CustomToolFactory } from "@draht/coding-agent";
|
|
1757
1924
|
const factory: CustomToolFactory = (pi) => ({ name: "my_tool", ... });
|
|
1758
1925
|
export default factory;
|
|
1759
1926
|
|
|
1760
1927
|
// After (both are now extensions)
|
|
1761
|
-
import type { ExtensionAPI } from "@
|
|
1928
|
+
import type { ExtensionAPI } from "@draht/coding-agent";
|
|
1762
1929
|
export default function (pi: ExtensionAPI) {
|
|
1763
1930
|
pi.on("tool_call", async (event, ctx) => { ... });
|
|
1764
1931
|
pi.registerTool({ name: "my_tool", ... });
|
|
@@ -1902,11 +2069,11 @@ pi --extension ./safety.ts -e ./todo.ts
|
|
|
1902
2069
|
|
|
1903
2070
|
### Added
|
|
1904
2071
|
|
|
1905
|
-
- Hook API: `ctx.ui.setTitle(title)` allows hooks to set the terminal window/tab title ([#446](https://github.com/
|
|
2072
|
+
- Hook API: `ctx.ui.setTitle(title)` allows hooks to set the terminal window/tab title ([#446](https://github.com/draht-dev/draht/pull/446) by [@aliou](https://github.com/aliou))
|
|
1906
2073
|
|
|
1907
2074
|
### Changed
|
|
1908
2075
|
|
|
1909
|
-
- Expanded keybinding documentation to list all 32 supported symbol keys with notes on ctrl+symbol behavior ([#450](https://github.com/
|
|
2076
|
+
- Expanded keybinding documentation to list all 32 supported symbol keys with notes on ctrl+symbol behavior ([#450](https://github.com/draht-dev/draht/pull/450) by [@kaofelix](https://github.com/kaofelix))
|
|
1910
2077
|
|
|
1911
2078
|
## [0.34.0] - 2026-01-04
|
|
1912
2079
|
|
|
@@ -1943,28 +2110,28 @@ pi --extension ./safety.ts -e ./todo.ts
|
|
|
1943
2110
|
|
|
1944
2111
|
### Changed
|
|
1945
2112
|
|
|
1946
|
-
- Removed image placeholders after copy & paste, replaced with inserting image file paths directly. ([#442](https://github.com/
|
|
2113
|
+
- Removed image placeholders after copy & paste, replaced with inserting image file paths directly. ([#442](https://github.com/draht-dev/draht/pull/442) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1947
2114
|
|
|
1948
2115
|
### Fixed
|
|
1949
2116
|
|
|
1950
2117
|
- Fixed potential text decoding issues in bash executor by using streaming TextDecoder instead of Buffer.toString()
|
|
1951
|
-
- External editor (Ctrl-G) now shows full pasted content instead of `[paste #N ...]` placeholders ([#444](https://github.com/
|
|
2118
|
+
- External editor (Ctrl-G) now shows full pasted content instead of `[paste #N ...]` placeholders ([#444](https://github.com/draht-dev/draht/pull/444) by [@aliou](https://github.com/aliou))
|
|
1952
2119
|
|
|
1953
2120
|
## [0.33.0] - 2026-01-04
|
|
1954
2121
|
|
|
1955
2122
|
### Breaking Changes
|
|
1956
2123
|
|
|
1957
|
-
- **Key detection functions removed from `@
|
|
2124
|
+
- **Key detection functions removed from `@draht/tui`**: All `isXxx()` key detection functions (`isEnter()`, `isEscape()`, `isCtrlC()`, etc.) have been removed. Use `matchesKey(data, keyId)` instead (e.g., `matchesKey(data, "enter")`, `matchesKey(data, "ctrl+c")`). This affects hooks and custom tools that use `ctx.ui.custom()` with keyboard input handling. ([#405](https://github.com/draht-dev/draht/pull/405))
|
|
1958
2125
|
|
|
1959
2126
|
### Added
|
|
1960
2127
|
|
|
1961
|
-
- Clipboard image paste support via `Ctrl+V`. Images are saved to a temp file and attached to the message. Works on macOS, Windows, and Linux (X11). ([#419](https://github.com/
|
|
1962
|
-
- Configurable keybindings via `~/.pi/agent/keybindings.json`. All keyboard shortcuts (editor navigation, deletion, app actions like model cycling, etc.) can now be customized. Supports multiple bindings per action. ([#405](https://github.com/
|
|
1963
|
-
- `/quit` and `/exit` slash commands to gracefully exit the application. Unlike double Ctrl+C, these properly await hook and custom tool cleanup handlers before exiting. ([#426](https://github.com/
|
|
2128
|
+
- Clipboard image paste support via `Ctrl+V`. Images are saved to a temp file and attached to the message. Works on macOS, Windows, and Linux (X11). ([#419](https://github.com/draht-dev/draht/issues/419))
|
|
2129
|
+
- Configurable keybindings via `~/.pi/agent/keybindings.json`. All keyboard shortcuts (editor navigation, deletion, app actions like model cycling, etc.) can now be customized. Supports multiple bindings per action. ([#405](https://github.com/draht-dev/draht/pull/405) by [@hjanuschka](https://github.com/hjanuschka))
|
|
2130
|
+
- `/quit` and `/exit` slash commands to gracefully exit the application. Unlike double Ctrl+C, these properly await hook and custom tool cleanup handlers before exiting. ([#426](https://github.com/draht-dev/draht/pull/426) by [@ben-vargas](https://github.com/ben-vargas))
|
|
1964
2131
|
|
|
1965
2132
|
### Fixed
|
|
1966
2133
|
|
|
1967
|
-
- Subagent example README referenced incorrect filename `subagent.ts` instead of `index.ts` ([#427](https://github.com/
|
|
2134
|
+
- Subagent example README referenced incorrect filename `subagent.ts` instead of `index.ts` ([#427](https://github.com/draht-dev/draht/pull/427) by [@Whamp](https://github.com/Whamp))
|
|
1968
2135
|
|
|
1969
2136
|
## [0.32.3] - 2026-01-03
|
|
1970
2137
|
|
|
@@ -1972,14 +2139,14 @@ pi --extension ./safety.ts -e ./todo.ts
|
|
|
1972
2139
|
|
|
1973
2140
|
- `--list-models` no longer shows Google Vertex AI models without explicit authentication configured
|
|
1974
2141
|
- JPEG/GIF/WebP images not displaying in terminals using Kitty graphics protocol (Kitty, Ghostty, WezTerm). The protocol requires PNG format, so non-PNG images are now converted before display.
|
|
1975
|
-
- Version check URL typo preventing update notifications from working ([#423](https://github.com/
|
|
1976
|
-
- Large images exceeding Anthropic's 5MB limit now retry with progressive quality/size reduction ([#424](https://github.com/
|
|
2142
|
+
- Version check URL typo preventing update notifications from working ([#423](https://github.com/draht-dev/draht/pull/423) by [@skuridin](https://github.com/skuridin))
|
|
2143
|
+
- Large images exceeding Anthropic's 5MB limit now retry with progressive quality/size reduction ([#424](https://github.com/draht-dev/draht/pull/424) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1977
2144
|
|
|
1978
2145
|
## [0.32.2] - 2026-01-03
|
|
1979
2146
|
|
|
1980
2147
|
### Added
|
|
1981
2148
|
|
|
1982
|
-
- `$ARGUMENTS` syntax for custom slash commands as alternative to `$@` for all arguments joined. Aligns with patterns used by Claude, Codex, and OpenCode. Both syntaxes remain fully supported. ([#418](https://github.com/
|
|
2149
|
+
- `$ARGUMENTS` syntax for custom slash commands as alternative to `$@` for all arguments joined. Aligns with patterns used by Claude, Codex, and OpenCode. Both syntaxes remain fully supported. ([#418](https://github.com/draht-dev/draht/pull/418) by [@skuridin](https://github.com/skuridin))
|
|
1983
2150
|
|
|
1984
2151
|
### Changed
|
|
1985
2152
|
|
|
@@ -1989,17 +2156,17 @@ pi --extension ./safety.ts -e ./todo.ts
|
|
|
1989
2156
|
- `steer()` and `followUp()` now expand file-based slash commands and error on hook commands (hook commands cannot be queued)
|
|
1990
2157
|
- `prompt()` accepts new `streamingBehavior` option (`"steer"` or `"followUp"`) to specify queueing behavior during streaming
|
|
1991
2158
|
- RPC `prompt` command now accepts optional `streamingBehavior` field
|
|
1992
|
-
([#420](https://github.com/
|
|
2159
|
+
([#420](https://github.com/draht-dev/draht/issues/420))
|
|
1993
2160
|
|
|
1994
2161
|
### Fixed
|
|
1995
2162
|
|
|
1996
|
-
- Slash command argument substitution now processes positional arguments (`$1`, `$2`, etc.) before all-arguments (`$@`, `$ARGUMENTS`) to prevent recursive substitution when argument values contain dollar-digit patterns like `$100`. ([#418](https://github.com/
|
|
2163
|
+
- Slash command argument substitution now processes positional arguments (`$1`, `$2`, etc.) before all-arguments (`$@`, `$ARGUMENTS`) to prevent recursive substitution when argument values contain dollar-digit patterns like `$100`. ([#418](https://github.com/draht-dev/draht/pull/418) by [@skuridin](https://github.com/skuridin))
|
|
1997
2164
|
|
|
1998
2165
|
## [0.32.1] - 2026-01-03
|
|
1999
2166
|
|
|
2000
2167
|
### Added
|
|
2001
2168
|
|
|
2002
|
-
- Shell commands without context contribution: use `!!command` to execute a bash command that is shown in the TUI and saved to session history but excluded from LLM context. Useful for running commands you don't want the AI to see. ([#414](https://github.com/
|
|
2169
|
+
- Shell commands without context contribution: use `!!command` to execute a bash command that is shown in the TUI and saved to session history but excluded from LLM context. Useful for running commands you don't want the AI to see. ([#414](https://github.com/draht-dev/draht/issues/414))
|
|
2003
2170
|
|
|
2004
2171
|
### Fixed
|
|
2005
2172
|
|
|
@@ -2009,7 +2176,7 @@ pi --extension ./safety.ts -e ./todo.ts
|
|
|
2009
2176
|
|
|
2010
2177
|
### Breaking Changes
|
|
2011
2178
|
|
|
2012
|
-
- **Queue API replaced with steer/followUp**: The `queueMessage()` method has been split into two methods with different delivery semantics ([#403](https://github.com/
|
|
2179
|
+
- **Queue API replaced with steer/followUp**: The `queueMessage()` method has been split into two methods with different delivery semantics ([#403](https://github.com/draht-dev/draht/issues/403)):
|
|
2013
2180
|
- `steer(text)`: Interrupts the agent mid-run (Enter while streaming). Delivered after current tool execution.
|
|
2014
2181
|
- `followUp(text)`: Waits until the agent finishes (Alt+Enter while streaming). Delivered only when agent stops.
|
|
2015
2182
|
- **Settings renamed**: `queueMode` setting renamed to `steeringMode`. Added new `followUpMode` setting. Old settings.json files are migrated automatically.
|
|
@@ -2030,31 +2197,31 @@ pi --extension ./safety.ts -e ./todo.ts
|
|
|
2030
2197
|
|
|
2031
2198
|
### Added
|
|
2032
2199
|
|
|
2033
|
-
- Configurable double-escape action: choose whether double-escape with empty editor opens `/tree` (default) or `/branch`. Configure via `/settings` or `doubleEscapeAction` in settings.json ([#404](https://github.com/
|
|
2034
|
-
- Vertex AI provider (`google-vertex`): access Gemini models via Google Cloud Vertex AI using Application Default Credentials ([#300](https://github.com/
|
|
2035
|
-
- Built-in provider overrides in `models.json`: override just `baseUrl` to route a built-in provider through a proxy while keeping all its models, or define `models` to fully replace the provider ([#406](https://github.com/
|
|
2036
|
-
- Automatic image resizing: images larger than 2000x2000 are resized for better model compatibility. Original dimensions are injected into the prompt. Controlled via `/settings` or `images.autoResize` in settings.json. ([#402](https://github.com/
|
|
2200
|
+
- Configurable double-escape action: choose whether double-escape with empty editor opens `/tree` (default) or `/branch`. Configure via `/settings` or `doubleEscapeAction` in settings.json ([#404](https://github.com/draht-dev/draht/issues/404))
|
|
2201
|
+
- Vertex AI provider (`google-vertex`): access Gemini models via Google Cloud Vertex AI using Application Default Credentials ([#300](https://github.com/draht-dev/draht/pull/300) by [@default-anton](https://github.com/default-anton))
|
|
2202
|
+
- Built-in provider overrides in `models.json`: override just `baseUrl` to route a built-in provider through a proxy while keeping all its models, or define `models` to fully replace the provider ([#406](https://github.com/draht-dev/draht/pull/406) by [@yevhen](https://github.com/yevhen))
|
|
2203
|
+
- Automatic image resizing: images larger than 2000x2000 are resized for better model compatibility. Original dimensions are injected into the prompt. Controlled via `/settings` or `images.autoResize` in settings.json. ([#402](https://github.com/draht-dev/draht/pull/402) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
2037
2204
|
- Alt+Enter keybind to queue follow-up messages while agent is streaming
|
|
2038
2205
|
- `Theme` and `ThemeColor` types now exported for hooks using `ctx.ui.custom()`
|
|
2039
|
-
- Terminal window title now displays "pi - dirname" to identify which project session you're in ([#407](https://github.com/
|
|
2206
|
+
- Terminal window title now displays "pi - dirname" to identify which project session you're in ([#407](https://github.com/draht-dev/draht/pull/407) by [@kaofelix](https://github.com/kaofelix))
|
|
2040
2207
|
|
|
2041
2208
|
### Changed
|
|
2042
2209
|
|
|
2043
|
-
- Editor component now uses word wrapping instead of character-level wrapping for better readability ([#382](https://github.com/
|
|
2210
|
+
- Editor component now uses word wrapping instead of character-level wrapping for better readability ([#382](https://github.com/draht-dev/draht/pull/382) by [@nickseelert](https://github.com/nickseelert))
|
|
2044
2211
|
|
|
2045
2212
|
### Fixed
|
|
2046
2213
|
|
|
2047
2214
|
- `/model` selector now opens instantly instead of waiting for OAuth token refresh. Token refresh is deferred until a model is actually used.
|
|
2048
|
-
- Shift+Space, Shift+Backspace, and Shift+Delete now work correctly in Kitty-protocol terminals (Kitty, WezTerm, etc.) instead of being silently ignored ([#411](https://github.com/
|
|
2215
|
+
- Shift+Space, Shift+Backspace, and Shift+Delete now work correctly in Kitty-protocol terminals (Kitty, WezTerm, etc.) instead of being silently ignored ([#411](https://github.com/draht-dev/draht/pull/411) by [@nathyong](https://github.com/nathyong))
|
|
2049
2216
|
- `AgentSession.prompt()` now throws if called while the agent is already streaming, preventing race conditions. Use `steer()` or `followUp()` to queue messages during streaming.
|
|
2050
|
-
- Ctrl+C now works like Escape in selector components, so mashing Ctrl+C will eventually close the program ([#400](https://github.com/
|
|
2217
|
+
- Ctrl+C now works like Escape in selector components, so mashing Ctrl+C will eventually close the program ([#400](https://github.com/draht-dev/draht/pull/400) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
2051
2218
|
|
|
2052
2219
|
## [0.31.1] - 2026-01-02
|
|
2053
2220
|
|
|
2054
2221
|
### Fixed
|
|
2055
2222
|
|
|
2056
|
-
- Model selector no longer allows negative index when pressing arrow keys before models finish loading ([#398](https://github.com/
|
|
2057
|
-
- Type guard functions (`isBashToolResult`, etc.) now exported at runtime, not just in type declarations ([#397](https://github.com/
|
|
2223
|
+
- Model selector no longer allows negative index when pressing arrow keys before models finish loading ([#398](https://github.com/draht-dev/draht/pull/398) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
2224
|
+
- Type guard functions (`isBashToolResult`, etc.) now exported at runtime, not just in type declarations ([#397](https://github.com/draht-dev/draht/issues/397))
|
|
2058
2225
|
|
|
2059
2226
|
## [0.31.0] - 2026-01-02
|
|
2060
2227
|
|
|
@@ -2163,7 +2330,7 @@ See [docs/custom-tools.md](docs/custom-tools.md) and [examples/custom-tools/](ex
|
|
|
2163
2330
|
- `AppMessage` → `AgentMessage`
|
|
2164
2331
|
- `sessionFile` returns `string | undefined` (was `string | null`)
|
|
2165
2332
|
- `model` returns `Model | undefined` (was `Model | null`)
|
|
2166
|
-
- `Attachment` type removed. Use `ImageContent` from `@
|
|
2333
|
+
- `Attachment` type removed. Use `ImageContent` from `@draht/ai` instead. Add images directly to message content arrays.
|
|
2167
2334
|
|
|
2168
2335
|
**AgentSession API:**
|
|
2169
2336
|
|
|
@@ -2199,7 +2366,7 @@ See [docs/custom-tools.md](docs/custom-tools.md) and [examples/custom-tools/](ex
|
|
|
2199
2366
|
import {
|
|
2200
2367
|
discoverAuthStorage,
|
|
2201
2368
|
discoverModels,
|
|
2202
|
-
} from "@
|
|
2369
|
+
} from "@draht/coding-agent";
|
|
2203
2370
|
|
|
2204
2371
|
const authStorage = discoverAuthStorage(); // ~/.pi/agent/auth.json
|
|
2205
2372
|
const modelRegistry = discoverModels(authStorage); // + ~/.pi/agent/models.json
|
|
@@ -2292,15 +2459,15 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2292
2459
|
|
|
2293
2460
|
### Added
|
|
2294
2461
|
|
|
2295
|
-
- `ctx.ui.setStatus(key, text)` for hooks to display persistent status text in the footer ([#385](https://github.com/
|
|
2462
|
+
- `ctx.ui.setStatus(key, text)` for hooks to display persistent status text in the footer ([#385](https://github.com/draht-dev/draht/pull/385) by [@prateekmedia](https://github.com/prateekmedia))
|
|
2296
2463
|
- `ctx.ui.theme` getter for styling status text and other output with theme colors
|
|
2297
|
-
- `/share` command to upload session as a secret GitHub gist and get a shareable URL via shittycodingagent.ai ([#380](https://github.com/
|
|
2298
|
-
- HTML export now includes a tree visualization sidebar for navigating session branches ([#375](https://github.com/
|
|
2464
|
+
- `/share` command to upload session as a secret GitHub gist and get a shareable URL via shittycodingagent.ai ([#380](https://github.com/draht-dev/draht/issues/380))
|
|
2465
|
+
- HTML export now includes a tree visualization sidebar for navigating session branches ([#375](https://github.com/draht-dev/draht/issues/375))
|
|
2299
2466
|
- HTML export supports keyboard shortcuts: Ctrl+T to toggle thinking blocks, Ctrl+O to toggle tool outputs
|
|
2300
|
-
- HTML export supports theme-configurable background colors via optional `export` section in theme JSON ([#387](https://github.com/
|
|
2467
|
+
- HTML export supports theme-configurable background colors via optional `export` section in theme JSON ([#387](https://github.com/draht-dev/draht/pull/387) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
2301
2468
|
- HTML export syntax highlighting now uses theme colors and matches TUI rendering
|
|
2302
2469
|
- **Snake game example hook**: Demonstrates `ui.custom()`, `registerCommand()`, and session persistence. See [examples/hooks/snake.ts](examples/hooks/snake.ts).
|
|
2303
|
-
- **`thinkingText` theme token**: Configurable color for thinking block text. ([#366](https://github.com/
|
|
2470
|
+
- **`thinkingText` theme token**: Configurable color for thinking block text. ([#366](https://github.com/draht-dev/draht/pull/366) by [@paulbettner](https://github.com/paulbettner))
|
|
2304
2471
|
|
|
2305
2472
|
### Changed
|
|
2306
2473
|
|
|
@@ -2311,21 +2478,21 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2311
2478
|
### Fixed
|
|
2312
2479
|
|
|
2313
2480
|
- HTML export now properly sanitizes user messages containing HTML tags like `<style>` that could break DOM rendering
|
|
2314
|
-
- Crash when displaying bash output containing Unicode format characters like U+0600-U+0604 ([#372](https://github.com/
|
|
2315
|
-
- **Footer shows full session stats**: Token usage and cost now include all messages, not just those after compaction. ([#322](https://github.com/
|
|
2316
|
-
- **Status messages spam chat log**: Rapidly changing settings (e.g., thinking level via Shift+Tab) would add multiple status lines. Sequential status updates now coalesce into a single line. ([#365](https://github.com/
|
|
2481
|
+
- Crash when displaying bash output containing Unicode format characters like U+0600-U+0604 ([#372](https://github.com/draht-dev/draht/pull/372) by [@HACKE-RC](https://github.com/HACKE-RC))
|
|
2482
|
+
- **Footer shows full session stats**: Token usage and cost now include all messages, not just those after compaction. ([#322](https://github.com/draht-dev/draht/issues/322))
|
|
2483
|
+
- **Status messages spam chat log**: Rapidly changing settings (e.g., thinking level via Shift+Tab) would add multiple status lines. Sequential status updates now coalesce into a single line. ([#365](https://github.com/draht-dev/draht/pull/365) by [@paulbettner](https://github.com/paulbettner))
|
|
2317
2484
|
- **Toggling thinking blocks during streaming shows nothing**: Pressing Ctrl+T while streaming would hide the current message until streaming completed.
|
|
2318
|
-
- **Resuming session resets thinking level to off**: Initial model and thinking level were not saved to session file, causing `--resume`/`--continue` to default to `off`. ([#342](https://github.com/
|
|
2319
|
-
- **Hook `tool_result` event ignores errors from custom tools**: The `tool_result` hook event was never emitted when tools threw errors, and always had `isError: false` for successful executions. Now emits the event with correct `isError` value in both success and error cases. ([#374](https://github.com/
|
|
2320
|
-
- **Edit tool fails on Windows due to CRLF line endings**: Files with CRLF line endings now match correctly when LLMs send LF-only text. Line endings are normalized before matching and restored to original style on write. ([#355](https://github.com/
|
|
2321
|
-
- **Edit tool fails on files with UTF-8 BOM**: Files with UTF-8 BOM marker could cause "text not found" errors since the LLM doesn't include the invisible BOM character. BOM is now stripped before matching and restored on write. ([#394](https://github.com/
|
|
2322
|
-
- **Use bash instead of sh on Unix**: Fixed shell commands using `/bin/sh` instead of `/bin/bash` on Unix systems. ([#328](https://github.com/
|
|
2323
|
-
- **OAuth login URL clickable**: Made OAuth login URLs clickable in terminal. ([#349](https://github.com/
|
|
2324
|
-
- **Improved error messages**: Better error messages when `apiKey` or `model` are missing. ([#346](https://github.com/
|
|
2485
|
+
- **Resuming session resets thinking level to off**: Initial model and thinking level were not saved to session file, causing `--resume`/`--continue` to default to `off`. ([#342](https://github.com/draht-dev/draht/issues/342) by [@aliou](https://github.com/aliou))
|
|
2486
|
+
- **Hook `tool_result` event ignores errors from custom tools**: The `tool_result` hook event was never emitted when tools threw errors, and always had `isError: false` for successful executions. Now emits the event with correct `isError` value in both success and error cases. ([#374](https://github.com/draht-dev/draht/issues/374) by [@nicobailon](https://github.com/nicobailon))
|
|
2487
|
+
- **Edit tool fails on Windows due to CRLF line endings**: Files with CRLF line endings now match correctly when LLMs send LF-only text. Line endings are normalized before matching and restored to original style on write. ([#355](https://github.com/draht-dev/draht/issues/355) by [@Pratham-Dubey](https://github.com/Pratham-Dubey))
|
|
2488
|
+
- **Edit tool fails on files with UTF-8 BOM**: Files with UTF-8 BOM marker could cause "text not found" errors since the LLM doesn't include the invisible BOM character. BOM is now stripped before matching and restored on write. ([#394](https://github.com/draht-dev/draht/pull/394) by [@prathamdby](https://github.com/prathamdby))
|
|
2489
|
+
- **Use bash instead of sh on Unix**: Fixed shell commands using `/bin/sh` instead of `/bin/bash` on Unix systems. ([#328](https://github.com/draht-dev/draht/pull/328) by [@dnouri](https://github.com/dnouri))
|
|
2490
|
+
- **OAuth login URL clickable**: Made OAuth login URLs clickable in terminal. ([#349](https://github.com/draht-dev/draht/pull/349) by [@Cursivez](https://github.com/Cursivez))
|
|
2491
|
+
- **Improved error messages**: Better error messages when `apiKey` or `model` are missing. ([#346](https://github.com/draht-dev/draht/pull/346) by [@ronyrus](https://github.com/ronyrus))
|
|
2325
2492
|
- **Session file validation**: `findMostRecentSession()` now validates session headers before returning, preventing non-session JSONL files from being loaded
|
|
2326
2493
|
- **Compaction error handling**: `generateSummary()` and `generateTurnPrefixSummary()` now throw on LLM errors instead of returning empty strings
|
|
2327
2494
|
- **Compaction with branched sessions**: Fixed compaction incorrectly including entries from abandoned branches, causing token overflow errors. Compaction now uses `sessionManager.getPath()` to work only on the current branch path, eliminating 80+ lines of duplicate entry collection logic between `prepareCompaction()` and `compact()`
|
|
2328
|
-
- **enabledModels glob patterns**: `--models` and `enabledModels` now support glob patterns like `github-copilot/*` or `*sonnet*`. Previously, patterns were only matched literally or via substring search. ([#337](https://github.com/
|
|
2495
|
+
- **enabledModels glob patterns**: `--models` and `enabledModels` now support glob patterns like `github-copilot/*` or `*sonnet*`. Previously, patterns were only matched literally or via substring search. ([#337](https://github.com/draht-dev/draht/issues/337))
|
|
2329
2496
|
|
|
2330
2497
|
## [0.30.2] - 2025-12-26
|
|
2331
2498
|
|
|
@@ -2337,54 +2504,54 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2337
2504
|
|
|
2338
2505
|
### Fixed
|
|
2339
2506
|
|
|
2340
|
-
- **Sessions saved to wrong directory**: In v0.30.0, sessions were being saved to `~/.pi/agent/` instead of `~/.pi/agent/sessions/<encoded-cwd>/`, breaking `--resume` and `/resume`. Misplaced sessions are automatically migrated on startup. ([#320](https://github.com/
|
|
2341
|
-
- **Custom system prompts missing context**: When using a custom system prompt string, project context files (AGENTS.md), skills, date/time, and working directory were not appended. ([#321](https://github.com/
|
|
2507
|
+
- **Sessions saved to wrong directory**: In v0.30.0, sessions were being saved to `~/.pi/agent/` instead of `~/.pi/agent/sessions/<encoded-cwd>/`, breaking `--resume` and `/resume`. Misplaced sessions are automatically migrated on startup. ([#320](https://github.com/draht-dev/draht/issues/320) by [@aliou](https://github.com/aliou))
|
|
2508
|
+
- **Custom system prompts missing context**: When using a custom system prompt string, project context files (AGENTS.md), skills, date/time, and working directory were not appended. ([#321](https://github.com/draht-dev/draht/issues/321))
|
|
2342
2509
|
|
|
2343
2510
|
## [0.30.0] - 2025-12-25
|
|
2344
2511
|
|
|
2345
2512
|
### Breaking Changes
|
|
2346
2513
|
|
|
2347
|
-
- **SessionManager API**: The second parameter of `create()`, `continueRecent()`, and `list()` changed from `agentDir` to `sessionDir`. When provided, it specifies the session directory directly (no cwd encoding). When omitted, uses default (`~/.pi/agent/sessions/<encoded-cwd>/`). `open()` no longer takes `agentDir`. ([#313](https://github.com/
|
|
2514
|
+
- **SessionManager API**: The second parameter of `create()`, `continueRecent()`, and `list()` changed from `agentDir` to `sessionDir`. When provided, it specifies the session directory directly (no cwd encoding). When omitted, uses default (`~/.pi/agent/sessions/<encoded-cwd>/`). `open()` no longer takes `agentDir`. ([#313](https://github.com/draht-dev/draht/pull/313))
|
|
2348
2515
|
|
|
2349
2516
|
### Added
|
|
2350
2517
|
|
|
2351
|
-
- **`--session-dir` flag**: Use a custom directory for sessions instead of the default `~/.pi/agent/sessions/<encoded-cwd>/`. Works with `-c` (continue) and `-r` (resume) flags. ([#313](https://github.com/
|
|
2352
|
-
- **Reverse model cycling and model selector**: Shift+Ctrl+P cycles models backward, Ctrl+L opens model selector (retaining text in editor). ([#315](https://github.com/
|
|
2518
|
+
- **`--session-dir` flag**: Use a custom directory for sessions instead of the default `~/.pi/agent/sessions/<encoded-cwd>/`. Works with `-c` (continue) and `-r` (resume) flags. ([#313](https://github.com/draht-dev/draht/pull/313) by [@scutifer](https://github.com/scutifer))
|
|
2519
|
+
- **Reverse model cycling and model selector**: Shift+Ctrl+P cycles models backward, Ctrl+L opens model selector (retaining text in editor). ([#315](https://github.com/draht-dev/draht/pull/315) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
2353
2520
|
|
|
2354
2521
|
## [0.29.1] - 2025-12-25
|
|
2355
2522
|
|
|
2356
2523
|
### Added
|
|
2357
2524
|
|
|
2358
|
-
- **Automatic custom system prompt loading**: Pi now auto-loads `SYSTEM.md` files to replace the default system prompt. Project-local `.pi/SYSTEM.md` takes precedence over global `~/.pi/agent/SYSTEM.md`. CLI `--system-prompt` flag overrides both. ([#309](https://github.com/
|
|
2359
|
-
- **Unified `/settings` command**: New settings menu consolidating thinking level, theme, queue mode, auto-compact, show images, hide thinking, and collapse changelog. Replaces individual `/thinking`, `/queue`, `/theme`, `/autocompact`, and `/show-images` commands. ([#310](https://github.com/
|
|
2525
|
+
- **Automatic custom system prompt loading**: Pi now auto-loads `SYSTEM.md` files to replace the default system prompt. Project-local `.pi/SYSTEM.md` takes precedence over global `~/.pi/agent/SYSTEM.md`. CLI `--system-prompt` flag overrides both. ([#309](https://github.com/draht-dev/draht/issues/309))
|
|
2526
|
+
- **Unified `/settings` command**: New settings menu consolidating thinking level, theme, queue mode, auto-compact, show images, hide thinking, and collapse changelog. Replaces individual `/thinking`, `/queue`, `/theme`, `/autocompact`, and `/show-images` commands. ([#310](https://github.com/draht-dev/draht/issues/310))
|
|
2360
2527
|
|
|
2361
2528
|
### Fixed
|
|
2362
2529
|
|
|
2363
|
-
- **Custom tools/hooks with typebox subpath imports**: Fixed jiti alias for `@sinclair/typebox` to point to package root instead of entry file, allowing imports like `@sinclair/typebox/compiler` to resolve correctly. ([#311](https://github.com/
|
|
2530
|
+
- **Custom tools/hooks with typebox subpath imports**: Fixed jiti alias for `@sinclair/typebox` to point to package root instead of entry file, allowing imports like `@sinclair/typebox/compiler` to resolve correctly. ([#311](https://github.com/draht-dev/draht/issues/311) by [@kim0](https://github.com/kim0))
|
|
2364
2531
|
|
|
2365
2532
|
## [0.29.0] - 2025-12-25
|
|
2366
2533
|
|
|
2367
2534
|
### Breaking Changes
|
|
2368
2535
|
|
|
2369
|
-
- **Renamed `/clear` to `/new`**: The command to start a fresh session is now `/new`. Hook event reasons `before_clear`/`clear` are now `before_new`/`new`. Merry Christmas [@mitsuhiko](https://github.com/mitsuhiko)! ([#305](https://github.com/
|
|
2536
|
+
- **Renamed `/clear` to `/new`**: The command to start a fresh session is now `/new`. Hook event reasons `before_clear`/`clear` are now `before_new`/`new`. Merry Christmas [@mitsuhiko](https://github.com/mitsuhiko)! ([#305](https://github.com/draht-dev/draht/pull/305))
|
|
2370
2537
|
|
|
2371
2538
|
### Added
|
|
2372
2539
|
|
|
2373
|
-
- **Auto-space before pasted file paths**: When pasting a file path (starting with `/`, `~`, or `.`) after a word character, a space is automatically prepended. ([#307](https://github.com/
|
|
2374
|
-
- **Word navigation in input fields**: Added Ctrl+Left/Right and Alt+Left/Right for word-by-word cursor movement. ([#306](https://github.com/
|
|
2375
|
-
- **Full Unicode input**: Input fields now accept Unicode characters beyond ASCII. ([#306](https://github.com/
|
|
2540
|
+
- **Auto-space before pasted file paths**: When pasting a file path (starting with `/`, `~`, or `.`) after a word character, a space is automatically prepended. ([#307](https://github.com/draht-dev/draht/pull/307) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
2541
|
+
- **Word navigation in input fields**: Added Ctrl+Left/Right and Alt+Left/Right for word-by-word cursor movement. ([#306](https://github.com/draht-dev/draht/pull/306) by [@kim0](https://github.com/kim0))
|
|
2542
|
+
- **Full Unicode input**: Input fields now accept Unicode characters beyond ASCII. ([#306](https://github.com/draht-dev/draht/pull/306) by [@kim0](https://github.com/kim0))
|
|
2376
2543
|
|
|
2377
2544
|
### Fixed
|
|
2378
2545
|
|
|
2379
|
-
- **Readline-style Ctrl+W**: Now skips trailing whitespace before deleting the preceding word, matching standard readline behavior. ([#306](https://github.com/
|
|
2546
|
+
- **Readline-style Ctrl+W**: Now skips trailing whitespace before deleting the preceding word, matching standard readline behavior. ([#306](https://github.com/draht-dev/draht/pull/306) by [@kim0](https://github.com/kim0))
|
|
2380
2547
|
|
|
2381
2548
|
## [0.28.0] - 2025-12-25
|
|
2382
2549
|
|
|
2383
2550
|
### Changed
|
|
2384
2551
|
|
|
2385
|
-
- **Credential storage refactored**: API keys and OAuth tokens are now stored in `~/.pi/agent/auth.json` instead of `oauth.json` and `settings.json`. Existing credentials are automatically migrated on first run. ([#296](https://github.com/
|
|
2552
|
+
- **Credential storage refactored**: API keys and OAuth tokens are now stored in `~/.pi/agent/auth.json` instead of `oauth.json` and `settings.json`. Existing credentials are automatically migrated on first run. ([#296](https://github.com/draht-dev/draht/issues/296))
|
|
2386
2553
|
|
|
2387
|
-
- **SDK API changes** ([#296](https://github.com/
|
|
2554
|
+
- **SDK API changes** ([#296](https://github.com/draht-dev/draht/issues/296)):
|
|
2388
2555
|
|
|
2389
2556
|
- Added `AuthStorage` class for credential management (API keys and OAuth tokens)
|
|
2390
2557
|
- Added `ModelRegistry` class for model discovery and API key resolution
|
|
@@ -2392,20 +2559,20 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2392
2559
|
- `createAgentSession()` now accepts `authStorage` and `modelRegistry` options
|
|
2393
2560
|
- Removed `configureOAuthStorage()`, `defaultGetApiKey()`, `findModel()`, `discoverAvailableModels()`
|
|
2394
2561
|
- Removed `getApiKey` callback option (use `AuthStorage.setRuntimeApiKey()` for runtime overrides)
|
|
2395
|
-
- Use `getModel()` from `@
|
|
2562
|
+
- Use `getModel()` from `@draht/ai` for built-in models, `modelRegistry.find()` for custom models + built-in models
|
|
2396
2563
|
- See updated [SDK documentation](docs/sdk.md) and [README](README.md)
|
|
2397
2564
|
|
|
2398
|
-
- **Settings changes**: Removed `apiKeys` from `settings.json`. Use `auth.json` instead. ([#296](https://github.com/
|
|
2565
|
+
- **Settings changes**: Removed `apiKeys` from `settings.json`. Use `auth.json` instead. ([#296](https://github.com/draht-dev/draht/issues/296))
|
|
2399
2566
|
|
|
2400
2567
|
### Fixed
|
|
2401
2568
|
|
|
2402
|
-
- **Duplicate skill warnings for symlinks**: Skills loaded via symlinks pointing to the same file are now silently deduplicated instead of showing name collision warnings. ([#304](https://github.com/
|
|
2569
|
+
- **Duplicate skill warnings for symlinks**: Skills loaded via symlinks pointing to the same file are now silently deduplicated instead of showing name collision warnings. ([#304](https://github.com/draht-dev/draht/pull/304) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
2403
2570
|
|
|
2404
2571
|
## [0.27.9] - 2025-12-24
|
|
2405
2572
|
|
|
2406
2573
|
### Fixed
|
|
2407
2574
|
|
|
2408
|
-
- **Model selector and --list-models with settings.json API keys**: Models with API keys configured in settings.json (but not in environment variables) now properly appear in the /model selector and `--list-models` output. ([#295](https://github.com/
|
|
2575
|
+
- **Model selector and --list-models with settings.json API keys**: Models with API keys configured in settings.json (but not in environment variables) now properly appear in the /model selector and `--list-models` output. ([#295](https://github.com/draht-dev/draht/issues/295))
|
|
2409
2576
|
|
|
2410
2577
|
## [0.27.8] - 2025-12-24
|
|
2411
2578
|
|
|
@@ -2417,7 +2584,7 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2417
2584
|
|
|
2418
2585
|
### Fixed
|
|
2419
2586
|
|
|
2420
|
-
- **Thinking tag leakage**: Fixed Claude mimicking literal `</thinking>` tags in responses. Unsigned thinking blocks (from aborted streams) are now converted to plain text without `<thinking>` tags. The TUI still displays them as thinking blocks. ([#302](https://github.com/
|
|
2587
|
+
- **Thinking tag leakage**: Fixed Claude mimicking literal `</thinking>` tags in responses. Unsigned thinking blocks (from aborted streams) are now converted to plain text without `<thinking>` tags. The TUI still displays them as thinking blocks. ([#302](https://github.com/draht-dev/draht/pull/302) by [@nicobailon](https://github.com/nicobailon))
|
|
2421
2588
|
|
|
2422
2589
|
## [0.27.6] - 2025-12-24
|
|
2423
2590
|
|
|
@@ -2444,7 +2611,7 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2444
2611
|
|
|
2445
2612
|
### Fixed
|
|
2446
2613
|
|
|
2447
|
-
- **Ghostty inline images in tmux**: Fixed terminal detection for Ghostty when running inside tmux by checking `GHOSTTY_RESOURCES_DIR` env var. ([#299](https://github.com/
|
|
2614
|
+
- **Ghostty inline images in tmux**: Fixed terminal detection for Ghostty when running inside tmux by checking `GHOSTTY_RESOURCES_DIR` env var. ([#299](https://github.com/draht-dev/draht/pull/299) by [@nicobailon](https://github.com/nicobailon))
|
|
2448
2615
|
|
|
2449
2616
|
## [0.27.4] - 2025-12-24
|
|
2450
2617
|
|
|
@@ -2456,18 +2623,18 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2456
2623
|
|
|
2457
2624
|
### Added
|
|
2458
2625
|
|
|
2459
|
-
- **API keys in settings.json**: Store API keys in `~/.pi/agent/settings.json` under the `apiKeys` field (e.g., `{ "apiKeys": { "anthropic": "sk-..." } }`). Settings keys take priority over environment variables. ([#295](https://github.com/
|
|
2626
|
+
- **API keys in settings.json**: Store API keys in `~/.pi/agent/settings.json` under the `apiKeys` field (e.g., `{ "apiKeys": { "anthropic": "sk-..." } }`). Settings keys take priority over environment variables. ([#295](https://github.com/draht-dev/draht/issues/295))
|
|
2460
2627
|
|
|
2461
2628
|
### Fixed
|
|
2462
2629
|
|
|
2463
|
-
- **Allow startup without API keys**: Interactive mode no longer throws when no API keys are configured. Users can now start the agent and use `/login` to authenticate. ([#288](https://github.com/
|
|
2464
|
-
- **`--system-prompt` file path support**: The `--system-prompt` argument now correctly resolves file paths (like `--append-system-prompt` already did). ([#287](https://github.com/
|
|
2630
|
+
- **Allow startup without API keys**: Interactive mode no longer throws when no API keys are configured. Users can now start the agent and use `/login` to authenticate. ([#288](https://github.com/draht-dev/draht/issues/288))
|
|
2631
|
+
- **`--system-prompt` file path support**: The `--system-prompt` argument now correctly resolves file paths (like `--append-system-prompt` already did). ([#287](https://github.com/draht-dev/draht/pull/287) by [@scutifer](https://github.com/scutifer))
|
|
2465
2632
|
|
|
2466
2633
|
## [0.27.2] - 2025-12-23
|
|
2467
2634
|
|
|
2468
2635
|
### Added
|
|
2469
2636
|
|
|
2470
|
-
- **Skip conversation restore on branch**: Hooks can return `{ skipConversationRestore: true }` from `before_branch` to create the branched session file without restoring conversation messages. Useful for checkpoint hooks that restore files separately. ([#286](https://github.com/
|
|
2637
|
+
- **Skip conversation restore on branch**: Hooks can return `{ skipConversationRestore: true }` from `before_branch` to create the branched session file without restoring conversation messages. Useful for checkpoint hooks that restore files separately. ([#286](https://github.com/draht-dev/draht/pull/286) by [@nicobarray](https://github.com/nicobarray))
|
|
2471
2638
|
|
|
2472
2639
|
## [0.27.1] - 2025-12-22
|
|
2473
2640
|
|
|
@@ -2483,31 +2650,31 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2483
2650
|
|
|
2484
2651
|
### Breaking
|
|
2485
2652
|
|
|
2486
|
-
- **Session hooks API redesign**: Merged `branch` event into `session` event. `BranchEvent`, `BranchEventResult` types and `pi.on("branch", ...)` removed. Use `pi.on("session", ...)` with `reason: "before_branch" | "branch"` instead. `AgentSession.branch()` returns `{ cancelled }` instead of `{ skipped }`. `AgentSession.reset()` and `switchSession()` now return `boolean` (false if cancelled by hook). RPC commands `reset`, `switch_session`, and `branch` now include `cancelled` in response data. ([#278](https://github.com/
|
|
2653
|
+
- **Session hooks API redesign**: Merged `branch` event into `session` event. `BranchEvent`, `BranchEventResult` types and `pi.on("branch", ...)` removed. Use `pi.on("session", ...)` with `reason: "before_branch" | "branch"` instead. `AgentSession.branch()` returns `{ cancelled }` instead of `{ skipped }`. `AgentSession.reset()` and `switchSession()` now return `boolean` (false if cancelled by hook). RPC commands `reset`, `switch_session`, and `branch` now include `cancelled` in response data. ([#278](https://github.com/draht-dev/draht/issues/278))
|
|
2487
2654
|
|
|
2488
2655
|
### Added
|
|
2489
2656
|
|
|
2490
|
-
- **Session lifecycle hooks**: Added `before_*` variants (`before_switch`, `before_clear`, `before_branch`) that fire before actions and can be cancelled with `{ cancel: true }`. Added `shutdown` reason for graceful exit handling. ([#278](https://github.com/
|
|
2657
|
+
- **Session lifecycle hooks**: Added `before_*` variants (`before_switch`, `before_clear`, `before_branch`) that fire before actions and can be cancelled with `{ cancel: true }`. Added `shutdown` reason for graceful exit handling. ([#278](https://github.com/draht-dev/draht/issues/278))
|
|
2491
2658
|
|
|
2492
2659
|
### Fixed
|
|
2493
2660
|
|
|
2494
|
-
- **File tab completion display**: File paths no longer get cut off early. Folders now show trailing `/` and removed redundant "directory"/"file" labels to maximize horizontal space. ([#280](https://github.com/
|
|
2661
|
+
- **File tab completion display**: File paths no longer get cut off early. Folders now show trailing `/` and removed redundant "directory"/"file" labels to maximize horizontal space. ([#280](https://github.com/draht-dev/draht/issues/280))
|
|
2495
2662
|
|
|
2496
|
-
- **Bash tool visual line truncation**: Fixed bash tool output in collapsed mode to use visual line counting (accounting for line wrapping) instead of logical line counting. Now consistent with bash-execution.ts behavior. Extracted shared `truncateToVisualLines` utility. ([#275](https://github.com/
|
|
2663
|
+
- **Bash tool visual line truncation**: Fixed bash tool output in collapsed mode to use visual line counting (accounting for line wrapping) instead of logical line counting. Now consistent with bash-execution.ts behavior. Extracted shared `truncateToVisualLines` utility. ([#275](https://github.com/draht-dev/draht/issues/275))
|
|
2497
2664
|
|
|
2498
2665
|
## [0.26.1] - 2025-12-22
|
|
2499
2666
|
|
|
2500
2667
|
### Fixed
|
|
2501
2668
|
|
|
2502
|
-
- **SDK tools respect cwd**: Core tools (bash, read, edit, write, grep, find, ls) now properly use the `cwd` option from `createAgentSession()`. Added tool factory functions (`createBashTool`, `createReadTool`, etc.) for SDK users who specify custom `cwd` with explicit tools. ([#279](https://github.com/
|
|
2669
|
+
- **SDK tools respect cwd**: Core tools (bash, read, edit, write, grep, find, ls) now properly use the `cwd` option from `createAgentSession()`. Added tool factory functions (`createBashTool`, `createReadTool`, etc.) for SDK users who specify custom `cwd` with explicit tools. ([#279](https://github.com/draht-dev/draht/issues/279))
|
|
2503
2670
|
|
|
2504
2671
|
## [0.26.0] - 2025-12-22
|
|
2505
2672
|
|
|
2506
2673
|
### Added
|
|
2507
2674
|
|
|
2508
|
-
- **SDK for programmatic usage**: New `createAgentSession()` factory with full control over model, tools, hooks, skills, session persistence, and settings. Philosophy: "omit to discover, provide to override". Includes 12 examples and comprehensive documentation. ([#272](https://github.com/
|
|
2675
|
+
- **SDK for programmatic usage**: New `createAgentSession()` factory with full control over model, tools, hooks, skills, session persistence, and settings. Philosophy: "omit to discover, provide to override". Includes 12 examples and comprehensive documentation. ([#272](https://github.com/draht-dev/draht/issues/272))
|
|
2509
2676
|
|
|
2510
|
-
- **Project-specific settings**: Settings now load from both `~/.pi/agent/settings.json` (global) and `<cwd>/.pi/settings.json` (project). Project settings override global with deep merge for nested objects. Project settings are read-only (for version control). ([#276](https://github.com/
|
|
2677
|
+
- **Project-specific settings**: Settings now load from both `~/.pi/agent/settings.json` (global) and `<cwd>/.pi/settings.json` (project). Project settings override global with deep merge for nested objects. Project settings are read-only (for version control). ([#276](https://github.com/draht-dev/draht/pull/276))
|
|
2511
2678
|
|
|
2512
2679
|
- **SettingsManager static factories**: `SettingsManager.create(cwd?, agentDir?)` for file-based settings, `SettingsManager.inMemory(settings?)` for testing. Added `applyOverrides()` for programmatic overrides.
|
|
2513
2680
|
|
|
@@ -2517,21 +2684,21 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2517
2684
|
|
|
2518
2685
|
### Fixed
|
|
2519
2686
|
|
|
2520
|
-
- **Syntax highlighting stderr spam**: Fixed cli-highlight logging errors to stderr when markdown contains malformed code fences (e.g., missing newlines around closing backticks). Now validates language identifiers before highlighting and falls back silently to plain text. ([#274](https://github.com/
|
|
2687
|
+
- **Syntax highlighting stderr spam**: Fixed cli-highlight logging errors to stderr when markdown contains malformed code fences (e.g., missing newlines around closing backticks). Now validates language identifiers before highlighting and falls back silently to plain text. ([#274](https://github.com/draht-dev/draht/issues/274))
|
|
2521
2688
|
|
|
2522
2689
|
## [0.25.3] - 2025-12-21
|
|
2523
2690
|
|
|
2524
2691
|
### Added
|
|
2525
2692
|
|
|
2526
|
-
- **Gemini 3 preview models**: Added `gemini-3-pro-preview` and `gemini-3-flash-preview` to the google-gemini-cli provider. ([#264](https://github.com/
|
|
2693
|
+
- **Gemini 3 preview models**: Added `gemini-3-pro-preview` and `gemini-3-flash-preview` to the google-gemini-cli provider. ([#264](https://github.com/draht-dev/draht/pull/264) by [@LukeFost](https://github.com/LukeFost))
|
|
2527
2694
|
|
|
2528
|
-
- **External editor support**: Press `Ctrl+G` to edit your message in an external editor. Uses `$VISUAL` or `$EDITOR` environment variable. On successful save, the message is replaced; on cancel, the original is kept. ([#266](https://github.com/
|
|
2695
|
+
- **External editor support**: Press `Ctrl+G` to edit your message in an external editor. Uses `$VISUAL` or `$EDITOR` environment variable. On successful save, the message is replaced; on cancel, the original is kept. ([#266](https://github.com/draht-dev/draht/pull/266) by [@aliou](https://github.com/aliou))
|
|
2529
2696
|
|
|
2530
|
-
- **Process suspension**: Press `Ctrl+Z` to suspend pi and return to the shell. Resume with `fg` as usual. ([#267](https://github.com/
|
|
2697
|
+
- **Process suspension**: Press `Ctrl+Z` to suspend pi and return to the shell. Resume with `fg` as usual. ([#267](https://github.com/draht-dev/draht/pull/267) by [@aliou](https://github.com/aliou))
|
|
2531
2698
|
|
|
2532
|
-
- **Configurable skills directories**: Added granular control over skill sources with `enableCodexUser`, `enableClaudeUser`, `enableClaudeProject`, `enablePiUser`, `enablePiProject` toggles, plus `customDirectories` and `ignoredSkills` settings. ([#269](https://github.com/
|
|
2699
|
+
- **Configurable skills directories**: Added granular control over skill sources with `enableCodexUser`, `enableClaudeUser`, `enableClaudeProject`, `enablePiUser`, `enablePiProject` toggles, plus `customDirectories` and `ignoredSkills` settings. ([#269](https://github.com/draht-dev/draht/pull/269) by [@nicobailon](https://github.com/nicobailon))
|
|
2533
2700
|
|
|
2534
|
-
- **Skills CLI filtering**: Added `--skills <patterns>` flag for filtering skills with glob patterns. Also added `includeSkills` setting and glob pattern support for `ignoredSkills`. ([#268](https://github.com/
|
|
2701
|
+
- **Skills CLI filtering**: Added `--skills <patterns>` flag for filtering skills with glob patterns. Also added `includeSkills` setting and glob pattern support for `ignoredSkills`. ([#268](https://github.com/draht-dev/draht/issues/268))
|
|
2535
2702
|
|
|
2536
2703
|
## [0.25.2] - 2025-12-21
|
|
2537
2704
|
|
|
@@ -2551,7 +2718,7 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2551
2718
|
|
|
2552
2719
|
### Added
|
|
2553
2720
|
|
|
2554
|
-
- **Interruptible tool execution**: Queuing a message while tools are executing now interrupts the current tool batch. Remaining tools are skipped with an error result, and your queued message is processed immediately. Useful for redirecting the agent mid-task. ([#259](https://github.com/
|
|
2721
|
+
- **Interruptible tool execution**: Queuing a message while tools are executing now interrupts the current tool batch. Remaining tools are skipped with an error result, and your queued message is processed immediately. Useful for redirecting the agent mid-task. ([#259](https://github.com/draht-dev/draht/pull/259) by [@steipete](https://github.com/steipete))
|
|
2555
2722
|
|
|
2556
2723
|
- **Google Gemini CLI OAuth provider**: Access Gemini 2.0/2.5 models for free via Google Cloud Code Assist. Login with `/login` and select "Google Gemini CLI". Uses your Google account with rate limits.
|
|
2557
2724
|
|
|
@@ -2559,13 +2726,13 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2559
2726
|
|
|
2560
2727
|
### Changed
|
|
2561
2728
|
|
|
2562
|
-
- **Model selector respects --models scope**: The `/model` command now only shows models specified via `--models` flag when that flag is used, instead of showing all available models. This prevents accidentally selecting models from unintended providers. ([#255](https://github.com/
|
|
2729
|
+
- **Model selector respects --models scope**: The `/model` command now only shows models specified via `--models` flag when that flag is used, instead of showing all available models. This prevents accidentally selecting models from unintended providers. ([#255](https://github.com/draht-dev/draht/issues/255))
|
|
2563
2730
|
|
|
2564
2731
|
### Fixed
|
|
2565
2732
|
|
|
2566
|
-
- **Connection errors not retried**: Added "connection error" to the list of retryable errors so Anthropic connection drops trigger auto-retry instead of silently failing. ([#252](https://github.com/
|
|
2733
|
+
- **Connection errors not retried**: Added "connection error" to the list of retryable errors so Anthropic connection drops trigger auto-retry instead of silently failing. ([#252](https://github.com/draht-dev/draht/issues/252))
|
|
2567
2734
|
|
|
2568
|
-
- **Thinking level not clamped on model switch**: Fixed TUI showing xhigh thinking level after switching to a model that doesn't support it. Thinking level is now automatically clamped to model capabilities. ([#253](https://github.com/
|
|
2735
|
+
- **Thinking level not clamped on model switch**: Fixed TUI showing xhigh thinking level after switching to a model that doesn't support it. Thinking level is now automatically clamped to model capabilities. ([#253](https://github.com/draht-dev/draht/issues/253))
|
|
2569
2736
|
|
|
2570
2737
|
- **Cross-model thinking handoff**: Fixed error when switching between models with different thinking signature formats (e.g., GPT-OSS to Claude thinking models via Antigravity). Thinking blocks without signatures are now converted to text with `<thinking>` delimiters.
|
|
2571
2738
|
|
|
@@ -2579,7 +2746,7 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2579
2746
|
|
|
2580
2747
|
### Fixed
|
|
2581
2748
|
|
|
2582
|
-
- **Arrow keys and Enter in selector components**: Fixed arrow keys and Enter not working in model selector, session selector, OAuth selector, and other selector components when Caps Lock or Num Lock is enabled. ([#243](https://github.com/
|
|
2749
|
+
- **Arrow keys and Enter in selector components**: Fixed arrow keys and Enter not working in model selector, session selector, OAuth selector, and other selector components when Caps Lock or Num Lock is enabled. ([#243](https://github.com/draht-dev/draht/issues/243))
|
|
2583
2750
|
|
|
2584
2751
|
## [0.24.3] - 2025-12-19
|
|
2585
2752
|
|
|
@@ -2591,45 +2758,45 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2591
2758
|
|
|
2592
2759
|
### Fixed
|
|
2593
2760
|
|
|
2594
|
-
- **More Kitty keyboard protocol fixes**: Fixed Backspace, Enter, Home, End, and Delete keys not working with Caps Lock enabled. The initial fix in 0.24.1 missed several key handlers that were still using raw byte detection. Now all key handlers use the helper functions that properly mask out lock key bits. ([#243](https://github.com/
|
|
2761
|
+
- **More Kitty keyboard protocol fixes**: Fixed Backspace, Enter, Home, End, and Delete keys not working with Caps Lock enabled. The initial fix in 0.24.1 missed several key handlers that were still using raw byte detection. Now all key handlers use the helper functions that properly mask out lock key bits. ([#243](https://github.com/draht-dev/draht/issues/243))
|
|
2595
2762
|
|
|
2596
2763
|
## [0.24.1] - 2025-12-19
|
|
2597
2764
|
|
|
2598
2765
|
### Added
|
|
2599
2766
|
|
|
2600
|
-
- **OAuth and model config exports**: Scripts using `AgentSession` directly can now import `getAvailableModels`, `getApiKeyForModel`, `findModel`, `login`, `logout`, and `getOAuthProviders` from `@
|
|
2767
|
+
- **OAuth and model config exports**: Scripts using `AgentSession` directly can now import `getAvailableModels`, `getApiKeyForModel`, `findModel`, `login`, `logout`, and `getOAuthProviders` from `@draht/coding-agent` to reuse OAuth token storage and model resolution. ([#245](https://github.com/draht-dev/draht/issues/245))
|
|
2601
2768
|
|
|
2602
|
-
- **xhigh thinking level for gpt-5.2 models**: The thinking level selector and shift+tab cycling now show xhigh option for gpt-5.2 and gpt-5.2-codex models (in addition to gpt-5.1-codex-max). ([#236](https://github.com/
|
|
2769
|
+
- **xhigh thinking level for gpt-5.2 models**: The thinking level selector and shift+tab cycling now show xhigh option for gpt-5.2 and gpt-5.2-codex models (in addition to gpt-5.1-codex-max). ([#236](https://github.com/draht-dev/draht/pull/236) by [@theBucky](https://github.com/theBucky))
|
|
2603
2770
|
|
|
2604
2771
|
### Fixed
|
|
2605
2772
|
|
|
2606
|
-
- **Hooks wrap custom tools**: Custom tools are now executed through the hook wrapper, so `tool_call`/`tool_result` hooks can observe, block, and modify custom tool executions (consistent with hook type docs). ([#248](https://github.com/
|
|
2773
|
+
- **Hooks wrap custom tools**: Custom tools are now executed through the hook wrapper, so `tool_call`/`tool_result` hooks can observe, block, and modify custom tool executions (consistent with hook type docs). ([#248](https://github.com/draht-dev/draht/pull/248) by [@nicobailon](https://github.com/nicobailon))
|
|
2607
2774
|
|
|
2608
|
-
- **Hook onUpdate callback forwarding**: The `onUpdate` callback is now correctly forwarded through the hook wrapper, fixing custom tool progress updates. ([#238](https://github.com/
|
|
2775
|
+
- **Hook onUpdate callback forwarding**: The `onUpdate` callback is now correctly forwarded through the hook wrapper, fixing custom tool progress updates. ([#238](https://github.com/draht-dev/draht/pull/238) by [@nicobailon](https://github.com/nicobailon))
|
|
2609
2776
|
|
|
2610
|
-
- **Terminal cleanup on Ctrl+C in session selector**: Fixed terminal not being properly restored when pressing Ctrl+C in the session selector. ([#247](https://github.com/
|
|
2777
|
+
- **Terminal cleanup on Ctrl+C in session selector**: Fixed terminal not being properly restored when pressing Ctrl+C in the session selector. ([#247](https://github.com/draht-dev/draht/pull/247) by [@aliou](https://github.com/aliou))
|
|
2611
2778
|
|
|
2612
|
-
- **OpenRouter models with colons in IDs**: Fixed parsing of OpenRouter model IDs that contain colons (e.g., `openrouter:meta-llama/llama-4-scout:free`). ([#242](https://github.com/
|
|
2779
|
+
- **OpenRouter models with colons in IDs**: Fixed parsing of OpenRouter model IDs that contain colons (e.g., `openrouter:meta-llama/llama-4-scout:free`). ([#242](https://github.com/draht-dev/draht/pull/242) by [@aliou](https://github.com/aliou))
|
|
2613
2780
|
|
|
2614
|
-
- **Global AGENTS.md loaded twice**: Fixed global AGENTS.md being loaded twice when present in both `~/.pi/agent/` and the current directory. ([#239](https://github.com/
|
|
2781
|
+
- **Global AGENTS.md loaded twice**: Fixed global AGENTS.md being loaded twice when present in both `~/.pi/agent/` and the current directory. ([#239](https://github.com/draht-dev/draht/pull/239) by [@aliou](https://github.com/aliou))
|
|
2615
2782
|
|
|
2616
|
-
- **Kitty keyboard protocol on Linux**: Fixed keyboard input not working in Ghostty on Linux when Num Lock is enabled. The Kitty protocol includes Caps Lock and Num Lock state in modifier values, which broke key detection. Now correctly masks out lock key bits when matching keyboard shortcuts. ([#243](https://github.com/
|
|
2783
|
+
- **Kitty keyboard protocol on Linux**: Fixed keyboard input not working in Ghostty on Linux when Num Lock is enabled. The Kitty protocol includes Caps Lock and Num Lock state in modifier values, which broke key detection. Now correctly masks out lock key bits when matching keyboard shortcuts. ([#243](https://github.com/draht-dev/draht/issues/243))
|
|
2617
2784
|
|
|
2618
|
-
- **Emoji deletion and cursor movement**: Backspace, Delete, and arrow keys now correctly handle multi-codepoint characters like emojis. Previously, deleting an emoji would leave partial bytes, corrupting the editor state. ([#240](https://github.com/
|
|
2785
|
+
- **Emoji deletion and cursor movement**: Backspace, Delete, and arrow keys now correctly handle multi-codepoint characters like emojis. Previously, deleting an emoji would leave partial bytes, corrupting the editor state. ([#240](https://github.com/draht-dev/draht/issues/240))
|
|
2619
2786
|
|
|
2620
2787
|
## [0.24.0] - 2025-12-19
|
|
2621
2788
|
|
|
2622
2789
|
### Added
|
|
2623
2790
|
|
|
2624
|
-
- **Subagent orchestration example**: Added comprehensive custom tool example for spawning and orchestrating sub-agents with isolated context windows. Includes scout/planner/reviewer/worker agents and workflow commands for multi-agent pipelines. ([#215](https://github.com/
|
|
2791
|
+
- **Subagent orchestration example**: Added comprehensive custom tool example for spawning and orchestrating sub-agents with isolated context windows. Includes scout/planner/reviewer/worker agents and workflow commands for multi-agent pipelines. ([#215](https://github.com/draht-dev/draht/pull/215) by [@nicobailon](https://github.com/nicobailon))
|
|
2625
2792
|
|
|
2626
|
-
- **`getMarkdownTheme()` export**: Custom tools can now import `getMarkdownTheme()` from `@
|
|
2793
|
+
- **`getMarkdownTheme()` export**: Custom tools can now import `getMarkdownTheme()` from `@draht/coding-agent` to use the same markdown styling as the main UI.
|
|
2627
2794
|
|
|
2628
2795
|
- **`pi.exec()` signal and timeout support**: Custom tools and hooks can now pass `{ signal, timeout }` options to `pi.exec()` for cancellation and timeout handling. The result includes a `killed` flag when the process was terminated.
|
|
2629
2796
|
|
|
2630
|
-
- **Kitty keyboard protocol support**: Shift+Enter, Alt+Enter, Shift+Tab, Ctrl+D, and all Ctrl+key combinations now work in Ghostty, Kitty, WezTerm, and other modern terminals. ([#225](https://github.com/
|
|
2797
|
+
- **Kitty keyboard protocol support**: Shift+Enter, Alt+Enter, Shift+Tab, Ctrl+D, and all Ctrl+key combinations now work in Ghostty, Kitty, WezTerm, and other modern terminals. ([#225](https://github.com/draht-dev/draht/pull/225) by [@kim0](https://github.com/kim0))
|
|
2631
2798
|
|
|
2632
|
-
- **Dynamic API key refresh**: OAuth tokens (GitHub Copilot, Anthropic OAuth) are now refreshed before each LLM call, preventing failures in long-running agent loops where tokens expire mid-session. ([#223](https://github.com/
|
|
2799
|
+
- **Dynamic API key refresh**: OAuth tokens (GitHub Copilot, Anthropic OAuth) are now refreshed before each LLM call, preventing failures in long-running agent loops where tokens expire mid-session. ([#223](https://github.com/draht-dev/draht/pull/223) by [@kim0](https://github.com/kim0))
|
|
2633
2800
|
|
|
2634
2801
|
- **`/hotkeys` command**: Shows all keyboard shortcuts in a formatted table.
|
|
2635
2802
|
|
|
@@ -2639,19 +2806,19 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2639
2806
|
|
|
2640
2807
|
- **Subagent example improvements**: Parallel mode now streams updates from all tasks. Chain mode shows all completed steps during streaming. Expanded view uses proper markdown rendering with syntax highlighting. Usage footer shows turn count.
|
|
2641
2808
|
|
|
2642
|
-
- **Skills standard compliance**: Skills now adhere to the [Agent Skills standard](https://agentskills.io/specification). Validates name (must match parent directory, lowercase, max 64 chars), description (required, max 1024 chars), and frontmatter fields. Warns on violations but remains lenient. Prompt format changed to XML structure. Removed `{baseDir}` placeholder in favor of relative paths. ([#231](https://github.com/
|
|
2809
|
+
- **Skills standard compliance**: Skills now adhere to the [Agent Skills standard](https://agentskills.io/specification). Validates name (must match parent directory, lowercase, max 64 chars), description (required, max 1024 chars), and frontmatter fields. Warns on violations but remains lenient. Prompt format changed to XML structure. Removed `{baseDir}` placeholder in favor of relative paths. ([#231](https://github.com/draht-dev/draht/issues/231))
|
|
2643
2810
|
|
|
2644
2811
|
### Fixed
|
|
2645
2812
|
|
|
2646
2813
|
- **JSON mode stdout flush**: Fixed race condition where `pi --mode json` could exit before all output was written to stdout, causing consumers to miss final events.
|
|
2647
2814
|
|
|
2648
|
-
- **Symlinked tools, hooks, and slash commands**: Discovery now correctly follows symlinks when scanning for custom tools, hooks, and slash commands. ([#219](https://github.com/
|
|
2815
|
+
- **Symlinked tools, hooks, and slash commands**: Discovery now correctly follows symlinks when scanning for custom tools, hooks, and slash commands. ([#219](https://github.com/draht-dev/draht/pull/219), [#232](https://github.com/draht-dev/draht/pull/232) by [@aliou](https://github.com/aliou))
|
|
2649
2816
|
|
|
2650
2817
|
### Breaking Changes
|
|
2651
2818
|
|
|
2652
2819
|
- **Custom tools now require `index.ts` entry point**: Auto-discovered custom tools must be in a subdirectory with an `index.ts` file. The old pattern `~/.pi/agent/tools/mytool.ts` must become `~/.pi/agent/tools/mytool/index.ts`. This allows multi-file tools to import helper modules. Explicit paths via `--tool` or `settings.json` still work with any `.ts` file.
|
|
2653
2820
|
|
|
2654
|
-
- **Hook `tool_result` event restructured**: The `ToolResultEvent` now exposes full tool result data instead of just text. ([#233](https://github.com/
|
|
2821
|
+
- **Hook `tool_result` event restructured**: The `ToolResultEvent` now exposes full tool result data instead of just text. ([#233](https://github.com/draht-dev/draht/pull/233))
|
|
2655
2822
|
- Removed: `result: string` field
|
|
2656
2823
|
- Added: `content: (TextContent | ImageContent)[]` - full content array
|
|
2657
2824
|
- Added: `details: unknown` - tool-specific details (typed per tool via discriminated union on `toolName`)
|
|
@@ -2664,15 +2831,15 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2664
2831
|
|
|
2665
2832
|
### Added
|
|
2666
2833
|
|
|
2667
|
-
- **Syntax highlighting**: Added syntax highlighting for markdown code blocks, read tool output, and write tool content. Uses cli-highlight with theme-aware color mapping and VS Code-style syntax colors. ([#214](https://github.com/
|
|
2834
|
+
- **Syntax highlighting**: Added syntax highlighting for markdown code blocks, read tool output, and write tool content. Uses cli-highlight with theme-aware color mapping and VS Code-style syntax colors. ([#214](https://github.com/draht-dev/draht/pull/214) by [@svkozak](https://github.com/svkozak))
|
|
2668
2835
|
|
|
2669
2836
|
- **Intra-line diff highlighting**: Edit tool now shows word-level changes with inverse highlighting when a single line is modified. Multi-line changes show all removed lines first, then all added lines.
|
|
2670
2837
|
|
|
2671
2838
|
### Fixed
|
|
2672
2839
|
|
|
2673
|
-
- **Gemini tool result format**: Fixed tool result format for Gemini 3 Flash Preview which strictly requires `{ output: value }` for success and `{ error: value }` for errors. Previous format using `{ result, isError }` was rejected by newer Gemini models. ([#213](https://github.com/
|
|
2840
|
+
- **Gemini tool result format**: Fixed tool result format for Gemini 3 Flash Preview which strictly requires `{ output: value }` for success and `{ error: value }` for errors. Previous format using `{ result, isError }` was rejected by newer Gemini models. ([#213](https://github.com/draht-dev/draht/issues/213), [#220](https://github.com/draht-dev/draht/pull/220))
|
|
2674
2841
|
|
|
2675
|
-
- **Google baseUrl configuration**: Google provider now respects `baseUrl` configuration for custom endpoints or API proxies. ([#216](https://github.com/
|
|
2842
|
+
- **Google baseUrl configuration**: Google provider now respects `baseUrl` configuration for custom endpoints or API proxies. ([#216](https://github.com/draht-dev/draht/issues/216), [#221](https://github.com/draht-dev/draht/pull/221) by [@theBucky](https://github.com/theBucky))
|
|
2676
2843
|
|
|
2677
2844
|
- **Google provider FinishReason**: Added handling for new `IMAGE_RECITATION` and `IMAGE_OTHER` finish reasons. Upgraded @google/genai to 1.34.0.
|
|
2678
2845
|
|
|
@@ -2695,7 +2862,7 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2695
2862
|
- `rpc.md`: Added missing `hook_error` event documentation
|
|
2696
2863
|
- `README.md`: Complete settings table, condensed philosophy section, standardized OAuth docs
|
|
2697
2864
|
|
|
2698
|
-
- Hooks loader now supports same import aliases as custom tools (`@sinclair/typebox`, `@
|
|
2865
|
+
- Hooks loader now supports same import aliases as custom tools (`@sinclair/typebox`, `@draht/ai`, `@draht/tui`, `@draht/coding-agent`).
|
|
2699
2866
|
|
|
2700
2867
|
### Breaking Changes
|
|
2701
2868
|
|
|
@@ -2705,11 +2872,11 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2705
2872
|
|
|
2706
2873
|
### Fixed
|
|
2707
2874
|
|
|
2708
|
-
- Fixed Claude models via GitHub Copilot re-answering all previous prompts in multi-turn conversations. The issue was that assistant message content was sent as an array instead of a string, which Copilot's Claude adapter misinterpreted. Also added missing `Openai-Intent: conversation-edits` header and fixed `X-Initiator` logic to check for any assistant/tool message in history. ([#209](https://github.com/
|
|
2875
|
+
- Fixed Claude models via GitHub Copilot re-answering all previous prompts in multi-turn conversations. The issue was that assistant message content was sent as an array instead of a string, which Copilot's Claude adapter misinterpreted. Also added missing `Openai-Intent: conversation-edits` header and fixed `X-Initiator` logic to check for any assistant/tool message in history. ([#209](https://github.com/draht-dev/draht/issues/209))
|
|
2709
2876
|
|
|
2710
2877
|
- Detect image MIME type via file magic (read tool and `@file` attachments), not filename extension.
|
|
2711
2878
|
|
|
2712
|
-
- Fixed markdown tables overflowing terminal width. Tables now wrap cell contents to fit available width instead of breaking borders mid-row. ([#206](https://github.com/
|
|
2879
|
+
- Fixed markdown tables overflowing terminal width. Tables now wrap cell contents to fit available width instead of breaking borders mid-row. ([#206](https://github.com/draht-dev/draht/pull/206) by [@kim0](https://github.com/kim0))
|
|
2713
2880
|
|
|
2714
2881
|
## [0.23.1] - 2025-12-17
|
|
2715
2882
|
|
|
@@ -2717,13 +2884,13 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2717
2884
|
|
|
2718
2885
|
- Fixed TUI performance regression caused by Box component lacking render caching. Built-in tools now use Text directly (like v0.22.5), and Box has proper caching for custom tool rendering.
|
|
2719
2886
|
|
|
2720
|
-
- Fixed custom tools failing to load from `~/.pi/agent/tools/` when pi is installed globally. Module imports (`@sinclair/typebox`, `@
|
|
2887
|
+
- Fixed custom tools failing to load from `~/.pi/agent/tools/` when pi is installed globally. Module imports (`@sinclair/typebox`, `@draht/tui`, `@draht/ai`) are now resolved via aliases.
|
|
2721
2888
|
|
|
2722
2889
|
## [0.23.0] - 2025-12-17
|
|
2723
2890
|
|
|
2724
2891
|
### Added
|
|
2725
2892
|
|
|
2726
|
-
- **Custom tools**: Extend pi with custom tools written in TypeScript. Tools can provide custom TUI rendering, interact with users via `pi.ui` (select, confirm, input, notify), and maintain state across sessions via `onSession` callback. See [docs/custom-tools.md](docs/custom-tools.md) and [examples/custom-tools/](examples/custom-tools/). ([#190](https://github.com/
|
|
2893
|
+
- **Custom tools**: Extend pi with custom tools written in TypeScript. Tools can provide custom TUI rendering, interact with users via `pi.ui` (select, confirm, input, notify), and maintain state across sessions via `onSession` callback. See [docs/custom-tools.md](docs/custom-tools.md) and [examples/custom-tools/](examples/custom-tools/). ([#190](https://github.com/draht-dev/draht/issues/190))
|
|
2727
2894
|
|
|
2728
2895
|
- **Hook and tool examples**: Added `examples/hooks/` and `examples/custom-tools/` with working examples. Examples are now bundled in npm and binary releases.
|
|
2729
2896
|
|
|
@@ -2741,7 +2908,7 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2741
2908
|
|
|
2742
2909
|
### Added
|
|
2743
2910
|
|
|
2744
|
-
- `--list-models [search]` CLI flag to list available models with optional fuzzy search. Shows provider, model ID, context window, max output, thinking support, and image support. Only lists models with configured API keys. ([#203](https://github.com/
|
|
2911
|
+
- `--list-models [search]` CLI flag to list available models with optional fuzzy search. Shows provider, model ID, context window, max output, thinking support, and image support. Only lists models with configured API keys. ([#203](https://github.com/draht-dev/draht/issues/203))
|
|
2745
2912
|
|
|
2746
2913
|
### Fixed
|
|
2747
2914
|
|
|
@@ -2751,25 +2918,25 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2751
2918
|
|
|
2752
2919
|
### Added
|
|
2753
2920
|
|
|
2754
|
-
- **Streaming bash output**: Bash tool now streams output in real-time during execution. The TUI displays live progress with the last 5 lines visible (expandable with ctrl+o). ([#44](https://github.com/
|
|
2921
|
+
- **Streaming bash output**: Bash tool now streams output in real-time during execution. The TUI displays live progress with the last 5 lines visible (expandable with ctrl+o). ([#44](https://github.com/draht-dev/draht/issues/44))
|
|
2755
2922
|
|
|
2756
2923
|
### Changed
|
|
2757
2924
|
|
|
2758
2925
|
- **Tool output display**: When collapsed, tool output now shows the last N lines instead of the first N lines, making streaming output more useful.
|
|
2759
2926
|
|
|
2760
|
-
- Updated `@
|
|
2927
|
+
- Updated `@draht/ai` with X-Initiator header support for GitHub Copilot, ensuring agent calls are not deducted from quota. ([#200](https://github.com/draht-dev/draht/pull/200) by [@kim0](https://github.com/kim0))
|
|
2761
2928
|
|
|
2762
2929
|
### Fixed
|
|
2763
2930
|
|
|
2764
|
-
- Fixed editor text being cleared during compaction. Text typed while compaction is running is now preserved. ([#179](https://github.com/
|
|
2931
|
+
- Fixed editor text being cleared during compaction. Text typed while compaction is running is now preserved. ([#179](https://github.com/draht-dev/draht/issues/179))
|
|
2765
2932
|
- Improved RGB to 256-color mapping for terminals without truecolor support. Now correctly uses grayscale ramp for neutral colors and preserves semantic tints (green for success, red for error, blue for pending) instead of mapping everything to wrong cube colors.
|
|
2766
|
-
- `/think off` now actually disables thinking for all providers. Previously, providers like Gemini with "dynamic thinking" enabled by default would still use thinking even when turned off. ([#180](https://github.com/
|
|
2933
|
+
- `/think off` now actually disables thinking for all providers. Previously, providers like Gemini with "dynamic thinking" enabled by default would still use thinking even when turned off. ([#180](https://github.com/draht-dev/draht/pull/180) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2767
2934
|
|
|
2768
2935
|
## [0.22.2] - 2025-12-15
|
|
2769
2936
|
|
|
2770
2937
|
### Changed
|
|
2771
2938
|
|
|
2772
|
-
- Updated `@
|
|
2939
|
+
- Updated `@draht/ai` with interleaved thinking enabled by default for Anthropic Claude 4 models.
|
|
2773
2940
|
|
|
2774
2941
|
## [0.22.1] - 2025-12-15
|
|
2775
2942
|
|
|
@@ -2777,13 +2944,13 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2777
2944
|
|
|
2778
2945
|
### Changed
|
|
2779
2946
|
|
|
2780
|
-
- Updated `@
|
|
2947
|
+
- Updated `@draht/ai` with interleaved thinking support for Anthropic models.
|
|
2781
2948
|
|
|
2782
2949
|
## [0.22.0] - 2025-12-15
|
|
2783
2950
|
|
|
2784
2951
|
### Added
|
|
2785
2952
|
|
|
2786
|
-
- **GitHub Copilot support**: Use GitHub Copilot models via OAuth login (`/login` -> "GitHub Copilot"). Supports both github.com and GitHub Enterprise. Models are sourced from models.dev and include Claude, GPT, Gemini, Grok, and more. All models are automatically enabled after login. ([#191](https://github.com/
|
|
2953
|
+
- **GitHub Copilot support**: Use GitHub Copilot models via OAuth login (`/login` -> "GitHub Copilot"). Supports both github.com and GitHub Enterprise. Models are sourced from models.dev and include Claude, GPT, Gemini, Grok, and more. All models are automatically enabled after login. ([#191](https://github.com/draht-dev/draht/pull/191) by [@cau1k](https://github.com/cau1k))
|
|
2787
2954
|
|
|
2788
2955
|
### Fixed
|
|
2789
2956
|
|
|
@@ -2793,15 +2960,15 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2793
2960
|
|
|
2794
2961
|
### Added
|
|
2795
2962
|
|
|
2796
|
-
- **Inline image rendering**: Terminals supporting Kitty graphics protocol (Kitty, Ghostty, WezTerm) or iTerm2 inline images now render images inline in tool output. Aspect ratio is preserved by querying terminal cell dimensions on startup. Toggle with `/show-images` command or `terminal.showImages` setting. Falls back to text placeholder on unsupported terminals or when disabled. ([#177](https://github.com/
|
|
2963
|
+
- **Inline image rendering**: Terminals supporting Kitty graphics protocol (Kitty, Ghostty, WezTerm) or iTerm2 inline images now render images inline in tool output. Aspect ratio is preserved by querying terminal cell dimensions on startup. Toggle with `/show-images` command or `terminal.showImages` setting. Falls back to text placeholder on unsupported terminals or when disabled. ([#177](https://github.com/draht-dev/draht/pull/177) by [@nicobailon](https://github.com/nicobailon))
|
|
2797
2964
|
|
|
2798
|
-
- **Gemini 3 Pro thinking levels**: Thinking level selector now works with Gemini 3 Pro models. Minimal/low map to Google's LOW, medium/high map to Google's HIGH. ([#176](https://github.com/
|
|
2965
|
+
- **Gemini 3 Pro thinking levels**: Thinking level selector now works with Gemini 3 Pro models. Minimal/low map to Google's LOW, medium/high map to Google's HIGH. ([#176](https://github.com/draht-dev/draht/pull/176) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2799
2966
|
|
|
2800
2967
|
### Fixed
|
|
2801
2968
|
|
|
2802
|
-
- Fixed read tool failing on macOS screenshot filenames due to Unicode Narrow No-Break Space (U+202F) in timestamp. Added fallback to try macOS variant paths and consolidated duplicate expandPath functions into shared path-utils.ts. ([#181](https://github.com/
|
|
2969
|
+
- Fixed read tool failing on macOS screenshot filenames due to Unicode Narrow No-Break Space (U+202F) in timestamp. Added fallback to try macOS variant paths and consolidated duplicate expandPath functions into shared path-utils.ts. ([#181](https://github.com/draht-dev/draht/pull/181) by [@nicobailon](https://github.com/nicobailon))
|
|
2803
2970
|
|
|
2804
|
-
- Fixed double blank lines rendering after markdown code blocks ([#173](https://github.com/
|
|
2971
|
+
- Fixed double blank lines rendering after markdown code blocks ([#173](https://github.com/draht-dev/draht/pull/173) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2805
2972
|
|
|
2806
2973
|
## [0.20.1] - 2025-12-13
|
|
2807
2974
|
|
|
@@ -2829,25 +2996,25 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2829
2996
|
|
|
2830
2997
|
### Added
|
|
2831
2998
|
|
|
2832
|
-
- **Skills system**: Auto-discover and load instruction files on-demand. Supports Claude Code (`~/.claude/skills/*/SKILL.md`), Codex CLI (`~/.codex/skills/`), and Pi-native formats (`~/.pi/agent/skills/`, `.pi/skills/`). Skills are listed in system prompt with descriptions, agent loads them via read tool when needed. Supports `{baseDir}` placeholder. Disable with `--no-skills` or `skills.enabled: false` in settings. ([#169](https://github.com/
|
|
2999
|
+
- **Skills system**: Auto-discover and load instruction files on-demand. Supports Claude Code (`~/.claude/skills/*/SKILL.md`), Codex CLI (`~/.codex/skills/`), and Pi-native formats (`~/.pi/agent/skills/`, `.pi/skills/`). Skills are listed in system prompt with descriptions, agent loads them via read tool when needed. Supports `{baseDir}` placeholder. Disable with `--no-skills` or `skills.enabled: false` in settings. ([#169](https://github.com/draht-dev/draht/issues/169))
|
|
2833
3000
|
|
|
2834
|
-
- **Version flag**: Added `--version` / `-v` flag to display the current version and exit. ([#170](https://github.com/
|
|
3001
|
+
- **Version flag**: Added `--version` / `-v` flag to display the current version and exit. ([#170](https://github.com/draht-dev/draht/pull/170))
|
|
2835
3002
|
|
|
2836
3003
|
## [0.18.2] - 2025-12-11
|
|
2837
3004
|
|
|
2838
3005
|
### Added
|
|
2839
3006
|
|
|
2840
|
-
- **Auto-retry on transient errors**: Automatically retries requests when providers return overloaded, rate limit, or server errors (429, 500, 502, 503, 504). Uses exponential backoff (2s, 4s, 8s). Shows retry status in TUI with option to cancel via Escape. Configurable in `settings.json` via `retry.enabled`, `retry.maxRetries`, `retry.baseDelayMs`. RPC mode emits `auto_retry_start` and `auto_retry_end` events. ([#157](https://github.com/
|
|
3007
|
+
- **Auto-retry on transient errors**: Automatically retries requests when providers return overloaded, rate limit, or server errors (429, 500, 502, 503, 504). Uses exponential backoff (2s, 4s, 8s). Shows retry status in TUI with option to cancel via Escape. Configurable in `settings.json` via `retry.enabled`, `retry.maxRetries`, `retry.baseDelayMs`. RPC mode emits `auto_retry_start` and `auto_retry_end` events. ([#157](https://github.com/draht-dev/draht/issues/157))
|
|
2841
3008
|
|
|
2842
|
-
- **HTML export line numbers**: Read tool calls in HTML exports now display line number ranges (e.g., `file.txt:10-20`) when offset/limit parameters are used, matching the TUI display format. Line numbers appear in yellow color for better visibility. ([#166](https://github.com/
|
|
3009
|
+
- **HTML export line numbers**: Read tool calls in HTML exports now display line number ranges (e.g., `file.txt:10-20`) when offset/limit parameters are used, matching the TUI display format. Line numbers appear in yellow color for better visibility. ([#166](https://github.com/draht-dev/draht/issues/166))
|
|
2843
3010
|
|
|
2844
3011
|
### Fixed
|
|
2845
3012
|
|
|
2846
|
-
- **Branch selector now works with single message**: Previously the branch selector would not open when there was only one user message. Now it correctly allows branching from any message, including the first one. This is needed for checkpoint hooks to restore state from before the first message. ([#163](https://github.com/
|
|
3013
|
+
- **Branch selector now works with single message**: Previously the branch selector would not open when there was only one user message. Now it correctly allows branching from any message, including the first one. This is needed for checkpoint hooks to restore state from before the first message. ([#163](https://github.com/draht-dev/draht/issues/163))
|
|
2847
3014
|
|
|
2848
3015
|
- **In-memory branching for `--no-session` mode**: Branching now works correctly in `--no-session` mode without creating any session files. The conversation is truncated in memory.
|
|
2849
3016
|
|
|
2850
|
-
- **Git branch indicator now works in subdirectories**: The footer's git branch detection now walks up the directory hierarchy to find the git root, so it works when running pi from a subdirectory of a repository. ([#156](https://github.com/
|
|
3017
|
+
- **Git branch indicator now works in subdirectories**: The footer's git branch detection now walks up the directory hierarchy to find the git root, so it works when running pi from a subdirectory of a repository. ([#156](https://github.com/draht-dev/draht/issues/156))
|
|
2851
3018
|
|
|
2852
3019
|
## [0.18.1] - 2025-12-10
|
|
2853
3020
|
|
|
@@ -2857,13 +3024,13 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2857
3024
|
|
|
2858
3025
|
### Fixed
|
|
2859
3026
|
|
|
2860
|
-
- Fixed print mode (`-p`) not exiting after output when custom themes are present (theme watcher now properly stops in print mode) ([#161](https://github.com/
|
|
3027
|
+
- Fixed print mode (`-p`) not exiting after output when custom themes are present (theme watcher now properly stops in print mode) ([#161](https://github.com/draht-dev/draht/issues/161))
|
|
2861
3028
|
|
|
2862
3029
|
## [0.18.0] - 2025-12-10
|
|
2863
3030
|
|
|
2864
3031
|
### Added
|
|
2865
3032
|
|
|
2866
|
-
- **Hooks system**: TypeScript modules that extend agent behavior by subscribing to lifecycle events. Hooks can intercept tool calls, prompt for confirmation, modify results, and inject messages from external sources. Auto-discovered from `~/.pi/agent/hooks/*.ts` and `.pi/hooks/*.ts`. Thanks to [@nicobailon](https://github.com/nicobailon) for the collaboration on the design and implementation. ([#145](https://github.com/
|
|
3033
|
+
- **Hooks system**: TypeScript modules that extend agent behavior by subscribing to lifecycle events. Hooks can intercept tool calls, prompt for confirmation, modify results, and inject messages from external sources. Auto-discovered from `~/.pi/agent/hooks/*.ts` and `.pi/hooks/*.ts`. Thanks to [@nicobailon](https://github.com/nicobailon) for the collaboration on the design and implementation. ([#145](https://github.com/draht-dev/draht/issues/145), supersedes [#158](https://github.com/draht-dev/draht/pull/158))
|
|
2867
3034
|
|
|
2868
3035
|
- **`pi.send()` API**: Hooks can inject messages into the agent session from external sources (file watchers, webhooks, CI systems). If streaming, messages are queued; otherwise a new agent loop starts immediately.
|
|
2869
3036
|
|
|
@@ -2901,7 +3068,7 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2901
3068
|
|
|
2902
3069
|
### Breaking Changes
|
|
2903
3070
|
|
|
2904
|
-
- **New RPC protocol**: The RPC mode (`--mode rpc`) has been completely redesigned with a new JSON protocol. The old protocol is no longer supported. See [`docs/rpc.md`](docs/rpc.md) for the new protocol documentation and [`test/rpc-example.ts`](test/rpc-example.ts) for a working example. Includes `RpcClient` TypeScript class for easy integration. ([#91](https://github.com/
|
|
3071
|
+
- **New RPC protocol**: The RPC mode (`--mode rpc`) has been completely redesigned with a new JSON protocol. The old protocol is no longer supported. See [`docs/rpc.md`](docs/rpc.md) for the new protocol documentation and [`test/rpc-example.ts`](test/rpc-example.ts) for a working example. Includes `RpcClient` TypeScript class for easy integration. ([#91](https://github.com/draht-dev/draht/issues/91))
|
|
2905
3072
|
|
|
2906
3073
|
### Changed
|
|
2907
3074
|
|
|
@@ -2911,7 +3078,7 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2911
3078
|
|
|
2912
3079
|
### Changed
|
|
2913
3080
|
|
|
2914
|
-
- **Major code refactoring**: Restructured codebase for better maintainability and separation of concerns. Moved files into organized directories (`core/`, `modes/`, `utils/`, `cli/`). Extracted `AgentSession` class as central session management abstraction. Split `main.ts` and `tui-renderer.ts` into focused modules. See `DEVELOPMENT.md` for the new code map. ([#153](https://github.com/
|
|
3081
|
+
- **Major code refactoring**: Restructured codebase for better maintainability and separation of concerns. Moved files into organized directories (`core/`, `modes/`, `utils/`, `cli/`). Extracted `AgentSession` class as central session management abstraction. Split `main.ts` and `tui-renderer.ts` into focused modules. See `DEVELOPMENT.md` for the new code map. ([#153](https://github.com/draht-dev/draht/issues/153))
|
|
2915
3082
|
|
|
2916
3083
|
## [0.14.2] - 2025-12-08
|
|
2917
3084
|
|
|
@@ -2937,19 +3104,19 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2937
3104
|
|
|
2938
3105
|
### Added
|
|
2939
3106
|
|
|
2940
|
-
- **OpenAI compatibility overrides in models.json**: Custom models using `openai-completions` API can now specify a `compat` object to override provider quirks (`supportsStore`, `supportsDeveloperRole`, `supportsReasoningEffort`, `maxTokensField`). Useful for LiteLLM, custom proxies, and other non-standard endpoints. ([#133](https://github.com/
|
|
3107
|
+
- **OpenAI compatibility overrides in models.json**: Custom models using `openai-completions` API can now specify a `compat` object to override provider quirks (`supportsStore`, `supportsDeveloperRole`, `supportsReasoningEffort`, `maxTokensField`). Useful for LiteLLM, custom proxies, and other non-standard endpoints. ([#133](https://github.com/draht-dev/draht/issues/133), thanks @fink-andreas for the initial idea and PR)
|
|
2941
3108
|
|
|
2942
|
-
- **xhigh thinking level**: Added `xhigh` thinking level for OpenAI codex-max models. Cycle through thinking levels with Shift+Tab; `xhigh` appears only when using a codex-max model. ([#143](https://github.com/
|
|
3109
|
+
- **xhigh thinking level**: Added `xhigh` thinking level for OpenAI codex-max models. Cycle through thinking levels with Shift+Tab; `xhigh` appears only when using a codex-max model. ([#143](https://github.com/draht-dev/draht/issues/143))
|
|
2943
3110
|
|
|
2944
|
-
- **Collapse changelog setting**: Add `"collapseChangelog": true` to `~/.pi/agent/settings.json` to show a condensed "Updated to vX.Y.Z" message instead of the full changelog after updates. Use `/changelog` to view the full changelog. ([#148](https://github.com/
|
|
3111
|
+
- **Collapse changelog setting**: Add `"collapseChangelog": true` to `~/.pi/agent/settings.json` to show a condensed "Updated to vX.Y.Z" message instead of the full changelog after updates. Use `/changelog` to view the full changelog. ([#148](https://github.com/draht-dev/draht/issues/148))
|
|
2945
3112
|
|
|
2946
|
-
- **Bash mode**: Execute shell commands directly from the editor by prefixing with `!` (e.g., `!ls -la`). Output streams in real-time, is added to the LLM context, and persists in session history. Supports multiline commands, cancellation (Escape), truncation for large outputs, and preview/expand toggle (Ctrl+O). Also available in RPC mode via `{"type":"bash","command":"..."}`. ([#112](https://github.com/
|
|
3113
|
+
- **Bash mode**: Execute shell commands directly from the editor by prefixing with `!` (e.g., `!ls -la`). Output streams in real-time, is added to the LLM context, and persists in session history. Supports multiline commands, cancellation (Escape), truncation for large outputs, and preview/expand toggle (Ctrl+O). Also available in RPC mode via `{"type":"bash","command":"..."}`. ([#112](https://github.com/draht-dev/draht/pull/112), original implementation by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2947
3114
|
|
|
2948
3115
|
## [0.13.2] - 2025-12-07
|
|
2949
3116
|
|
|
2950
3117
|
### Changed
|
|
2951
3118
|
|
|
2952
|
-
- **Tool output truncation**: All tools now enforce consistent truncation limits with actionable notices for the LLM. ([#134](https://github.com/
|
|
3119
|
+
- **Tool output truncation**: All tools now enforce consistent truncation limits with actionable notices for the LLM. ([#134](https://github.com/draht-dev/draht/issues/134))
|
|
2953
3120
|
- **Limits**: 2000 lines OR 50KB (whichever hits first), never partial lines
|
|
2954
3121
|
- **read**: Shows `[Showing lines X-Y of Z. Use offset=N to continue]`. If first line exceeds 50KB, suggests bash command
|
|
2955
3122
|
- **bash**: Tail truncation with temp file. Shows `[Showing lines X-Y of Z. Full output: /tmp/...]`
|
|
@@ -2993,20 +3160,20 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2993
3160
|
|
|
2994
3161
|
### Fixed
|
|
2995
3162
|
|
|
2996
|
-
- **Multi-key sequences in inputs**: Inputs like model search now handle multi-key sequences identically to the main prompt editor. ([#122](https://github.com/
|
|
2997
|
-
- **Line wrapping escape codes**: Fixed underline style bleeding into padding when wrapping long URLs. ANSI codes now attach to the correct content, and line-end resets only turn off underline (preserving background colors). ([#109](https://github.com/
|
|
3163
|
+
- **Multi-key sequences in inputs**: Inputs like model search now handle multi-key sequences identically to the main prompt editor. ([#122](https://github.com/draht-dev/draht/pull/122) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
3164
|
+
- **Line wrapping escape codes**: Fixed underline style bleeding into padding when wrapping long URLs. ANSI codes now attach to the correct content, and line-end resets only turn off underline (preserving background colors). ([#109](https://github.com/draht-dev/draht/issues/109))
|
|
2998
3165
|
|
|
2999
3166
|
### Added
|
|
3000
3167
|
|
|
3001
|
-
- **Fuzzy search models and sessions**: Implemented a simple fuzzy search for models and sessions (e.g., `codexmax` now finds `gpt-5.1-codex-max`). ([#122](https://github.com/
|
|
3002
|
-
- **Prompt History Navigation**: Browse previously submitted prompts using Up/Down arrow keys when the editor is empty. Press Up to cycle through older prompts, Down to return to newer ones or clear the editor. Similar to shell history and Claude Code's prompt history feature. History is session-scoped and stores up to 100 entries. ([#121](https://github.com/
|
|
3003
|
-
- **`/resume` Command**: Switch to a different session mid-conversation. Opens an interactive selector showing all available sessions. Equivalent to the `--resume` CLI flag but can be used without restarting the agent. ([#117](https://github.com/
|
|
3168
|
+
- **Fuzzy search models and sessions**: Implemented a simple fuzzy search for models and sessions (e.g., `codexmax` now finds `gpt-5.1-codex-max`). ([#122](https://github.com/draht-dev/draht/pull/122) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
3169
|
+
- **Prompt History Navigation**: Browse previously submitted prompts using Up/Down arrow keys when the editor is empty. Press Up to cycle through older prompts, Down to return to newer ones or clear the editor. Similar to shell history and Claude Code's prompt history feature. History is session-scoped and stores up to 100 entries. ([#121](https://github.com/draht-dev/draht/pull/121) by [@nicobailon](https://github.com/nicobailon))
|
|
3170
|
+
- **`/resume` Command**: Switch to a different session mid-conversation. Opens an interactive selector showing all available sessions. Equivalent to the `--resume` CLI flag but can be used without restarting the agent. ([#117](https://github.com/draht-dev/draht/pull/117) by [@hewliyang](https://github.com/hewliyang))
|
|
3004
3171
|
|
|
3005
3172
|
## [0.12.11] - 2025-12-05
|
|
3006
3173
|
|
|
3007
3174
|
### Changed
|
|
3008
3175
|
|
|
3009
|
-
- **Compaction UI**: Simplified collapsed compaction indicator to show warning-colored text with token count instead of styled banner. Removed redundant success message after compaction. ([#108](https://github.com/
|
|
3176
|
+
- **Compaction UI**: Simplified collapsed compaction indicator to show warning-colored text with token count instead of styled banner. Removed redundant success message after compaction. ([#108](https://github.com/draht-dev/draht/issues/108))
|
|
3010
3177
|
|
|
3011
3178
|
### Fixed
|
|
3012
3179
|
|
|
@@ -3017,9 +3184,9 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
3017
3184
|
|
|
3018
3185
|
### Added
|
|
3019
3186
|
|
|
3020
|
-
- **`authHeader` option in models.json**: Custom providers can set `"authHeader": true` to automatically add `Authorization: Bearer <apiKey>` header. Useful for providers that require explicit auth headers. ([#81](https://github.com/
|
|
3021
|
-
- **`--append-system-prompt` Flag**: Append additional text or file contents to the system prompt. Supports both inline text and file paths. Complements `--system-prompt` for layering custom instructions without replacing the base system prompt. ([#114](https://github.com/
|
|
3022
|
-
- **Thinking Block Toggle**: Added `Ctrl+T` shortcut to toggle visibility of LLM thinking blocks. When toggled off, shows a static "Thinking..." label instead of full content. Useful for reducing visual clutter during long conversations. ([#113](https://github.com/
|
|
3187
|
+
- **`authHeader` option in models.json**: Custom providers can set `"authHeader": true` to automatically add `Authorization: Bearer <apiKey>` header. Useful for providers that require explicit auth headers. ([#81](https://github.com/draht-dev/draht/issues/81))
|
|
3188
|
+
- **`--append-system-prompt` Flag**: Append additional text or file contents to the system prompt. Supports both inline text and file paths. Complements `--system-prompt` for layering custom instructions without replacing the base system prompt. ([#114](https://github.com/draht-dev/draht/pull/114) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
3189
|
+
- **Thinking Block Toggle**: Added `Ctrl+T` shortcut to toggle visibility of LLM thinking blocks. When toggled off, shows a static "Thinking..." label instead of full content. Useful for reducing visual clutter during long conversations. ([#113](https://github.com/draht-dev/draht/pull/113) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
3023
3190
|
|
|
3024
3191
|
## [0.12.10] - 2025-12-04
|
|
3025
3192
|
|
|
@@ -3031,7 +3198,7 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
3031
3198
|
|
|
3032
3199
|
### Added
|
|
3033
3200
|
|
|
3034
|
-
- **`/copy` Command**: Copy the last agent message to clipboard. Works cross-platform (macOS, Windows, Linux). Useful for extracting text from rendered Markdown output. ([#105](https://github.com/
|
|
3201
|
+
- **`/copy` Command**: Copy the last agent message to clipboard. Works cross-platform (macOS, Windows, Linux). Useful for extracting text from rendered Markdown output. ([#105](https://github.com/draht-dev/draht/pull/105) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
3035
3202
|
|
|
3036
3203
|
## [0.12.8] - 2025-12-04
|
|
3037
3204
|
|
|
@@ -3041,7 +3208,7 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
3041
3208
|
|
|
3042
3209
|
### Added
|
|
3043
3210
|
|
|
3044
|
-
- **Context Compaction**: Long sessions can now be compacted to reduce context usage while preserving recent conversation history. ([#92](https://github.com/
|
|
3211
|
+
- **Context Compaction**: Long sessions can now be compacted to reduce context usage while preserving recent conversation history. ([#92](https://github.com/draht-dev/draht/issues/92), [docs](https://github.com/draht-dev/draht/blob/main/packages/coding-agent/README.md#context-compaction))
|
|
3045
3212
|
- `/compact [instructions]`: Manually compact context with optional custom instructions for the summary
|
|
3046
3213
|
- `/autocompact`: Toggle automatic compaction when context exceeds threshold
|
|
3047
3214
|
- Compaction summarizes older messages while keeping recent messages (default 20k tokens) verbatim
|
|
@@ -3055,11 +3222,11 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
3055
3222
|
|
|
3056
3223
|
### Added
|
|
3057
3224
|
|
|
3058
|
-
- **Forking/Rebranding Support**: All branding (app name, config directory, environment variable names) is now configurable via `piConfig` in `package.json`. Forks can change `piConfig.name` and `piConfig.configDir` to rebrand the CLI without code changes. Affects CLI banner, help text, config paths, and error messages. ([#95](https://github.com/
|
|
3225
|
+
- **Forking/Rebranding Support**: All branding (app name, config directory, environment variable names) is now configurable via `piConfig` in `package.json`. Forks can change `piConfig.name` and `piConfig.configDir` to rebrand the CLI without code changes. Affects CLI banner, help text, config paths, and error messages. ([#95](https://github.com/draht-dev/draht/pull/95))
|
|
3059
3226
|
|
|
3060
3227
|
### Fixed
|
|
3061
3228
|
|
|
3062
|
-
- **Bun Binary Detection**: Fixed Bun compiled binary failing to start after Bun updated its virtual filesystem path format from `%7EBUN` to `$bunfs`. ([#95](https://github.com/
|
|
3229
|
+
- **Bun Binary Detection**: Fixed Bun compiled binary failing to start after Bun updated its virtual filesystem path format from `%7EBUN` to `$bunfs`. ([#95](https://github.com/draht-dev/draht/pull/95))
|
|
3063
3230
|
|
|
3064
3231
|
## [0.12.4] - 2025-12-02
|
|
3065
3232
|
|
|
@@ -3226,7 +3393,7 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
3226
3393
|
|
|
3227
3394
|
### Added
|
|
3228
3395
|
|
|
3229
|
-
- Added RPC mode (`--rpc`) for programmatic integration. Accepts JSON commands on stdin, emits JSON events on stdout. See [RPC mode documentation](https://github.com/nicobailon/
|
|
3396
|
+
- Added RPC mode (`--rpc`) for programmatic integration. Accepts JSON commands on stdin, emits JSON events on stdout. See [RPC mode documentation](https://github.com/nicobailon/draht-mono/blob/main/packages/coding-agent/README.md#rpc-mode) for protocol details.
|
|
3230
3397
|
|
|
3231
3398
|
### Changed
|
|
3232
3399
|
|