@draht/coding-agent 2026.4.5 → 2026.4.23
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 +790 -625
- package/README.md +105 -96
- package/dist/cli/args.d.ts +7 -10
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +42 -44
- 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 +4 -12
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +122 -43
- 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 +30 -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 +1 -22
- 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 +3 -1
- 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 +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +248 -450
- 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/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 +220 -124
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +9 -0
- 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/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/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,170 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2026.4.23] - 2026-04-23
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- add label timestamps to the session tree (#2691)
|
|
8
|
+
- add hidden thinking label api closes #2673
|
|
9
|
+
- add faux provider and ModelRegistry factories
|
|
10
|
+
- add prepareArguments hook for pre-validation argument preparation
|
|
11
|
+
- support multi-edit in edit tool
|
|
12
|
+
- Add sessionDir support in settings.json (#2598)
|
|
13
|
+
- add startup profiling scripts for tui/rpc (#2497)
|
|
14
|
+
- add JSONL export/import for sessions (#2356)
|
|
15
|
+
- add --fork session flag closes #2290
|
|
16
|
+
- expose local bash operations closes #2299
|
|
17
|
+
- refine session_directory hook closes #1729
|
|
18
|
+
- add session_directory extension event
|
|
19
|
+
- add provider payload hook
|
|
20
|
+
- preserve custom editor onEscape/onCtrlD handlers
|
|
21
|
+
- add subagent-based rebase-upstream workflow
|
|
22
|
+
- add atomic reasoning sections to all command prompts
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- rebrand and fix after upstream sync
|
|
27
|
+
- feat(coding-agent): set DRAHT_CODING_AGENT=true env var at startup
|
|
28
|
+
- Update sandbox extension configuration instructions (#2915)
|
|
29
|
+
- fix(coding-agent): hide Earendil startup notice
|
|
30
|
+
- fix(coding-agent): warn on Anthropic subscription auth
|
|
31
|
+
- fix(coding-agent): add earendil startup announcement
|
|
32
|
+
- remove dead main-package-command.ts (replaced by package-manager-cli.ts)
|
|
33
|
+
- replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime
|
|
34
|
+
- add switchSession to ExtensionCommandContext in extensions.md
|
|
35
|
+
- add defineTool helper closes #2746
|
|
36
|
+
- add session lifecycle characterization suite
|
|
37
|
+
- add queue characterization coverage
|
|
38
|
+
- add runtime host for session switching closes #2024
|
|
39
|
+
- clarify /tree active branch ordering (#2695)
|
|
40
|
+
- clarify repeated compaction boundary behavior (#2662)
|
|
41
|
+
- clarify sandbox example alternative to bash override (#2663)
|
|
42
|
+
- remove unused compaction import
|
|
43
|
+
- chore(coding-agent): add startup onboarding hint (#2620)
|
|
44
|
+
- make pi-test.sh runnable from any directory
|
|
45
|
+
- emit startup benchmark metrics
|
|
46
|
+
- refine startup profiling tooling
|
|
47
|
+
- add startup phase timings
|
|
48
|
+
- use valid PNG fixture for read tool
|
|
49
|
+
- fix showLoadedResources mocks
|
|
50
|
+
- stabilize git update branch setup
|
|
51
|
+
- add AgentSession test harness with faux provider
|
|
52
|
+
- fix(subagent): reuse current draht invocation for child agents closes #2464 (#2465)
|
|
53
|
+
- document xfce4-terminal and terminator keyboard protocol limitations (#2166)
|
|
54
|
+
- clarify compat flags for openai-compatible local servers closes #2177
|
|
55
|
+
- fix(coding-agent): support DRAHT_CODING_AGENT_DIR env var in example extensions (#2009)
|
|
56
|
+
- explain Windows Terminal Alt+Enter remap (#1967)
|
|
57
|
+
- Pr 1724 - feat(coding-agent): add fold/unfold to tree branch navigation (#1939)
|
|
58
|
+
- add codex tool-loop cache probe
|
|
59
|
+
- clarify that tool errors must be thrown, not returned
|
|
60
|
+
- clarify models.json name behavior (fixes #1840)
|
|
61
|
+
- document built-in sub-agent system
|
|
62
|
+
- add Phase 23 multi-agent layer to roadmap and plan
|
|
63
|
+
|
|
64
|
+
### Fixed
|
|
65
|
+
|
|
66
|
+
- restore draht-specific package.json fields and scripts lost in upstream sync
|
|
67
|
+
- bump antigravity User-Agent header version (#2901)
|
|
68
|
+
- update google provider to handle gemma 4 thinking levels and route between MINIMAL and HIGH (#2903)
|
|
69
|
+
- retry ended-without stream errors closes #2892
|
|
70
|
+
- use node:readline import prefix for Deno compatibility
|
|
71
|
+
- persist bash output on line truncation closes #2852
|
|
72
|
+
- remove stale /exit docs closes #2850
|
|
73
|
+
- handle missing session cwd
|
|
74
|
+
- preserve json mode for piped stdin (#2848)
|
|
75
|
+
- handle git/npm extension paths in CLI resolution (#2845)
|
|
76
|
+
- quote $RESX and $RESY in doom build script (SC2086) (#2817)
|
|
77
|
+
- resource collision precedence, user/project skills override package skills
|
|
78
|
+
- handle async fs.watch error events in theme watcher
|
|
79
|
+
- forward RpcClient subprocess stderr to parent in real-time
|
|
80
|
+
- reuse initial resource loader on startup closes #2766
|
|
81
|
+
- wait for retried runs to settle
|
|
82
|
+
- restore extension input source semantics
|
|
83
|
+
- properly queue extension messages (#2674)
|
|
84
|
+
- avoid full redraw on large edit results closes #2664
|
|
85
|
+
- expose abort signal to extensions closes #2660
|
|
86
|
+
- simplify edit tool input closes #2639
|
|
87
|
+
- document mutable tool_call input closes #2611
|
|
88
|
+
- restore compaction summary and dedupe edit errors
|
|
89
|
+
- tighten skill discovery and edit diffs closes #2603
|
|
90
|
+
- preserve kept messages across repeated compaction closes #2608
|
|
91
|
+
- unify compaction UI events closes #2617
|
|
92
|
+
- honor custom renderers for built-in tool overrides closes #2595
|
|
93
|
+
- resolve models.json auth per request closes #1835
|
|
94
|
+
- add follow-up docs, changelog, and precedence tests closes #2429
|
|
95
|
+
- restore main syntax and apply biome formatting
|
|
96
|
+
- preserve file mutation queue ordering
|
|
97
|
+
- add missing ajv direct dependency, fixes #2252
|
|
98
|
+
- emit session_shutdown in print mode closes #2576
|
|
99
|
+
- respect export theme backgrounds closes #2565
|
|
100
|
+
- recompute interactive bash preview width closes #2569
|
|
101
|
+
- reduce git update fetch noise closes #2548
|
|
102
|
+
- expose rpc context usage closes #2550
|
|
103
|
+
- disambiguate duplicate slash commands, fixes #1061
|
|
104
|
+
- unify source provenance, closes #1734
|
|
105
|
+
- attach source info to resources and commands, fixes #1734
|
|
106
|
+
- enforce safe auto-resized image limits closes #2055
|
|
107
|
+
- reserve stdout in print and json mode closes #2482
|
|
108
|
+
- skip no-op git package reinstalls
|
|
109
|
+
- built-in tools work like extension tools
|
|
110
|
+
- update project npm packages
|
|
111
|
+
- export ToolCallEventResult closes #2458
|
|
112
|
+
- respect agentDir for sdk session paths closes #2457
|
|
113
|
+
- keep suspend resume alive on fg closes #2454
|
|
114
|
+
- align minimax and zai defaults (#2445)
|
|
115
|
+
- migrate to namespaced ids closes #2391
|
|
116
|
+
- queue file mutations across edit and write
|
|
117
|
+
- protect rpc stdout fixes #2388
|
|
118
|
+
- resolve waitForRetry() race when auto-retry produces tool calls (#2440)
|
|
119
|
+
- suppress process warnings in CLI closes #2404
|
|
120
|
+
- show bash tool elapsed time at bottom closes #2406
|
|
121
|
+
- avoid blocking footer branch refresh and isolate invalid extension provider registrations closes #2418 closes #2431
|
|
122
|
+
- fix windows hanging when descendants inherit stdout/stderr handles (#2389)
|
|
123
|
+
- use native clipboard text copy on desktop closes #2347
|
|
124
|
+
- make tests keybinding-agnostic
|
|
125
|
+
- use `setBedrockProviderModule` in Bun entrypoint closes #2349 (#2350)
|
|
126
|
+
- stop updating packages on startup closes #1963
|
|
127
|
+
- refresh active model after provider updates closes #2291
|
|
128
|
+
- reload keybindings on /reload closes #2309
|
|
129
|
+
- restore Bun binary lazy provider loading closes #2314
|
|
130
|
+
- handle z.ai network_error closes #2313
|
|
131
|
+
- merge piped stdin into initial prompt closes #2315
|
|
132
|
+
- skip tmux extended-keys warning when tmux is unreachable (#2311)
|
|
133
|
+
- handle empty session titles and session info metadata (#2304)
|
|
134
|
+
- handle reftable footer branch detection (#2300)
|
|
135
|
+
- make prompt snippets opt in closes #2285
|
|
136
|
+
- retry provider returned error closes #2264
|
|
137
|
+
- handle slash-delimited /model refs closes #2174
|
|
138
|
+
- start UI before session_start closes #2035
|
|
139
|
+
- add uninstall alias
|
|
140
|
+
- stabilize windows shell/path handling
|
|
141
|
+
- silence headless clipboard fallback errors closes #2056
|
|
142
|
+
- honor provider compat in models.json closes #2062
|
|
143
|
+
- normalize prompt cwd for bash-safe windows paths closes #2080
|
|
144
|
+
- support configurable npm wrapper command closes #2072
|
|
145
|
+
- expand paste markers in ctx.ui.getEditorText(), closes #2084
|
|
146
|
+
- sync tool hooks with agent event processing closes #2113
|
|
147
|
+
- keep only ISO date in system prompt closes #2131
|
|
148
|
+
- match server_error and internal_error in retry regex (#2117)
|
|
149
|
+
- Fix EXIF orientation for JPEG and WebP images (#2105)
|
|
150
|
+
- use shell for external editor on windows closes #1925
|
|
151
|
+
- prefer explicit -e extensions closes #1896
|
|
152
|
+
- ignore stale pre-compaction assistant usage in threshold compaction checks, fixes #1860
|
|
153
|
+
- handle tmux xterm extended keys and warn on tmux setup fixes #1872
|
|
154
|
+
- custom tool collapsed/expanded rendering in HTML export (#1934)
|
|
155
|
+
- use strict JSONL framing fixes #1911
|
|
156
|
+
- keep ~/.agents skills user-scoped\n\ncloses #1915
|
|
157
|
+
- guard against stale kept pre-compaction usage in error-path threshold check
|
|
158
|
+
- truncate tool results in compaction summarization to prevent overflow, fixes #1796
|
|
159
|
+
- allow threshold compaction for error messages using last successful usage, fixes #1834
|
|
160
|
+
- retry sync lockfile acquisition to prevent false auth errors during parallel startup
|
|
161
|
+
- preserve thinking defaults across model switches closes #1864
|
|
162
|
+
- clear header on /new closes #1880
|
|
163
|
+
- prefer workspace dist files for extension aliases
|
|
164
|
+
- normalize CRLF in write preview rendering (fixes #1854)
|
|
165
|
+
- make footer truncation width-aware
|
|
166
|
+
- use ESM resolution for extension alias fallback (#1821)
|
|
167
|
+
|
|
3
168
|
## [2026.4.5] - 2026-04-05
|
|
4
169
|
|
|
5
170
|
### Added
|
|
@@ -40,7 +205,7 @@
|
|
|
40
205
|
- branding sweep for upstream cherry-picks
|
|
41
206
|
- emit session_shutdown in print mode closes #2576
|
|
42
207
|
- replace π with D in terminal title
|
|
43
|
-
- update changelog URL from
|
|
208
|
+
- update changelog URL from draht-mono to draht
|
|
44
209
|
- resolve upstream sync conflicts and fix branding
|
|
45
210
|
- respect export theme backgrounds closes #2565
|
|
46
211
|
- recompute interactive bash preview width closes #2569
|
|
@@ -263,9 +428,9 @@
|
|
|
263
428
|
|
|
264
429
|
- bake subagent into core, remove shipped extensions
|
|
265
430
|
- remove duplicate GSD extension, consolidate into built-in prompts
|
|
266
|
-
- update repo URLs from
|
|
431
|
+
- update repo URLs from draht-dev/draht to draht-dev/draht
|
|
267
432
|
- rebrand all READMEs to draht naming and conventions
|
|
268
|
-
- rebrand package references from @
|
|
433
|
+
- rebrand package references from @draht/coding-agent-* to @draht/*
|
|
269
434
|
- add publishConfig for public npm access
|
|
270
435
|
- comprehensive READMEs, CONTRIBUTING.md, and phase summaries
|
|
271
436
|
- add vitest config, integration tests, and draht manifest test
|
|
@@ -275,7 +440,7 @@
|
|
|
275
440
|
|
|
276
441
|
- resolve post-rebase import and dependency issues
|
|
277
442
|
- rebrand .pi to .draht and pi: to draht: in tests, add verify script
|
|
278
|
-
- rebrand remaining @
|
|
443
|
+
- rebrand remaining @draht/coding-agent-* imports from upstream to @draht/*
|
|
279
444
|
- use draht-tools binary name in GSD prompts and CLI
|
|
280
445
|
- fix subagent spawn in source/dev mode
|
|
281
446
|
- load shipped extensions and rename /resume to /continue
|
|
@@ -309,7 +474,7 @@
|
|
|
309
474
|
|
|
310
475
|
### Changed
|
|
311
476
|
|
|
312
|
-
- update repo URLs from
|
|
477
|
+
- update repo URLs from draht-dev/draht to draht-dev/draht
|
|
313
478
|
|
|
314
479
|
## [2026.3.2-8] - 2026-03-02
|
|
315
480
|
|
|
@@ -346,7 +511,7 @@
|
|
|
346
511
|
|
|
347
512
|
### Changed
|
|
348
513
|
|
|
349
|
-
- rebrand package references from @
|
|
514
|
+
- rebrand package references from @draht/coding-agent-* to @draht/*
|
|
350
515
|
- add publishConfig for public npm access
|
|
351
516
|
- comprehensive READMEs, CONTRIBUTING.md, and phase summaries
|
|
352
517
|
- add vitest config, integration tests, and draht manifest test
|
|
@@ -366,20 +531,20 @@
|
|
|
366
531
|
|
|
367
532
|
### New Features
|
|
368
533
|
|
|
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/
|
|
534
|
+
- 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)).
|
|
535
|
+
- 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)).
|
|
536
|
+
- 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
537
|
|
|
373
538
|
### Breaking Changes
|
|
374
539
|
|
|
375
540
|
- 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 `@
|
|
541
|
+
- 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
542
|
|
|
378
543
|
### Added
|
|
379
544
|
|
|
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/
|
|
545
|
+
- Added `branchSummary.skipPrompt` setting to skip the summary prompt when navigating branches ([#1792](https://github.com/draht-dev/draht/issues/1792)).
|
|
546
|
+
- 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)).
|
|
547
|
+
- 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
548
|
|
|
384
549
|
### Changed
|
|
385
550
|
|
|
@@ -388,87 +553,87 @@
|
|
|
388
553
|
### Fixed
|
|
389
554
|
|
|
390
555
|
- 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/
|
|
556
|
+
- 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)).
|
|
557
|
+
- Fixed markdown blockquotes dropping nested list content in the TUI renderer ([#1787](https://github.com/draht-dev/draht/issues/1787)).
|
|
558
|
+
- 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)).
|
|
559
|
+
- 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)).
|
|
560
|
+
- 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)).
|
|
561
|
+
- 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)).
|
|
562
|
+
- 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)).
|
|
563
|
+
- 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)).
|
|
564
|
+
- Fixed branch summarization queue handling so messages typed while summaries are generated are processed correctly ([#1803](https://github.com/draht-dev/draht/issues/1803)).
|
|
565
|
+
- Fixed compaction summary requests to avoid reasoning output for non-reasoning models ([#1793](https://github.com/draht-dev/draht/issues/1793)).
|
|
401
566
|
- 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 `@
|
|
567
|
+
- 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)).
|
|
568
|
+
- Fixed session selector display sanitization by stripping control characters from session display text ([#1747](https://github.com/draht-dev/draht/issues/1747)).
|
|
569
|
+
- Fixed Groq Qwen3 reasoning effort mapping for OpenAI-compatible models ([#1745](https://github.com/draht-dev/draht/issues/1745)).
|
|
570
|
+
- Fixed Bedrock `AWS_PROFILE` region resolution by honoring profile `region` values ([#1800](https://github.com/draht-dev/draht/issues/1800)).
|
|
571
|
+
- Fixed Gemini 3.1 thinking-level detection for `google` and `google-vertex` providers ([#1785](https://github.com/draht-dev/draht/issues/1785)).
|
|
572
|
+
- 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
573
|
|
|
409
574
|
## [0.55.4] - 2026-03-02
|
|
410
575
|
|
|
411
576
|
### New Features
|
|
412
577
|
|
|
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/
|
|
578
|
+
- 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)).
|
|
579
|
+
- 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)).
|
|
580
|
+
- 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
581
|
|
|
417
582
|
### Added
|
|
418
583
|
|
|
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/
|
|
584
|
+
- 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)).
|
|
585
|
+
- 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
586
|
|
|
422
587
|
### Fixed
|
|
423
588
|
|
|
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/
|
|
589
|
+
- 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))
|
|
590
|
+
- 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))
|
|
591
|
+
- 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))
|
|
592
|
+
- 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
593
|
|
|
429
594
|
## [0.55.3] - 2026-02-27
|
|
430
595
|
|
|
431
596
|
### Fixed
|
|
432
597
|
|
|
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/
|
|
598
|
+
- 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
599
|
|
|
435
600
|
## [0.55.2] - 2026-02-27
|
|
436
601
|
|
|
437
602
|
### New Features
|
|
438
603
|
|
|
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/
|
|
604
|
+
- 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
605
|
- `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
606
|
|
|
442
607
|
### Added
|
|
443
608
|
|
|
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/
|
|
609
|
+
- `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
610
|
|
|
446
611
|
### Fixed
|
|
447
612
|
|
|
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/
|
|
613
|
+
- `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)).
|
|
614
|
+
- 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)).
|
|
615
|
+
- 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)).
|
|
616
|
+
- 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))
|
|
617
|
+
- 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))
|
|
618
|
+
- 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))
|
|
619
|
+
- Fixed crash when OpenAI-compatible provider returns a chunk with no `choices` array ([#1671](https://github.com/draht-dev/draht/issues/1671))
|
|
455
620
|
|
|
456
621
|
## [0.55.1] - 2026-02-26
|
|
457
622
|
|
|
458
623
|
### New Features
|
|
459
624
|
|
|
460
625
|
- 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/
|
|
626
|
+
- 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
627
|
|
|
463
628
|
### Fixed
|
|
464
629
|
|
|
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/
|
|
630
|
+
- 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))
|
|
631
|
+
- 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))
|
|
632
|
+
- 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
633
|
- 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/
|
|
634
|
+
- 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))
|
|
635
|
+
- 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))
|
|
636
|
+
- 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
637
|
|
|
473
638
|
## [0.55.0] - 2026-02-24
|
|
474
639
|
|
|
@@ -482,7 +647,7 @@
|
|
|
482
647
|
### Fixed
|
|
483
648
|
|
|
484
649
|
- 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/
|
|
650
|
+
- 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
651
|
- 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
652
|
|
|
488
653
|
## [0.54.1] - 2026-02-22
|
|
@@ -557,12 +722,12 @@
|
|
|
557
722
|
|
|
558
723
|
### Breaking Changes
|
|
559
724
|
|
|
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/
|
|
725
|
+
- `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))
|
|
726
|
+
- 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
727
|
|
|
563
728
|
### Added
|
|
564
729
|
|
|
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/
|
|
730
|
+
- 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
731
|
- Added `terminal_input` extension event to intercept, consume, or transform raw terminal input before normal TUI handling.
|
|
567
732
|
- Added `gpt-5.3-codex-spark` model definition for OpenAI and OpenAI Codex providers (research preview).
|
|
568
733
|
|
|
@@ -572,69 +737,69 @@
|
|
|
572
737
|
|
|
573
738
|
### Fixed
|
|
574
739
|
|
|
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/
|
|
740
|
+
- 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))
|
|
741
|
+
- 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))
|
|
742
|
+
- `--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))
|
|
743
|
+
- Fixed local package path normalization for extension sources while tightening git source parsing rules ([#1426](https://github.com/draht-dev/draht/issues/1426))
|
|
579
744
|
- 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/
|
|
745
|
+
- Fixed Termux bootstrap package name for `fd` installation ([#1433](https://github.com/draht-dev/draht/pull/1433))
|
|
746
|
+
- Fixed `@` file autocomplete fuzzy matching to prioritize path-prefix and segment matches for nested paths ([#1423](https://github.com/draht-dev/draht/issues/1423))
|
|
747
|
+
- Fixed OpenAI streaming tool-call parsing to tolerate malformed trailing JSON in partial chunks ([#1424](https://github.com/draht-dev/draht/issues/1424))
|
|
583
748
|
|
|
584
749
|
## [0.52.9] - 2026-02-08
|
|
585
750
|
|
|
586
751
|
### New Features
|
|
587
752
|
|
|
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/
|
|
753
|
+
- 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
754
|
- 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/
|
|
755
|
+
- `/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)).
|
|
756
|
+
- `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
757
|
|
|
593
758
|
### Added
|
|
594
759
|
|
|
595
|
-
- Added `ctx.reload()` to the extension API for programmatic runtime reload ([#1371](https://github.com/
|
|
760
|
+
- Added `ctx.reload()` to the extension API for programmatic runtime reload ([#1371](https://github.com/draht-dev/draht/issues/1371))
|
|
596
761
|
- 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/
|
|
762
|
+
- `/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))
|
|
763
|
+
- `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
764
|
|
|
600
765
|
### Fixed
|
|
601
766
|
|
|
602
767
|
- 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/
|
|
768
|
+
- 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))
|
|
769
|
+
- 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))
|
|
770
|
+
- Fixed `rg` not available in bash tool by downloading it at startup alongside `fd` ([#1348](https://github.com/draht-dev/draht/issues/1348))
|
|
771
|
+
- Fixed `custom-compaction` example to use `ModelRegistry` ([#1387](https://github.com/draht-dev/draht/issues/1387))
|
|
772
|
+
- 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
773
|
- 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
774
|
- 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/
|
|
775
|
+
- Corrected opencode context windows for Claude Sonnet 4 and 4.5 ([#1383](https://github.com/draht-dev/draht/issues/1383))
|
|
776
|
+
- 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
777
|
|
|
613
778
|
## [0.52.8] - 2026-02-07
|
|
614
779
|
|
|
615
780
|
### New Features
|
|
616
781
|
|
|
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/
|
|
782
|
+
- 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))
|
|
783
|
+
- 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))
|
|
784
|
+
- 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))
|
|
785
|
+
- `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
786
|
|
|
622
787
|
### Added
|
|
623
788
|
|
|
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/
|
|
789
|
+
- 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))
|
|
790
|
+
- 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))
|
|
791
|
+
- Added OpenRouter `auto` model alias for automatic model routing ([#1361](https://github.com/draht-dev/draht/pull/1361) by [@yogasanas](https://github.com/yogasanas))
|
|
792
|
+
- 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
793
|
|
|
629
794
|
### Changed
|
|
630
795
|
|
|
631
|
-
- Replaced Claude Opus 4.5 with Opus 4.6 as default model ([#1345](https://github.com/
|
|
796
|
+
- 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
797
|
|
|
633
798
|
### Fixed
|
|
634
799
|
|
|
635
800
|
- 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/
|
|
801
|
+
- Fixed aborting retries when an extension customizes the editor ([#1364](https://github.com/draht-dev/draht/pull/1364) by [@Perlence](https://github.com/Perlence))
|
|
802
|
+
- 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
803
|
- Fixed extension shutdown to use clean TUI shutdown path, preventing orphaned processes
|
|
639
804
|
|
|
640
805
|
## [0.52.7] - 2026-02-06
|
|
@@ -651,30 +816,30 @@
|
|
|
651
816
|
|
|
652
817
|
### Added
|
|
653
818
|
|
|
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/
|
|
819
|
+
- 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))
|
|
820
|
+
- 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
821
|
|
|
657
822
|
### Fixed
|
|
658
823
|
|
|
659
824
|
- 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/
|
|
825
|
+
- 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))
|
|
826
|
+
- 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))
|
|
827
|
+
- Fixed compromised auth lock files being handled gracefully instead of crashing auth storage initialization ([#1322](https://github.com/draht-dev/draht/issues/1322))
|
|
828
|
+
- 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))
|
|
829
|
+
- 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))
|
|
830
|
+
- Fixed interactive mode startup by initializing autocomplete after resources are loaded ([#1328](https://github.com/draht-dev/draht/issues/1328))
|
|
831
|
+
- Fixed `modelOverrides` merge behavior for nested objects and documented usage details ([#1062](https://github.com/draht-dev/draht/issues/1062))
|
|
667
832
|
|
|
668
833
|
## [0.52.6] - 2026-02-05
|
|
669
834
|
|
|
670
835
|
### Breaking Changes
|
|
671
836
|
|
|
672
|
-
- Removed `/exit` command handling. Use `/quit` to exit ([#1303](https://github.com/
|
|
837
|
+
- Removed `/exit` command handling. Use `/quit` to exit ([#1303](https://github.com/draht-dev/draht/issues/1303))
|
|
673
838
|
|
|
674
839
|
### Fixed
|
|
675
840
|
|
|
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/
|
|
841
|
+
- 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))
|
|
842
|
+
- 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
843
|
|
|
679
844
|
## [0.52.5] - 2026-02-05
|
|
680
845
|
|
|
@@ -686,7 +851,7 @@
|
|
|
686
851
|
|
|
687
852
|
### Fixed
|
|
688
853
|
|
|
689
|
-
- Fixed extensions setting not respecting `package.json` `pi.extensions` manifest when directory is specified directly ([#1302](https://github.com/
|
|
854
|
+
- 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
855
|
|
|
691
856
|
## [0.52.3] - 2026-02-05
|
|
692
857
|
|
|
@@ -724,52 +889,52 @@
|
|
|
724
889
|
- Added `minimal-mode.ts` example extension demonstrating how to override built-in tool rendering for a minimal display mode
|
|
725
890
|
- Added Claude Opus 4.6 model to the model catalog
|
|
726
891
|
- 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/
|
|
892
|
+
- Added SSH URL support for git packages ([#1287](https://github.com/draht-dev/draht/pull/1287) by [@markusn](https://github.com/markusn))
|
|
893
|
+
- Model selectors now display the selected model name ([#1275](https://github.com/draht-dev/draht/pull/1275) by [@haoqixu](https://github.com/haoqixu))
|
|
729
894
|
|
|
730
895
|
### Fixed
|
|
731
896
|
|
|
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/
|
|
897
|
+
- 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))
|
|
898
|
+
- 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))
|
|
899
|
+
- 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))
|
|
900
|
+
- Fixed crash when models send malformed tool arguments (objects instead of strings) ([#1259](https://github.com/draht-dev/draht/issues/1259))
|
|
901
|
+
- Fixed custom message expand state not being respected ([#1258](https://github.com/draht-dev/draht/pull/1258) by [@Gurpartap](https://github.com/Gurpartap))
|
|
737
902
|
- Fixed skill loader to respect .gitignore, .ignore, and .fdignore when scanning directories
|
|
738
903
|
|
|
739
904
|
## [0.51.6] - 2026-02-04
|
|
740
905
|
|
|
741
906
|
### New Features
|
|
742
907
|
|
|
743
|
-
- Configurable resume keybinding action for opening the session resume selector. See [docs/keybindings.md](docs/keybindings.md). ([#1249](https://github.com/
|
|
908
|
+
- 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
909
|
|
|
745
910
|
### Added
|
|
746
911
|
|
|
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/
|
|
912
|
+
- 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
913
|
|
|
749
914
|
### Changed
|
|
750
915
|
|
|
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/
|
|
916
|
+
- 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
917
|
|
|
753
918
|
### Fixed
|
|
754
919
|
|
|
755
920
|
- Ignored unknown skill frontmatter fields when loading skills
|
|
756
|
-
- Fixed `/reload` not picking up changes in global settings.json ([#1241](https://github.com/
|
|
921
|
+
- Fixed `/reload` not picking up changes in global settings.json ([#1241](https://github.com/draht-dev/draht/issues/1241))
|
|
757
922
|
- 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/
|
|
923
|
+
- Fixed forked sessions to write to new session files instead of the parent ([#1242](https://github.com/draht-dev/draht/issues/1242))
|
|
924
|
+
- Fixed local package removal to normalize paths before comparison ([#1243](https://github.com/draht-dev/draht/issues/1243))
|
|
925
|
+
- Fixed OpenAI Codex Responses provider to respect configured baseUrl ([#1244](https://github.com/draht-dev/draht/issues/1244))
|
|
926
|
+
- 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))
|
|
927
|
+
- 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
928
|
|
|
764
929
|
## [0.51.5] - 2026-02-04
|
|
765
930
|
|
|
766
931
|
### Changed
|
|
767
932
|
|
|
768
|
-
- Changed Bedrock model generation to drop legacy workarounds now handled upstream ([#1239](https://github.com/
|
|
933
|
+
- 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
934
|
|
|
770
935
|
### Fixed
|
|
771
936
|
|
|
772
|
-
- Fixed Windows package installs regression by using shell execution instead of `.cmd` resolution ([#1220](https://github.com/
|
|
937
|
+
- Fixed Windows package installs regression by using shell execution instead of `.cmd` resolution ([#1220](https://github.com/draht-dev/draht/issues/1220))
|
|
773
938
|
|
|
774
939
|
## [0.51.4] - 2026-02-03
|
|
775
940
|
|
|
@@ -783,7 +948,7 @@
|
|
|
783
948
|
|
|
784
949
|
### Fixed
|
|
785
950
|
|
|
786
|
-
- Fixed input scrolling to avoid splitting emoji sequences ([#1228](https://github.com/
|
|
951
|
+
- Fixed input scrolling to avoid splitting emoji sequences ([#1228](https://github.com/draht-dev/draht/pull/1228) by [@haoqixu](https://github.com/haoqixu))
|
|
787
952
|
|
|
788
953
|
## [0.51.3] - 2026-02-03
|
|
789
954
|
|
|
@@ -798,15 +963,15 @@
|
|
|
798
963
|
|
|
799
964
|
### Added
|
|
800
965
|
|
|
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/
|
|
966
|
+
- 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))
|
|
967
|
+
- 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))
|
|
968
|
+
- 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
969
|
|
|
805
970
|
### Fixed
|
|
806
971
|
|
|
807
972
|
- 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/
|
|
973
|
+
- Fixed Windows package installs by resolving `npm.cmd` when `npm` is not directly executable ([#1220](https://github.com/draht-dev/draht/issues/1220))
|
|
974
|
+
- Fixed xhigh thinking level support check to accept gpt-5.2 model IDs ([#1209](https://github.com/draht-dev/draht/issues/1209))
|
|
810
975
|
|
|
811
976
|
## [0.51.2] - 2026-02-03
|
|
812
977
|
|
|
@@ -816,31 +981,31 @@
|
|
|
816
981
|
|
|
817
982
|
### Added
|
|
818
983
|
|
|
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/
|
|
984
|
+
- 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))
|
|
985
|
+
- 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
986
|
|
|
822
987
|
### Fixed
|
|
823
988
|
|
|
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/
|
|
989
|
+
- 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
990
|
- Fixed legacy newline handling in the editor to preserve previous newline behavior
|
|
826
991
|
- Fixed @ autocomplete to include hidden paths
|
|
827
992
|
- 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/
|
|
993
|
+
- 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))
|
|
994
|
+
- Fixed @-prefixed tool paths failing to resolve by stripping the prefix ([#1206](https://github.com/draht-dev/draht/issues/1206))
|
|
830
995
|
- Fixed install method detection to avoid stale cached results
|
|
831
996
|
|
|
832
997
|
## [0.51.1] - 2026-02-02
|
|
833
998
|
|
|
834
999
|
### New Features
|
|
835
1000
|
|
|
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/
|
|
1001
|
+
- **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
1002
|
- **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
1003
|
|
|
839
1004
|
### Fixed
|
|
840
1005
|
|
|
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/
|
|
1006
|
+
- Fixed scoped models not finding valid credentials after logout ([#1194](https://github.com/draht-dev/draht/pull/1194) by [@terrorobe](https://github.com/terrorobe))
|
|
1007
|
+
- Fixed Ctrl+D exit closing the parent SSH session due to stdin buffer race condition ([#1185](https://github.com/draht-dev/draht/issues/1185))
|
|
1008
|
+
- Fixed emoji cursor positioning in editor input ([#1183](https://github.com/draht-dev/draht/pull/1183) by [@haoqixu](https://github.com/haoqixu))
|
|
844
1009
|
|
|
845
1010
|
## [0.51.0] - 2026-02-01
|
|
846
1011
|
|
|
@@ -860,117 +1025,117 @@
|
|
|
860
1025
|
- **Android/Termux support**: Pi now runs on Android via Termux. Install with:
|
|
861
1026
|
```bash
|
|
862
1027
|
pkg install nodejs termux-api git
|
|
863
|
-
npm install -g @
|
|
1028
|
+
npm install -g @draht/coding-agent
|
|
864
1029
|
mkdir -p ~/.pi/agent
|
|
865
1030
|
echo "You are running on Android in Termux." > ~/.pi/agent/AGENTS.md
|
|
866
1031
|
```
|
|
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/
|
|
1032
|
+
Clipboard operations fall back gracefully when `termux-api` is unavailable. ([#1164](https://github.com/draht-dev/draht/issues/1164))
|
|
1033
|
+
- **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
1034
|
- **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/
|
|
1035
|
+
- **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))
|
|
1036
|
+
- **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))
|
|
1037
|
+
- **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))
|
|
1038
|
+
- **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
1039
|
|
|
875
1040
|
### Added
|
|
876
1041
|
|
|
877
1042
|
- 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/
|
|
1043
|
+
- Added Android/Termux support with graceful clipboard fallback ([#1164](https://github.com/draht-dev/draht/issues/1164))
|
|
1044
|
+
- 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))
|
|
1045
|
+
- 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))
|
|
1046
|
+
- Exported `discoverAndLoadExtensions` from package to enable extension testing without a local repo clone ([#1148](https://github.com/draht-dev/draht/issues/1148))
|
|
1047
|
+
- 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))
|
|
1048
|
+
- 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))
|
|
1049
|
+
- 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))
|
|
1050
|
+
- 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))
|
|
1051
|
+
- `/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))
|
|
1052
|
+
|
|
1053
|
+
### Fixed
|
|
1054
|
+
|
|
1055
|
+
- Fixed `pi update` not updating npm/git packages when called without arguments ([#1151](https://github.com/draht-dev/draht/issues/1151))
|
|
1056
|
+
- 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))
|
|
1057
|
+
- 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))
|
|
1058
|
+
- Fixed tree selector losing focus state when navigating entries ([#1142](https://github.com/draht-dev/draht/pull/1142) by [@Perlence](https://github.com/Perlence))
|
|
1059
|
+
- Fixed `cacheRetention` option not being passed through in `buildBaseOptions` ([#1154](https://github.com/draht-dev/draht/issues/1154))
|
|
1060
|
+
- Fixed OAuth login/refresh not using HTTP proxy settings (`HTTP_PROXY`, `HTTPS_PROXY` env vars) ([#1132](https://github.com/draht-dev/draht/issues/1132))
|
|
1061
|
+
- 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))
|
|
1062
|
+
- 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
1063
|
|
|
899
1064
|
## [0.50.9] - 2026-02-01
|
|
900
1065
|
|
|
901
1066
|
### Added
|
|
902
1067
|
|
|
903
1068
|
- 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/
|
|
1069
|
+
- Added `PI_AI_ANTIGRAVITY_VERSION` environment variable documentation to help text ([#1129](https://github.com/draht-dev/draht/issues/1129))
|
|
1070
|
+
- 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
1071
|
|
|
907
1072
|
## [0.50.8] - 2026-02-01
|
|
908
1073
|
|
|
909
1074
|
### Added
|
|
910
1075
|
|
|
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/
|
|
1076
|
+
- 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))
|
|
1077
|
+
- 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))
|
|
1078
|
+
- `/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))
|
|
1079
|
+
- Added Qwen CLI OAuth provider extension example. ([#940](https://github.com/draht-dev/draht/pull/940) by [@4h9fbZ](https://github.com/4h9fbZ))
|
|
1080
|
+
- 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))
|
|
1081
|
+
- 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))
|
|
1082
|
+
- 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
1083
|
- Added `resources_discover` extension hook to supply additional skills, prompts, and themes on startup and reload.
|
|
919
1084
|
|
|
920
1085
|
### Fixed
|
|
921
1086
|
|
|
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/
|
|
1087
|
+
- 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))
|
|
1088
|
+
- 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))
|
|
1089
|
+
- 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
1090
|
|
|
926
1091
|
## [0.50.7] - 2026-01-31
|
|
927
1092
|
|
|
928
1093
|
### Fixed
|
|
929
1094
|
|
|
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/
|
|
1095
|
+
- 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
1096
|
|
|
932
1097
|
## [0.50.6] - 2026-01-30
|
|
933
1098
|
|
|
934
1099
|
### Added
|
|
935
1100
|
|
|
936
|
-
- Added `ctx.getSystemPrompt()` to extension context for accessing the current effective system prompt ([#1098](https://github.com/
|
|
1101
|
+
- 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
1102
|
|
|
938
1103
|
### Fixed
|
|
939
1104
|
|
|
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/
|
|
1105
|
+
- 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))
|
|
1106
|
+
- 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
1107
|
|
|
943
1108
|
## [0.50.4] - 2026-01-30
|
|
944
1109
|
|
|
945
1110
|
### New Features
|
|
946
1111
|
|
|
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/
|
|
1112
|
+
- **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))
|
|
1113
|
+
- **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))
|
|
1114
|
+
- **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))
|
|
1115
|
+
- **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))
|
|
1116
|
+
- **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))
|
|
1117
|
+
- **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))
|
|
1118
|
+
- **`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))
|
|
1119
|
+
- **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
1120
|
|
|
956
1121
|
### Added
|
|
957
1122
|
|
|
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/
|
|
1123
|
+
- 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))
|
|
1124
|
+
- 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))
|
|
1125
|
+
- 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))
|
|
1126
|
+
- 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))
|
|
1127
|
+
- 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))
|
|
1128
|
+
- 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))
|
|
1129
|
+
- 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))
|
|
1130
|
+
- 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
1131
|
|
|
967
1132
|
### Fixed
|
|
968
1133
|
|
|
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/
|
|
1134
|
+
- Read tool now handles macOS filenames with curly quotes (U+2019) and NFD Unicode normalization ([#1078](https://github.com/draht-dev/draht/issues/1078))
|
|
1135
|
+
- 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))
|
|
1136
|
+
- Fixed tool call argument defaults when providers omit inputs ([#1065](https://github.com/draht-dev/draht/issues/1065))
|
|
1137
|
+
- 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))
|
|
1138
|
+
- 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
1139
|
|
|
975
1140
|
## [0.50.3] - 2026-01-29
|
|
976
1141
|
|
|
@@ -998,45 +1163,45 @@
|
|
|
998
1163
|
|
|
999
1164
|
### Added
|
|
1000
1165
|
|
|
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/
|
|
1166
|
+
- Added Hugging Face provider support via OpenAI-compatible Inference Router ([#994](https://github.com/draht-dev/draht/issues/994))
|
|
1167
|
+
- 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))
|
|
1168
|
+
- 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
1169
|
- 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/
|
|
1170
|
+
- 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))
|
|
1171
|
+
- 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
1172
|
|
|
1008
1173
|
### Changed
|
|
1009
1174
|
|
|
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/
|
|
1175
|
+
- 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))
|
|
1176
|
+
- 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
1177
|
|
|
1013
1178
|
### Fixed
|
|
1014
1179
|
|
|
1015
1180
|
- 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/
|
|
1181
|
+
- Fixed custom header not displaying correctly with `quietStartup` enabled ([#1039](https://github.com/draht-dev/draht/pull/1039) by [@tudoroancea](https://github.com/tudoroancea))
|
|
1182
|
+
- 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))
|
|
1183
|
+
- 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))
|
|
1184
|
+
- Fixed incorrect `.md` file names in warning messages ([#1041](https://github.com/draht-dev/draht/issues/1041) by [@llimllib](https://github.com/llimllib))
|
|
1185
|
+
- 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))
|
|
1186
|
+
- 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))
|
|
1187
|
+
- 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))
|
|
1188
|
+
- Fixed OpenAI completions `toolChoice` handling ([#998](https://github.com/draht-dev/draht/pull/998) by [@williamtwomey](https://github.com/williamtwomey))
|
|
1189
|
+
- 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))
|
|
1190
|
+
- Fixed 429 rate limit errors incorrectly triggering auto-compaction instead of retry with backoff ([#1038](https://github.com/draht-dev/draht/issues/1038))
|
|
1191
|
+
- Fixed Anthropic provider to handle `sensitive` stop_reason returned by API ([#978](https://github.com/draht-dev/draht/issues/978))
|
|
1192
|
+
- Fixed DeepSeek API compatibility by detecting `deepseek.com` URLs and disabling unsupported `developer` role ([#1048](https://github.com/draht-dev/draht/issues/1048))
|
|
1193
|
+
- 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
1194
|
- Fixed `autocompleteMaxVisible` setting not persisting to `settings.json`
|
|
1030
1195
|
|
|
1031
1196
|
## [0.50.1] - 2026-01-26
|
|
1032
1197
|
|
|
1033
1198
|
### Fixed
|
|
1034
1199
|
|
|
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/
|
|
1200
|
+
- 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))
|
|
1201
|
+
- 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
1202
|
- 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/
|
|
1203
|
+
- Fixed `/hotkeys` output to title-case extension hotkeys ([#969](https://github.com/draht-dev/draht/pull/969) by [@Perlence](https://github.com/Perlence))
|
|
1204
|
+
- 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
1205
|
- Fixed git extension removal to prune empty directories
|
|
1041
1206
|
|
|
1042
1207
|
## [0.50.0] - 2026-01-26
|
|
@@ -1061,125 +1226,125 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1061
1226
|
|
|
1062
1227
|
### Breaking Changes
|
|
1063
1228
|
|
|
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/
|
|
1229
|
+
- 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))
|
|
1230
|
+
- 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))
|
|
1231
|
+
- 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))
|
|
1232
|
+
- 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
1233
|
|
|
1069
1234
|
### Added
|
|
1070
1235
|
|
|
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/
|
|
1236
|
+
- 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))
|
|
1237
|
+
- Session selector keybindings are now configurable ([#948](https://github.com/draht-dev/draht/pull/948) by [@aos](https://github.com/aos))
|
|
1238
|
+
- `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))
|
|
1239
|
+
- Exposed `copyToClipboard` utility for extensions ([#926](https://github.com/draht-dev/draht/issues/926) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1240
|
+
- 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))
|
|
1241
|
+
- Header values in `models.json` now support environment variables and shell commands, matching `apiKey` resolution ([#909](https://github.com/draht-dev/draht/issues/909))
|
|
1242
|
+
- Added HTTP proxy environment variable support for API requests ([#942](https://github.com/draht-dev/draht/pull/942) by [@haoqixu](https://github.com/haoqixu))
|
|
1243
|
+
- 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))
|
|
1244
|
+
- 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))
|
|
1245
|
+
- Added changelog link to update notifications ([#925](https://github.com/draht-dev/draht/pull/925) by [@dannote](https://github.com/dannote))
|
|
1246
|
+
- Added `--verbose` CLI flag to override quietStartup setting ([#906](https://github.com/draht-dev/draht/pull/906) by [@Perlence](https://github.com/Perlence))
|
|
1082
1247
|
- `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/
|
|
1248
|
+
- Extension package management with `pi install`, `pi remove`, `pi update`, and `pi list` commands ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1249
|
+
- Package filtering: selectively load resources from packages using object form in `packages` array ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1250
|
+
- 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))
|
|
1251
|
+
- `/reload` command to reload extensions, skills, prompts, and themes ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1252
|
+
- `pi config` command with TUI to enable/disable package and top-level resources via patterns ([#938](https://github.com/draht-dev/draht/issues/938))
|
|
1253
|
+
- CLI flags for `--skill`, `--prompt-template`, `--theme`, `--no-prompt-templates`, and `--no-themes` ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1254
|
+
- Package deduplication: if same package appears in global and project settings, project wins ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1255
|
+
- Unified collision reporting with `ResourceDiagnostic` type for all resource types ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1091
1256
|
- Show provider alongside the model in the footer if multiple providers are available
|
|
1092
1257
|
- Custom provider support via `pi.registerProvider()` with `streamSimple` for custom API implementations
|
|
1093
1258
|
- Added `custom-provider.ts` example extension demonstrating custom Anthropic provider with OAuth
|
|
1094
1259
|
|
|
1095
1260
|
### Changed
|
|
1096
1261
|
|
|
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/
|
|
1262
|
+
- `/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))
|
|
1263
|
+
- 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))
|
|
1264
|
+
- 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
1265
|
- 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/
|
|
1266
|
+
- `/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))
|
|
1267
|
+
- 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
1268
|
|
|
1104
1269
|
### Fixed
|
|
1105
1270
|
|
|
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/
|
|
1271
|
+
- 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
1272
|
- 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/
|
|
1273
|
+
- Fixed /reload restoring the correct editor after reload ([#949](https://github.com/draht-dev/draht/pull/949) by [@Perlence](https://github.com/Perlence))
|
|
1274
|
+
- Fixed distributed themes breaking `/export` ([#946](https://github.com/draht-dev/draht/pull/946) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1110
1275
|
- Fixed startup hints to clarify thinking level selection and expanded thinking guidance
|
|
1111
1276
|
- Fixed SDK initial model resolution to use `findInitialModel` and default to Claude Opus 4.5 for Anthropic models
|
|
1112
1277
|
- Fixed no-models warning to include the `/model` instruction
|
|
1113
1278
|
- Fixed authentication error messages to point to the authentication documentation
|
|
1114
1279
|
- Fixed bash output hint lines to truncate to terminal width
|
|
1115
|
-
- Fixed custom editors to honor the `paddingX` setting ([#936](https://github.com/
|
|
1280
|
+
- Fixed custom editors to honor the `paddingX` setting ([#936](https://github.com/draht-dev/draht/pull/936) by [@Perlence](https://github.com/Perlence))
|
|
1116
1281
|
- Fixed system prompt tool list to show only built-in tools
|
|
1117
1282
|
- Fixed package manager to check npm package versions before using cached copies
|
|
1118
1283
|
- Fixed package manager to run `npm install` after cloning git repositories with a package.json
|
|
1119
1284
|
- 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/
|
|
1285
|
+
- Fixed editor multi-line insertion handling and lastAction tracking ([#945](https://github.com/draht-dev/draht/pull/945) by [@Perlence](https://github.com/Perlence))
|
|
1286
|
+
- Fixed editor word wrapping to reserve a cursor column ([#934](https://github.com/draht-dev/draht/pull/934) by [@Perlence](https://github.com/Perlence))
|
|
1287
|
+
- 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
1288
|
- Fixed Kitty image ID allocation and cleanup to prevent image ID collisions
|
|
1124
|
-
- Fixed overlays staying centered after terminal resizes ([#950](https://github.com/
|
|
1289
|
+
- Fixed overlays staying centered after terminal resizes ([#950](https://github.com/draht-dev/draht/pull/950) by [@nicobailon](https://github.com/nicobailon))
|
|
1125
1290
|
- Fixed streaming dispatch to use the model api type instead of hardcoded API defaults
|
|
1126
1291
|
- 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/
|
|
1292
|
+
- 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
1293
|
- Fixed OpenAI Codex Responses tool strictness handling after the shared responses refactor
|
|
1129
1294
|
- 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/
|
|
1295
|
+
- 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))
|
|
1296
|
+
- 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))
|
|
1297
|
+
- User package filters now layer on top of manifest filters instead of replacing them ([#645](https://github.com/draht-dev/draht/issues/645))
|
|
1133
1298
|
- 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/
|
|
1299
|
+
- Follow-up queue (Alt+Enter) now sends full paste content instead of `[paste #N ...]` markers ([#912](https://github.com/draht-dev/draht/issues/912))
|
|
1300
|
+
- Fixed Alt-Up not restoring messages queued during compaction ([#923](https://github.com/draht-dev/draht/pull/923) by [@aliou](https://github.com/aliou))
|
|
1301
|
+
- 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))
|
|
1302
|
+
- 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))
|
|
1303
|
+
- 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
1304
|
|
|
1140
1305
|
## [0.49.3] - 2026-01-22
|
|
1141
1306
|
|
|
1142
1307
|
### Added
|
|
1143
1308
|
|
|
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/
|
|
1309
|
+
- `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))
|
|
1310
|
+
- 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))
|
|
1311
|
+
- 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))
|
|
1312
|
+
- 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))
|
|
1313
|
+
- 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
1314
|
|
|
1150
1315
|
### Changed
|
|
1151
1316
|
|
|
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/
|
|
1317
|
+
- 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))
|
|
1318
|
+
- 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
1319
|
|
|
1155
1320
|
### Fixed
|
|
1156
1321
|
|
|
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/
|
|
1322
|
+
- 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))
|
|
1323
|
+
- Fixed `write` tool not displaying errors in the UI when execution fails ([#856](https://github.com/draht-dev/draht/issues/856))
|
|
1324
|
+
- 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))
|
|
1325
|
+
- 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))
|
|
1326
|
+
- 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
1327
|
- 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/
|
|
1328
|
+
- 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))
|
|
1329
|
+
- Fixed autolinked emails displaying redundant `(mailto:...)` suffix ([#888](https://github.com/draht-dev/draht/pull/888) by [@terrorobe](https://github.com/terrorobe))
|
|
1165
1330
|
- Fixed `@` file autocomplete adding space after directories, breaking continued autocomplete into subdirectories
|
|
1166
1331
|
|
|
1167
1332
|
## [0.49.2] - 2026-01-19
|
|
1168
1333
|
|
|
1169
1334
|
### Added
|
|
1170
1335
|
|
|
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/
|
|
1336
|
+
- 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))
|
|
1337
|
+
- 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))
|
|
1338
|
+
- Add "quiet startup" setting to `/settings` ([#847](https://github.com/draht-dev/draht/pull/847) by [@unexge](https://github.com/unexge))
|
|
1174
1339
|
|
|
1175
1340
|
### Changed
|
|
1176
1341
|
|
|
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/
|
|
1342
|
+
- 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))
|
|
1343
|
+
- 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
1344
|
|
|
1180
1345
|
### 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/
|
|
1346
|
+
- 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))
|
|
1347
|
+
- Fixed OpenAI Responses 400 error "reasoning without following item" when replaying aborted turns ([#838](https://github.com/draht-dev/draht/pull/838))
|
|
1183
1348
|
- Fixed pi exiting with code 0 when cancelling resume session selection
|
|
1184
1349
|
|
|
1185
1350
|
### Removed
|
|
@@ -1190,33 +1355,33 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1190
1355
|
|
|
1191
1356
|
### Added
|
|
1192
1357
|
|
|
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/
|
|
1358
|
+
- 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))
|
|
1359
|
+
- 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))
|
|
1360
|
+
- 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
1361
|
|
|
1197
1362
|
### Changed
|
|
1198
1363
|
|
|
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/
|
|
1364
|
+
- 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))
|
|
1365
|
+
- 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
1366
|
|
|
1202
1367
|
### Fixed
|
|
1203
1368
|
|
|
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/
|
|
1369
|
+
- 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))
|
|
1370
|
+
- 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
1371
|
- 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/
|
|
1372
|
+
- 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
1373
|
|
|
1209
1374
|
## [0.49.0] - 2026-01-17
|
|
1210
1375
|
|
|
1211
1376
|
### Added
|
|
1212
1377
|
|
|
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/
|
|
1378
|
+
- `pi.setLabel(entryId, label)` in ExtensionAPI for setting per-entry labels from extensions ([#806](https://github.com/draht-dev/draht/issues/806))
|
|
1379
|
+
- 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))
|
|
1380
|
+
- 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))
|
|
1381
|
+
- 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))
|
|
1382
|
+
- 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
1383
|
- 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/
|
|
1384
|
+
- 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
1385
|
|
|
1221
1386
|
### Changed
|
|
1222
1387
|
|
|
@@ -1225,10 +1390,10 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1225
1390
|
|
|
1226
1391
|
### Fixed
|
|
1227
1392
|
|
|
1228
|
-
- Fixed photon module failing to load in ESM context with "require is not defined" error ([#795](https://github.com/
|
|
1393
|
+
- 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
1394
|
- 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/
|
|
1395
|
+
- 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))
|
|
1396
|
+
- 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
1397
|
- Fixed Claude Code tool name normalization to match the Claude Code tool list case-insensitively and remove invalid mappings.
|
|
1233
1398
|
|
|
1234
1399
|
### Removed
|
|
@@ -1239,28 +1404,28 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1239
1404
|
|
|
1240
1405
|
### Added
|
|
1241
1406
|
|
|
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/
|
|
1407
|
+
- 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
1408
|
- 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/
|
|
1409
|
+
- 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))
|
|
1410
|
+
- Added bash-style argument slicing for prompt templates ([#770](https://github.com/draht-dev/draht/pull/770) by [@airtonix](https://github.com/airtonix))
|
|
1411
|
+
- 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))
|
|
1412
|
+
- 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))
|
|
1413
|
+
- 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))
|
|
1414
|
+
- Added `thinkingText` and `selectedBg` to theme schema ([#763](https://github.com/draht-dev/draht/pull/763) by [@scutifer](https://github.com/scutifer))
|
|
1415
|
+
- `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))
|
|
1416
|
+
|
|
1417
|
+
### Fixed
|
|
1418
|
+
|
|
1419
|
+
- 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))
|
|
1420
|
+
- 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))
|
|
1421
|
+
- Fixed standalone binary WASM loading on Linux ([#784](https://github.com/draht-dev/draht/issues/784))
|
|
1422
|
+
- 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))
|
|
1423
|
+
- Fixed `--no-extensions` flag not preventing extension discovery ([#776](https://github.com/draht-dev/draht/issues/776))
|
|
1424
|
+
- 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))
|
|
1425
|
+
- 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))
|
|
1426
|
+
- Fixed session picker hint text overflow ([#764](https://github.com/draht-dev/draht/issues/764))
|
|
1427
|
+
- 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))
|
|
1428
|
+
- 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
1429
|
|
|
1265
1430
|
### Changed
|
|
1266
1431
|
|
|
@@ -1270,16 +1435,16 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1270
1435
|
|
|
1271
1436
|
### Breaking Changes
|
|
1272
1437
|
|
|
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/
|
|
1438
|
+
- 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
1439
|
|
|
1275
1440
|
### Added
|
|
1276
1441
|
|
|
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/
|
|
1442
|
+
- **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
1443
|
- `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/
|
|
1444
|
+
- 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))
|
|
1445
|
+
- 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))
|
|
1446
|
+
- 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))
|
|
1447
|
+
- 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
1448
|
|
|
1284
1449
|
### Changed
|
|
1285
1450
|
|
|
@@ -1287,58 +1452,58 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1287
1452
|
|
|
1288
1453
|
### Fixed
|
|
1289
1454
|
|
|
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/
|
|
1455
|
+
- 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))
|
|
1456
|
+
- 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))
|
|
1457
|
+
- 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))
|
|
1458
|
+
- Added `upstream connect`, `connection refused`, and `reset before headers` patterns to auto-retry error detection ([#733](https://github.com/draht-dev/draht/issues/733))
|
|
1459
|
+
- 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))
|
|
1460
|
+
- `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))
|
|
1461
|
+
- 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
1462
|
|
|
1298
1463
|
## [0.46.0] - 2026-01-15
|
|
1299
1464
|
|
|
1300
1465
|
### Fixed
|
|
1301
1466
|
|
|
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/
|
|
1467
|
+
- 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))
|
|
1468
|
+
- 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))
|
|
1469
|
+
- `/skill` prompts now include the skill path ([#711](https://github.com/draht-dev/draht/pull/711) by [@jblwilliams](https://github.com/jblwilliams))
|
|
1470
|
+
- Use configurable `expandTools` keybinding instead of hardcoded Ctrl+O ([#717](https://github.com/draht-dev/draht/pull/717) by [@dannote](https://github.com/dannote))
|
|
1471
|
+
- Compaction turn prefix summaries now merge correctly ([#738](https://github.com/draht-dev/draht/pull/738) by [@vsabavat](https://github.com/vsabavat))
|
|
1472
|
+
- Avoid unsigned Gemini 3 tool calls ([#741](https://github.com/draht-dev/draht/pull/741) by [@roshanasingh4](https://github.com/roshanasingh4))
|
|
1473
|
+
- 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))
|
|
1474
|
+
- 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
1475
|
|
|
1311
1476
|
### Added
|
|
1312
1477
|
|
|
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/
|
|
1478
|
+
- 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))
|
|
1479
|
+
- 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))
|
|
1480
|
+
- 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))
|
|
1481
|
+
- Export `getAgentDir` for extensions ([#749](https://github.com/draht-dev/draht/pull/749) by [@dannote](https://github.com/dannote))
|
|
1482
|
+
- Show loaded prompt templates on startup ([#743](https://github.com/draht-dev/draht/pull/743) by [@tallshort](https://github.com/tallshort))
|
|
1483
|
+
- MiniMax China (`minimax-cn`) provider support ([#725](https://github.com/draht-dev/draht/pull/725) by [@tallshort](https://github.com/tallshort))
|
|
1484
|
+
- `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
1485
|
|
|
1321
1486
|
### Changed
|
|
1322
1487
|
|
|
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/
|
|
1488
|
+
- 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))
|
|
1489
|
+
- 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))
|
|
1490
|
+
- UI keybinding hints now respect configured keybindings across components ([#724](https://github.com/draht-dev/draht/pull/724) by [@dannote](https://github.com/dannote))
|
|
1491
|
+
- 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
1492
|
|
|
1328
1493
|
## [0.45.7] - 2026-01-13
|
|
1329
1494
|
|
|
1330
1495
|
### Added
|
|
1331
1496
|
|
|
1332
|
-
- Exported `highlightCode` and `getLanguageFromPath` for extensions ([#703](https://github.com/
|
|
1497
|
+
- Exported `highlightCode` and `getLanguageFromPath` for extensions ([#703](https://github.com/draht-dev/draht/pull/703) by [@dannote](https://github.com/dannote))
|
|
1333
1498
|
|
|
1334
1499
|
## [0.45.6] - 2026-01-13
|
|
1335
1500
|
|
|
1336
1501
|
### Added
|
|
1337
1502
|
|
|
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/
|
|
1503
|
+
- `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))
|
|
1504
|
+
- `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))
|
|
1505
|
+
- 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))
|
|
1506
|
+
- 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
1507
|
|
|
1343
1508
|
## [0.45.5] - 2026-01-13
|
|
1344
1509
|
|
|
@@ -1351,28 +1516,28 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1351
1516
|
### Changed
|
|
1352
1517
|
|
|
1353
1518
|
- 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/
|
|
1519
|
+
- 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
1520
|
|
|
1356
1521
|
### Added
|
|
1357
1522
|
|
|
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/
|
|
1523
|
+
- 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))
|
|
1524
|
+
- 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))
|
|
1525
|
+
- 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))
|
|
1526
|
+
- 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))
|
|
1527
|
+
- 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
1528
|
|
|
1364
1529
|
### Fixed
|
|
1365
1530
|
|
|
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/
|
|
1531
|
+
- 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))
|
|
1532
|
+
- 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))
|
|
1533
|
+
- 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))
|
|
1534
|
+
- 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
1535
|
|
|
1371
1536
|
## [0.45.2] - 2026-01-13
|
|
1372
1537
|
|
|
1373
1538
|
### Fixed
|
|
1374
1539
|
|
|
1375
|
-
- Extensions now load correctly in compiled Bun binary using `@mariozechner/jiti` fork with `virtualModules` support. Bundled packages (`@sinclair/typebox`, `@
|
|
1540
|
+
- 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
1541
|
|
|
1377
1542
|
## [0.45.1] - 2026-01-13
|
|
1378
1543
|
|
|
@@ -1384,79 +1549,79 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1384
1549
|
|
|
1385
1550
|
### Added
|
|
1386
1551
|
|
|
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/
|
|
1552
|
+
- 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))
|
|
1553
|
+
- `/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))
|
|
1554
|
+
- 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))
|
|
1555
|
+
- 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
1556
|
- Print mode JSON output now emits the session header as the first line.
|
|
1392
1557
|
|
|
1393
1558
|
## [0.44.0] - 2026-01-12
|
|
1394
1559
|
|
|
1395
1560
|
### Breaking Changes
|
|
1396
1561
|
|
|
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/
|
|
1562
|
+
- `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
1563
|
|
|
1399
1564
|
### Added
|
|
1400
1565
|
|
|
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/
|
|
1566
|
+
- 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))
|
|
1567
|
+
- 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))
|
|
1568
|
+
- 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))
|
|
1569
|
+
- 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))
|
|
1570
|
+
- 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
1571
|
|
|
1407
1572
|
### Fixed
|
|
1408
1573
|
|
|
1409
|
-
- Session selector now stays open when current folder has no sessions, allowing Tab to switch to "all" scope ([#661](https://github.com/
|
|
1574
|
+
- 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
1575
|
- Extensions using theme utilities like `getSettingsListTheme()` now work in dev mode with tsx
|
|
1411
1576
|
|
|
1412
1577
|
## [0.43.0] - 2026-01-11
|
|
1413
1578
|
|
|
1414
1579
|
### Breaking Changes
|
|
1415
1580
|
|
|
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/
|
|
1581
|
+
- 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))
|
|
1582
|
+
- Renamed `/branch` command to `/fork` ([#641](https://github.com/draht-dev/draht/issues/641))
|
|
1418
1583
|
- RPC: `branch` → `fork`, `get_branch_messages` → `get_fork_messages`
|
|
1419
1584
|
- SDK: `branch()` → `fork()`, `getBranchMessages()` → `getForkMessages()`
|
|
1420
1585
|
- AgentSession: `branch()` → `fork()`, `getUserMessagesForBranching()` → `getUserMessagesForForking()`
|
|
1421
1586
|
- Extension events: `session_before_branch` → `session_before_fork`, `session_branch` → `session_fork`
|
|
1422
1587
|
- 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/
|
|
1588
|
+
- `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
1589
|
|
|
1425
1590
|
### 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/
|
|
1591
|
+
- `/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
1592
|
- `SessionManager.list()` and `SessionManager.listAll()` accept optional `onProgress` callback for progress updates
|
|
1428
1593
|
- `SessionInfo.cwd` field containing the session's working directory (empty string for old sessions)
|
|
1429
1594
|
- `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/
|
|
1595
|
+
- `/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))
|
|
1596
|
+
- `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))
|
|
1597
|
+
- `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))
|
|
1598
|
+
- 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
1599
|
- 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/
|
|
1600
|
+
- `/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
1601
|
|
|
1437
1602
|
### Fixed
|
|
1438
1603
|
|
|
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/
|
|
1604
|
+
- Missing spacer between assistant message and text editor ([#655](https://github.com/draht-dev/draht/issues/655))
|
|
1605
|
+
- Session picker respects custom keybindings when using `--resume` ([#633](https://github.com/draht-dev/draht/pull/633) by [@aos](https://github.com/aos))
|
|
1606
|
+
- 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
1607
|
- 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/
|
|
1608
|
+
- 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
1609
|
|
|
1445
1610
|
## [0.42.5] - 2026-01-11
|
|
1446
1611
|
|
|
1447
1612
|
### Fixed
|
|
1448
1613
|
|
|
1449
|
-
- Reduced flicker by only re-rendering changed lines ([#617](https://github.com/
|
|
1614
|
+
- 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
1615
|
- 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/
|
|
1616
|
+
- TUI renders with wrong dimensions after suspend/resume if terminal was resized while suspended ([#599](https://github.com/draht-dev/draht/issues/599))
|
|
1617
|
+
- 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
1618
|
|
|
1454
1619
|
## [0.42.4] - 2026-01-10
|
|
1455
1620
|
|
|
1456
1621
|
### Fixed
|
|
1457
1622
|
|
|
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/
|
|
1623
|
+
- 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))
|
|
1624
|
+
- 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
1625
|
|
|
1461
1626
|
## [0.42.3] - 2026-01-10
|
|
1462
1627
|
|
|
@@ -1468,19 +1633,19 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1468
1633
|
|
|
1469
1634
|
### Added
|
|
1470
1635
|
|
|
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/
|
|
1636
|
+
- `/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))
|
|
1637
|
+
- `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))
|
|
1638
|
+
- `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
1639
|
|
|
1475
1640
|
### Fixed
|
|
1476
1641
|
|
|
1477
|
-
- Fixed LM Studio compatibility for OpenAI Responses tool strict mapping in the ai provider ([#598](https://github.com/
|
|
1642
|
+
- 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
1643
|
|
|
1479
1644
|
## [0.42.1] - 2026-01-09
|
|
1480
1645
|
|
|
1481
1646
|
### Fixed
|
|
1482
1647
|
|
|
1483
|
-
- Symlinked directories in `prompts/` folders are now followed when loading prompt templates ([#601](https://github.com/
|
|
1648
|
+
- 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
1649
|
|
|
1485
1650
|
## [0.42.0] - 2026-01-09
|
|
1486
1651
|
|
|
@@ -1521,32 +1686,32 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1521
1686
|
|
|
1522
1687
|
### Breaking Changes
|
|
1523
1688
|
|
|
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/
|
|
1689
|
+
- `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))
|
|
1690
|
+
- `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
1691
|
|
|
1527
1692
|
### Added
|
|
1528
1693
|
|
|
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/
|
|
1694
|
+
- `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))
|
|
1695
|
+
- `--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))
|
|
1696
|
+
- 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`
|
|
1697
|
+
- `user_bash` event for intercepting user `!`/`!!` commands, allowing extensions to redirect to remote systems ([#528](https://github.com/draht-dev/draht/issues/528))
|
|
1533
1698
|
- `setActiveTools()` in ExtensionAPI for dynamic tool management
|
|
1534
1699
|
- Built-in renderers used automatically for tool overrides without custom `renderCall`/`renderResult`
|
|
1535
1700
|
- `ssh.ts` example: remote tool execution via `--ssh user@host:/path`
|
|
1536
1701
|
- `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/
|
|
1702
|
+
- 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))
|
|
1703
|
+
- **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))
|
|
1704
|
+
- `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
1705
|
|
|
1541
1706
|
### Fixed
|
|
1542
1707
|
|
|
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/
|
|
1708
|
+
- 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))
|
|
1709
|
+
- 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))
|
|
1710
|
+
- 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))
|
|
1711
|
+
- 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))
|
|
1712
|
+
- 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))
|
|
1713
|
+
- 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))
|
|
1714
|
+
- `--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
1715
|
|
|
1551
1716
|
## [0.38.0] - 2026-01-08
|
|
1552
1717
|
|
|
@@ -1558,44 +1723,44 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1558
1723
|
- `ExtensionRunner` constructor now requires `runtime: ExtensionRuntime` as second parameter
|
|
1559
1724
|
- `ExtensionRunner.initialize()` signature changed from options object to positional params `(actions, contextActions, commandContextActions?, uiContext?)`
|
|
1560
1725
|
- `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/
|
|
1726
|
+
- 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
1727
|
|
|
1563
1728
|
### Added
|
|
1564
1729
|
|
|
1565
|
-
- `--no-extensions` flag to disable extension discovery while still allowing explicit `-e` paths ([#524](https://github.com/
|
|
1730
|
+
- `--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
1731
|
- 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/
|
|
1732
|
+
- `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))
|
|
1733
|
+
- `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))
|
|
1734
|
+
- 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
1735
|
- 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/
|
|
1736
|
+
- 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))
|
|
1737
|
+
- `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
1738
|
|
|
1574
1739
|
### Fixed
|
|
1575
1740
|
|
|
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/
|
|
1741
|
+
- 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))
|
|
1742
|
+
- 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))
|
|
1743
|
+
- 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))
|
|
1744
|
+
- 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
1745
|
- 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/
|
|
1746
|
+
- Key presses no longer dropped when input is batched over SSH ([#538](https://github.com/draht-dev/draht/issues/538))
|
|
1747
|
+
- Clipboard image support now works on Alpine Linux and other musl-based distros ([#533](https://github.com/draht-dev/draht/issues/533))
|
|
1583
1748
|
|
|
1584
1749
|
## [0.37.6] - 2026-01-06
|
|
1585
1750
|
|
|
1586
1751
|
### Added
|
|
1587
1752
|
|
|
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/
|
|
1753
|
+
- 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))
|
|
1754
|
+
- 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
1755
|
|
|
1591
1756
|
## [0.37.5] - 2026-01-06
|
|
1592
1757
|
|
|
1593
1758
|
### Added
|
|
1594
1759
|
|
|
1595
|
-
- ExtensionAPI: `setModel()`, `getThinkingLevel()`, `setThinkingLevel()` methods for extensions to change model and thinking level at runtime ([#509](https://github.com/
|
|
1760
|
+
- 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
1761
|
- Exported truncation utilities for custom tools: `truncateHead`, `truncateTail`, `truncateLine`, `formatSize`, `DEFAULT_MAX_BYTES`, `DEFAULT_MAX_LINES`, `TruncationOptions`, `TruncationResult`
|
|
1597
1762
|
- 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/
|
|
1763
|
+
- New example `preset.ts` demonstrating preset configurations with model/thinking/tools switching ([#347](https://github.com/draht-dev/draht/issues/347))
|
|
1599
1764
|
- Documentation for output truncation best practices in `docs/extensions.md`
|
|
1600
1765
|
- 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
1766
|
- `docs/tui.md`: Common Patterns section with copy-paste code for SelectList, BorderedLoader, SettingsList, setStatus, setWidget, setFooter
|
|
@@ -1607,8 +1772,8 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1607
1772
|
|
|
1608
1773
|
### Added
|
|
1609
1774
|
|
|
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/
|
|
1775
|
+
- 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))
|
|
1776
|
+
- 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
1777
|
|
|
1613
1778
|
### Changed
|
|
1614
1779
|
|
|
@@ -1617,31 +1782,31 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1617
1782
|
|
|
1618
1783
|
### Fixed
|
|
1619
1784
|
|
|
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/
|
|
1785
|
+
- 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))
|
|
1786
|
+
- 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
1787
|
|
|
1623
1788
|
## [0.37.3] - 2026-01-06
|
|
1624
1789
|
|
|
1625
1790
|
### Added
|
|
1626
1791
|
|
|
1627
|
-
- Extensions can now replace the footer with `ctx.ui.setFooter()`, see `examples/extensions/custom-footer.ts` ([#481](https://github.com/
|
|
1792
|
+
- 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
1793
|
- 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/
|
|
1794
|
+
- 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))
|
|
1795
|
+
- Extensions can now send user messages via `pi.sendUserMessage()` ([#483](https://github.com/draht-dev/draht/issues/483))
|
|
1631
1796
|
|
|
1632
1797
|
### Fixed
|
|
1633
1798
|
|
|
1634
1799
|
- 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/
|
|
1800
|
+
- 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))
|
|
1801
|
+
- 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
1802
|
|
|
1638
1803
|
## [0.37.2] - 2026-01-05
|
|
1639
1804
|
|
|
1640
1805
|
### Fixed
|
|
1641
1806
|
|
|
1642
|
-
- Extension directories in `settings.json` now respect `package.json` manifests, matching global extension behavior ([#480](https://github.com/
|
|
1807
|
+
- 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
1808
|
- 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/
|
|
1809
|
+
- 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
1810
|
|
|
1646
1811
|
## [0.37.1] - 2026-01-05
|
|
1647
1812
|
|
|
@@ -1653,35 +1818,35 @@ There are multiple SDK breaking changes since v0.49.3. For the quickest migratio
|
|
|
1653
1818
|
|
|
1654
1819
|
### Added
|
|
1655
1820
|
|
|
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/
|
|
1821
|
+
- 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))
|
|
1822
|
+
- 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))
|
|
1823
|
+
- 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
1824
|
|
|
1660
1825
|
### Changed
|
|
1661
1826
|
|
|
1662
1827
|
- OAuth login UI now uses dedicated dialog component with consistent borders
|
|
1663
1828
|
- 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/
|
|
1829
|
+
- 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
1830
|
|
|
1666
1831
|
### Fixed
|
|
1667
1832
|
|
|
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/
|
|
1833
|
+
- 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))
|
|
1834
|
+
- 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))
|
|
1835
|
+
- Extensions defined in `settings.json` were not loaded ([#463](https://github.com/draht-dev/draht/pull/463) by [@melihmucuk](https://github.com/melihmucuk))
|
|
1836
|
+
- 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))
|
|
1837
|
+
- 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))
|
|
1838
|
+
- 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))
|
|
1839
|
+
- 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
1840
|
|
|
1676
1841
|
## [0.36.0] - 2026-01-05
|
|
1677
1842
|
|
|
1678
1843
|
### Added
|
|
1679
1844
|
|
|
1680
|
-
- Experimental: OpenAI Codex OAuth provider support: access Codex models via ChatGPT Plus/Pro subscription using `/login openai-codex` ([#451](https://github.com/
|
|
1845
|
+
- 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
1846
|
|
|
1682
1847
|
## [0.35.0] - 2026-01-05
|
|
1683
1848
|
|
|
1684
|
-
This release unifies hooks and custom tools into a single "extensions" system and renames "slash commands" to "prompt templates". ([#454](https://github.com/
|
|
1849
|
+
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
1850
|
|
|
1686
1851
|
**Before migrating, read:**
|
|
1687
1852
|
|
|
@@ -1717,14 +1882,14 @@ Hooks and custom tools are now unified as **extensions**. Both were TypeScript m
|
|
|
1717
1882
|
|
|
1718
1883
|
1. **Direct files:** `extensions/*.ts` or `*.js` → loaded directly
|
|
1719
1884
|
2. **Subdirectory with index:** `extensions/myext/index.ts` → loaded as single extension
|
|
1720
|
-
3. **Subdirectory with package.json:** `extensions/myext/package.json` with `"
|
|
1885
|
+
3. **Subdirectory with package.json:** `extensions/myext/package.json` with `"draht"` field → loads declared paths
|
|
1721
1886
|
|
|
1722
1887
|
```json
|
|
1723
1888
|
// extensions/my-package/package.json
|
|
1724
1889
|
{
|
|
1725
1890
|
"name": "my-extension-package",
|
|
1726
1891
|
"dependencies": { "zod": "^3.0.0" },
|
|
1727
|
-
"
|
|
1892
|
+
"draht": {
|
|
1728
1893
|
"extensions": ["./src/main.ts", "./src/tools.ts"]
|
|
1729
1894
|
}
|
|
1730
1895
|
}
|
|
@@ -1749,16 +1914,16 @@ No recursion beyond one level. Complex packages must use the `package.json` mani
|
|
|
1749
1914
|
|
|
1750
1915
|
```typescript
|
|
1751
1916
|
// Before (hook)
|
|
1752
|
-
import type { HookAPI, HookContext } from "@
|
|
1917
|
+
import type { HookAPI, HookContext } from "@draht/coding-agent";
|
|
1753
1918
|
export default function (pi: HookAPI) { ... }
|
|
1754
1919
|
|
|
1755
1920
|
// Before (custom tool)
|
|
1756
|
-
import type { CustomToolFactory } from "@
|
|
1921
|
+
import type { CustomToolFactory } from "@draht/coding-agent";
|
|
1757
1922
|
const factory: CustomToolFactory = (pi) => ({ name: "my_tool", ... });
|
|
1758
1923
|
export default factory;
|
|
1759
1924
|
|
|
1760
1925
|
// After (both are now extensions)
|
|
1761
|
-
import type { ExtensionAPI } from "@
|
|
1926
|
+
import type { ExtensionAPI } from "@draht/coding-agent";
|
|
1762
1927
|
export default function (pi: ExtensionAPI) {
|
|
1763
1928
|
pi.on("tool_call", async (event, ctx) => { ... });
|
|
1764
1929
|
pi.registerTool({ name: "my_tool", ... });
|
|
@@ -1902,11 +2067,11 @@ pi --extension ./safety.ts -e ./todo.ts
|
|
|
1902
2067
|
|
|
1903
2068
|
### Added
|
|
1904
2069
|
|
|
1905
|
-
- Hook API: `ctx.ui.setTitle(title)` allows hooks to set the terminal window/tab title ([#446](https://github.com/
|
|
2070
|
+
- 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
2071
|
|
|
1907
2072
|
### Changed
|
|
1908
2073
|
|
|
1909
|
-
- Expanded keybinding documentation to list all 32 supported symbol keys with notes on ctrl+symbol behavior ([#450](https://github.com/
|
|
2074
|
+
- 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
2075
|
|
|
1911
2076
|
## [0.34.0] - 2026-01-04
|
|
1912
2077
|
|
|
@@ -1943,28 +2108,28 @@ pi --extension ./safety.ts -e ./todo.ts
|
|
|
1943
2108
|
|
|
1944
2109
|
### Changed
|
|
1945
2110
|
|
|
1946
|
-
- Removed image placeholders after copy & paste, replaced with inserting image file paths directly. ([#442](https://github.com/
|
|
2111
|
+
- 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
2112
|
|
|
1948
2113
|
### Fixed
|
|
1949
2114
|
|
|
1950
2115
|
- 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/
|
|
2116
|
+
- 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
2117
|
|
|
1953
2118
|
## [0.33.0] - 2026-01-04
|
|
1954
2119
|
|
|
1955
2120
|
### Breaking Changes
|
|
1956
2121
|
|
|
1957
|
-
- **Key detection functions removed from `@
|
|
2122
|
+
- **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
2123
|
|
|
1959
2124
|
### Added
|
|
1960
2125
|
|
|
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/
|
|
2126
|
+
- 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))
|
|
2127
|
+
- 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))
|
|
2128
|
+
- `/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
2129
|
|
|
1965
2130
|
### Fixed
|
|
1966
2131
|
|
|
1967
|
-
- Subagent example README referenced incorrect filename `subagent.ts` instead of `index.ts` ([#427](https://github.com/
|
|
2132
|
+
- 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
2133
|
|
|
1969
2134
|
## [0.32.3] - 2026-01-03
|
|
1970
2135
|
|
|
@@ -1972,14 +2137,14 @@ pi --extension ./safety.ts -e ./todo.ts
|
|
|
1972
2137
|
|
|
1973
2138
|
- `--list-models` no longer shows Google Vertex AI models without explicit authentication configured
|
|
1974
2139
|
- 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/
|
|
2140
|
+
- Version check URL typo preventing update notifications from working ([#423](https://github.com/draht-dev/draht/pull/423) by [@skuridin](https://github.com/skuridin))
|
|
2141
|
+
- 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
2142
|
|
|
1978
2143
|
## [0.32.2] - 2026-01-03
|
|
1979
2144
|
|
|
1980
2145
|
### Added
|
|
1981
2146
|
|
|
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/
|
|
2147
|
+
- `$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
2148
|
|
|
1984
2149
|
### Changed
|
|
1985
2150
|
|
|
@@ -1989,17 +2154,17 @@ pi --extension ./safety.ts -e ./todo.ts
|
|
|
1989
2154
|
- `steer()` and `followUp()` now expand file-based slash commands and error on hook commands (hook commands cannot be queued)
|
|
1990
2155
|
- `prompt()` accepts new `streamingBehavior` option (`"steer"` or `"followUp"`) to specify queueing behavior during streaming
|
|
1991
2156
|
- RPC `prompt` command now accepts optional `streamingBehavior` field
|
|
1992
|
-
([#420](https://github.com/
|
|
2157
|
+
([#420](https://github.com/draht-dev/draht/issues/420))
|
|
1993
2158
|
|
|
1994
2159
|
### Fixed
|
|
1995
2160
|
|
|
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/
|
|
2161
|
+
- 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
2162
|
|
|
1998
2163
|
## [0.32.1] - 2026-01-03
|
|
1999
2164
|
|
|
2000
2165
|
### Added
|
|
2001
2166
|
|
|
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/
|
|
2167
|
+
- 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
2168
|
|
|
2004
2169
|
### Fixed
|
|
2005
2170
|
|
|
@@ -2009,7 +2174,7 @@ pi --extension ./safety.ts -e ./todo.ts
|
|
|
2009
2174
|
|
|
2010
2175
|
### Breaking Changes
|
|
2011
2176
|
|
|
2012
|
-
- **Queue API replaced with steer/followUp**: The `queueMessage()` method has been split into two methods with different delivery semantics ([#403](https://github.com/
|
|
2177
|
+
- **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
2178
|
- `steer(text)`: Interrupts the agent mid-run (Enter while streaming). Delivered after current tool execution.
|
|
2014
2179
|
- `followUp(text)`: Waits until the agent finishes (Alt+Enter while streaming). Delivered only when agent stops.
|
|
2015
2180
|
- **Settings renamed**: `queueMode` setting renamed to `steeringMode`. Added new `followUpMode` setting. Old settings.json files are migrated automatically.
|
|
@@ -2030,31 +2195,31 @@ pi --extension ./safety.ts -e ./todo.ts
|
|
|
2030
2195
|
|
|
2031
2196
|
### Added
|
|
2032
2197
|
|
|
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/
|
|
2198
|
+
- 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))
|
|
2199
|
+
- 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))
|
|
2200
|
+
- 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))
|
|
2201
|
+
- 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
2202
|
- Alt+Enter keybind to queue follow-up messages while agent is streaming
|
|
2038
2203
|
- `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/
|
|
2204
|
+
- 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
2205
|
|
|
2041
2206
|
### Changed
|
|
2042
2207
|
|
|
2043
|
-
- Editor component now uses word wrapping instead of character-level wrapping for better readability ([#382](https://github.com/
|
|
2208
|
+
- 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
2209
|
|
|
2045
2210
|
### Fixed
|
|
2046
2211
|
|
|
2047
2212
|
- `/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/
|
|
2213
|
+
- 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
2214
|
- `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/
|
|
2215
|
+
- 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
2216
|
|
|
2052
2217
|
## [0.31.1] - 2026-01-02
|
|
2053
2218
|
|
|
2054
2219
|
### Fixed
|
|
2055
2220
|
|
|
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/
|
|
2221
|
+
- 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))
|
|
2222
|
+
- Type guard functions (`isBashToolResult`, etc.) now exported at runtime, not just in type declarations ([#397](https://github.com/draht-dev/draht/issues/397))
|
|
2058
2223
|
|
|
2059
2224
|
## [0.31.0] - 2026-01-02
|
|
2060
2225
|
|
|
@@ -2163,7 +2328,7 @@ See [docs/custom-tools.md](docs/custom-tools.md) and [examples/custom-tools/](ex
|
|
|
2163
2328
|
- `AppMessage` → `AgentMessage`
|
|
2164
2329
|
- `sessionFile` returns `string | undefined` (was `string | null`)
|
|
2165
2330
|
- `model` returns `Model | undefined` (was `Model | null`)
|
|
2166
|
-
- `Attachment` type removed. Use `ImageContent` from `@
|
|
2331
|
+
- `Attachment` type removed. Use `ImageContent` from `@draht/ai` instead. Add images directly to message content arrays.
|
|
2167
2332
|
|
|
2168
2333
|
**AgentSession API:**
|
|
2169
2334
|
|
|
@@ -2199,7 +2364,7 @@ See [docs/custom-tools.md](docs/custom-tools.md) and [examples/custom-tools/](ex
|
|
|
2199
2364
|
import {
|
|
2200
2365
|
discoverAuthStorage,
|
|
2201
2366
|
discoverModels,
|
|
2202
|
-
} from "@
|
|
2367
|
+
} from "@draht/coding-agent";
|
|
2203
2368
|
|
|
2204
2369
|
const authStorage = discoverAuthStorage(); // ~/.pi/agent/auth.json
|
|
2205
2370
|
const modelRegistry = discoverModels(authStorage); // + ~/.pi/agent/models.json
|
|
@@ -2292,15 +2457,15 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2292
2457
|
|
|
2293
2458
|
### Added
|
|
2294
2459
|
|
|
2295
|
-
- `ctx.ui.setStatus(key, text)` for hooks to display persistent status text in the footer ([#385](https://github.com/
|
|
2460
|
+
- `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
2461
|
- `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/
|
|
2462
|
+
- `/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))
|
|
2463
|
+
- HTML export now includes a tree visualization sidebar for navigating session branches ([#375](https://github.com/draht-dev/draht/issues/375))
|
|
2299
2464
|
- 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/
|
|
2465
|
+
- 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
2466
|
- HTML export syntax highlighting now uses theme colors and matches TUI rendering
|
|
2302
2467
|
- **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/
|
|
2468
|
+
- **`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
2469
|
|
|
2305
2470
|
### Changed
|
|
2306
2471
|
|
|
@@ -2311,21 +2476,21 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2311
2476
|
### Fixed
|
|
2312
2477
|
|
|
2313
2478
|
- 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/
|
|
2479
|
+
- 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))
|
|
2480
|
+
- **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))
|
|
2481
|
+
- **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
2482
|
- **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/
|
|
2483
|
+
- **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))
|
|
2484
|
+
- **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))
|
|
2485
|
+
- **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))
|
|
2486
|
+
- **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))
|
|
2487
|
+
- **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))
|
|
2488
|
+
- **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))
|
|
2489
|
+
- **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
2490
|
- **Session file validation**: `findMostRecentSession()` now validates session headers before returning, preventing non-session JSONL files from being loaded
|
|
2326
2491
|
- **Compaction error handling**: `generateSummary()` and `generateTurnPrefixSummary()` now throw on LLM errors instead of returning empty strings
|
|
2327
2492
|
- **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/
|
|
2493
|
+
- **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
2494
|
|
|
2330
2495
|
## [0.30.2] - 2025-12-26
|
|
2331
2496
|
|
|
@@ -2337,54 +2502,54 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2337
2502
|
|
|
2338
2503
|
### Fixed
|
|
2339
2504
|
|
|
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/
|
|
2505
|
+
- **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))
|
|
2506
|
+
- **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
2507
|
|
|
2343
2508
|
## [0.30.0] - 2025-12-25
|
|
2344
2509
|
|
|
2345
2510
|
### Breaking Changes
|
|
2346
2511
|
|
|
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/
|
|
2512
|
+
- **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
2513
|
|
|
2349
2514
|
### Added
|
|
2350
2515
|
|
|
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/
|
|
2516
|
+
- **`--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))
|
|
2517
|
+
- **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
2518
|
|
|
2354
2519
|
## [0.29.1] - 2025-12-25
|
|
2355
2520
|
|
|
2356
2521
|
### Added
|
|
2357
2522
|
|
|
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/
|
|
2523
|
+
- **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))
|
|
2524
|
+
- **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
2525
|
|
|
2361
2526
|
### Fixed
|
|
2362
2527
|
|
|
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/
|
|
2528
|
+
- **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
2529
|
|
|
2365
2530
|
## [0.29.0] - 2025-12-25
|
|
2366
2531
|
|
|
2367
2532
|
### Breaking Changes
|
|
2368
2533
|
|
|
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/
|
|
2534
|
+
- **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
2535
|
|
|
2371
2536
|
### Added
|
|
2372
2537
|
|
|
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/
|
|
2538
|
+
- **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))
|
|
2539
|
+
- **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))
|
|
2540
|
+
- **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
2541
|
|
|
2377
2542
|
### Fixed
|
|
2378
2543
|
|
|
2379
|
-
- **Readline-style Ctrl+W**: Now skips trailing whitespace before deleting the preceding word, matching standard readline behavior. ([#306](https://github.com/
|
|
2544
|
+
- **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
2545
|
|
|
2381
2546
|
## [0.28.0] - 2025-12-25
|
|
2382
2547
|
|
|
2383
2548
|
### Changed
|
|
2384
2549
|
|
|
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/
|
|
2550
|
+
- **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
2551
|
|
|
2387
|
-
- **SDK API changes** ([#296](https://github.com/
|
|
2552
|
+
- **SDK API changes** ([#296](https://github.com/draht-dev/draht/issues/296)):
|
|
2388
2553
|
|
|
2389
2554
|
- Added `AuthStorage` class for credential management (API keys and OAuth tokens)
|
|
2390
2555
|
- Added `ModelRegistry` class for model discovery and API key resolution
|
|
@@ -2392,20 +2557,20 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2392
2557
|
- `createAgentSession()` now accepts `authStorage` and `modelRegistry` options
|
|
2393
2558
|
- Removed `configureOAuthStorage()`, `defaultGetApiKey()`, `findModel()`, `discoverAvailableModels()`
|
|
2394
2559
|
- Removed `getApiKey` callback option (use `AuthStorage.setRuntimeApiKey()` for runtime overrides)
|
|
2395
|
-
- Use `getModel()` from `@
|
|
2560
|
+
- Use `getModel()` from `@draht/ai` for built-in models, `modelRegistry.find()` for custom models + built-in models
|
|
2396
2561
|
- See updated [SDK documentation](docs/sdk.md) and [README](README.md)
|
|
2397
2562
|
|
|
2398
|
-
- **Settings changes**: Removed `apiKeys` from `settings.json`. Use `auth.json` instead. ([#296](https://github.com/
|
|
2563
|
+
- **Settings changes**: Removed `apiKeys` from `settings.json`. Use `auth.json` instead. ([#296](https://github.com/draht-dev/draht/issues/296))
|
|
2399
2564
|
|
|
2400
2565
|
### Fixed
|
|
2401
2566
|
|
|
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/
|
|
2567
|
+
- **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
2568
|
|
|
2404
2569
|
## [0.27.9] - 2025-12-24
|
|
2405
2570
|
|
|
2406
2571
|
### Fixed
|
|
2407
2572
|
|
|
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/
|
|
2573
|
+
- **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
2574
|
|
|
2410
2575
|
## [0.27.8] - 2025-12-24
|
|
2411
2576
|
|
|
@@ -2417,7 +2582,7 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2417
2582
|
|
|
2418
2583
|
### Fixed
|
|
2419
2584
|
|
|
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/
|
|
2585
|
+
- **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
2586
|
|
|
2422
2587
|
## [0.27.6] - 2025-12-24
|
|
2423
2588
|
|
|
@@ -2444,7 +2609,7 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2444
2609
|
|
|
2445
2610
|
### Fixed
|
|
2446
2611
|
|
|
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/
|
|
2612
|
+
- **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
2613
|
|
|
2449
2614
|
## [0.27.4] - 2025-12-24
|
|
2450
2615
|
|
|
@@ -2456,18 +2621,18 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2456
2621
|
|
|
2457
2622
|
### Added
|
|
2458
2623
|
|
|
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/
|
|
2624
|
+
- **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
2625
|
|
|
2461
2626
|
### Fixed
|
|
2462
2627
|
|
|
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/
|
|
2628
|
+
- **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))
|
|
2629
|
+
- **`--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
2630
|
|
|
2466
2631
|
## [0.27.2] - 2025-12-23
|
|
2467
2632
|
|
|
2468
2633
|
### Added
|
|
2469
2634
|
|
|
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/
|
|
2635
|
+
- **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
2636
|
|
|
2472
2637
|
## [0.27.1] - 2025-12-22
|
|
2473
2638
|
|
|
@@ -2483,31 +2648,31 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2483
2648
|
|
|
2484
2649
|
### Breaking
|
|
2485
2650
|
|
|
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/
|
|
2651
|
+
- **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
2652
|
|
|
2488
2653
|
### Added
|
|
2489
2654
|
|
|
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/
|
|
2655
|
+
- **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
2656
|
|
|
2492
2657
|
### Fixed
|
|
2493
2658
|
|
|
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/
|
|
2659
|
+
- **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
2660
|
|
|
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/
|
|
2661
|
+
- **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
2662
|
|
|
2498
2663
|
## [0.26.1] - 2025-12-22
|
|
2499
2664
|
|
|
2500
2665
|
### Fixed
|
|
2501
2666
|
|
|
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/
|
|
2667
|
+
- **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
2668
|
|
|
2504
2669
|
## [0.26.0] - 2025-12-22
|
|
2505
2670
|
|
|
2506
2671
|
### Added
|
|
2507
2672
|
|
|
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/
|
|
2673
|
+
- **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
2674
|
|
|
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/
|
|
2675
|
+
- **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
2676
|
|
|
2512
2677
|
- **SettingsManager static factories**: `SettingsManager.create(cwd?, agentDir?)` for file-based settings, `SettingsManager.inMemory(settings?)` for testing. Added `applyOverrides()` for programmatic overrides.
|
|
2513
2678
|
|
|
@@ -2517,21 +2682,21 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2517
2682
|
|
|
2518
2683
|
### Fixed
|
|
2519
2684
|
|
|
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/
|
|
2685
|
+
- **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
2686
|
|
|
2522
2687
|
## [0.25.3] - 2025-12-21
|
|
2523
2688
|
|
|
2524
2689
|
### Added
|
|
2525
2690
|
|
|
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/
|
|
2691
|
+
- **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
2692
|
|
|
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/
|
|
2693
|
+
- **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
2694
|
|
|
2530
|
-
- **Process suspension**: Press `Ctrl+Z` to suspend pi and return to the shell. Resume with `fg` as usual. ([#267](https://github.com/
|
|
2695
|
+
- **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
2696
|
|
|
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/
|
|
2697
|
+
- **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
2698
|
|
|
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/
|
|
2699
|
+
- **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
2700
|
|
|
2536
2701
|
## [0.25.2] - 2025-12-21
|
|
2537
2702
|
|
|
@@ -2551,7 +2716,7 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2551
2716
|
|
|
2552
2717
|
### Added
|
|
2553
2718
|
|
|
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/
|
|
2719
|
+
- **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
2720
|
|
|
2556
2721
|
- **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
2722
|
|
|
@@ -2559,13 +2724,13 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2559
2724
|
|
|
2560
2725
|
### Changed
|
|
2561
2726
|
|
|
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/
|
|
2727
|
+
- **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
2728
|
|
|
2564
2729
|
### Fixed
|
|
2565
2730
|
|
|
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/
|
|
2731
|
+
- **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
2732
|
|
|
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/
|
|
2733
|
+
- **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
2734
|
|
|
2570
2735
|
- **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
2736
|
|
|
@@ -2579,7 +2744,7 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2579
2744
|
|
|
2580
2745
|
### Fixed
|
|
2581
2746
|
|
|
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/
|
|
2747
|
+
- **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
2748
|
|
|
2584
2749
|
## [0.24.3] - 2025-12-19
|
|
2585
2750
|
|
|
@@ -2591,45 +2756,45 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2591
2756
|
|
|
2592
2757
|
### Fixed
|
|
2593
2758
|
|
|
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/
|
|
2759
|
+
- **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
2760
|
|
|
2596
2761
|
## [0.24.1] - 2025-12-19
|
|
2597
2762
|
|
|
2598
2763
|
### Added
|
|
2599
2764
|
|
|
2600
|
-
- **OAuth and model config exports**: Scripts using `AgentSession` directly can now import `getAvailableModels`, `getApiKeyForModel`, `findModel`, `login`, `logout`, and `getOAuthProviders` from `@
|
|
2765
|
+
- **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
2766
|
|
|
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/
|
|
2767
|
+
- **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
2768
|
|
|
2604
2769
|
### Fixed
|
|
2605
2770
|
|
|
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/
|
|
2771
|
+
- **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
2772
|
|
|
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/
|
|
2773
|
+
- **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
2774
|
|
|
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/
|
|
2775
|
+
- **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
2776
|
|
|
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/
|
|
2777
|
+
- **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
2778
|
|
|
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/
|
|
2779
|
+
- **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
2780
|
|
|
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/
|
|
2781
|
+
- **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
2782
|
|
|
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/
|
|
2783
|
+
- **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
2784
|
|
|
2620
2785
|
## [0.24.0] - 2025-12-19
|
|
2621
2786
|
|
|
2622
2787
|
### Added
|
|
2623
2788
|
|
|
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/
|
|
2789
|
+
- **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
2790
|
|
|
2626
|
-
- **`getMarkdownTheme()` export**: Custom tools can now import `getMarkdownTheme()` from `@
|
|
2791
|
+
- **`getMarkdownTheme()` export**: Custom tools can now import `getMarkdownTheme()` from `@draht/coding-agent` to use the same markdown styling as the main UI.
|
|
2627
2792
|
|
|
2628
2793
|
- **`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
2794
|
|
|
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/
|
|
2795
|
+
- **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
2796
|
|
|
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/
|
|
2797
|
+
- **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
2798
|
|
|
2634
2799
|
- **`/hotkeys` command**: Shows all keyboard shortcuts in a formatted table.
|
|
2635
2800
|
|
|
@@ -2639,19 +2804,19 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2639
2804
|
|
|
2640
2805
|
- **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
2806
|
|
|
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/
|
|
2807
|
+
- **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
2808
|
|
|
2644
2809
|
### Fixed
|
|
2645
2810
|
|
|
2646
2811
|
- **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
2812
|
|
|
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/
|
|
2813
|
+
- **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
2814
|
|
|
2650
2815
|
### Breaking Changes
|
|
2651
2816
|
|
|
2652
2817
|
- **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
2818
|
|
|
2654
|
-
- **Hook `tool_result` event restructured**: The `ToolResultEvent` now exposes full tool result data instead of just text. ([#233](https://github.com/
|
|
2819
|
+
- **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
2820
|
- Removed: `result: string` field
|
|
2656
2821
|
- Added: `content: (TextContent | ImageContent)[]` - full content array
|
|
2657
2822
|
- Added: `details: unknown` - tool-specific details (typed per tool via discriminated union on `toolName`)
|
|
@@ -2664,15 +2829,15 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2664
2829
|
|
|
2665
2830
|
### Added
|
|
2666
2831
|
|
|
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/
|
|
2832
|
+
- **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
2833
|
|
|
2669
2834
|
- **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
2835
|
|
|
2671
2836
|
### Fixed
|
|
2672
2837
|
|
|
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/
|
|
2838
|
+
- **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
2839
|
|
|
2675
|
-
- **Google baseUrl configuration**: Google provider now respects `baseUrl` configuration for custom endpoints or API proxies. ([#216](https://github.com/
|
|
2840
|
+
- **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
2841
|
|
|
2677
2842
|
- **Google provider FinishReason**: Added handling for new `IMAGE_RECITATION` and `IMAGE_OTHER` finish reasons. Upgraded @google/genai to 1.34.0.
|
|
2678
2843
|
|
|
@@ -2695,7 +2860,7 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2695
2860
|
- `rpc.md`: Added missing `hook_error` event documentation
|
|
2696
2861
|
- `README.md`: Complete settings table, condensed philosophy section, standardized OAuth docs
|
|
2697
2862
|
|
|
2698
|
-
- Hooks loader now supports same import aliases as custom tools (`@sinclair/typebox`, `@
|
|
2863
|
+
- Hooks loader now supports same import aliases as custom tools (`@sinclair/typebox`, `@draht/ai`, `@draht/tui`, `@draht/coding-agent`).
|
|
2699
2864
|
|
|
2700
2865
|
### Breaking Changes
|
|
2701
2866
|
|
|
@@ -2705,11 +2870,11 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2705
2870
|
|
|
2706
2871
|
### Fixed
|
|
2707
2872
|
|
|
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/
|
|
2873
|
+
- 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
2874
|
|
|
2710
2875
|
- Detect image MIME type via file magic (read tool and `@file` attachments), not filename extension.
|
|
2711
2876
|
|
|
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/
|
|
2877
|
+
- 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
2878
|
|
|
2714
2879
|
## [0.23.1] - 2025-12-17
|
|
2715
2880
|
|
|
@@ -2717,13 +2882,13 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2717
2882
|
|
|
2718
2883
|
- 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
2884
|
|
|
2720
|
-
- Fixed custom tools failing to load from `~/.pi/agent/tools/` when pi is installed globally. Module imports (`@sinclair/typebox`, `@
|
|
2885
|
+
- 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
2886
|
|
|
2722
2887
|
## [0.23.0] - 2025-12-17
|
|
2723
2888
|
|
|
2724
2889
|
### Added
|
|
2725
2890
|
|
|
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/
|
|
2891
|
+
- **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
2892
|
|
|
2728
2893
|
- **Hook and tool examples**: Added `examples/hooks/` and `examples/custom-tools/` with working examples. Examples are now bundled in npm and binary releases.
|
|
2729
2894
|
|
|
@@ -2741,7 +2906,7 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2741
2906
|
|
|
2742
2907
|
### Added
|
|
2743
2908
|
|
|
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/
|
|
2909
|
+
- `--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
2910
|
|
|
2746
2911
|
### Fixed
|
|
2747
2912
|
|
|
@@ -2751,25 +2916,25 @@ Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md)
|
|
|
2751
2916
|
|
|
2752
2917
|
### Added
|
|
2753
2918
|
|
|
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/
|
|
2919
|
+
- **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
2920
|
|
|
2756
2921
|
### Changed
|
|
2757
2922
|
|
|
2758
2923
|
- **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
2924
|
|
|
2760
|
-
- Updated `@
|
|
2925
|
+
- 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
2926
|
|
|
2762
2927
|
### Fixed
|
|
2763
2928
|
|
|
2764
|
-
- Fixed editor text being cleared during compaction. Text typed while compaction is running is now preserved. ([#179](https://github.com/
|
|
2929
|
+
- 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
2930
|
- 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/
|
|
2931
|
+
- `/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
2932
|
|
|
2768
2933
|
## [0.22.2] - 2025-12-15
|
|
2769
2934
|
|
|
2770
2935
|
### Changed
|
|
2771
2936
|
|
|
2772
|
-
- Updated `@
|
|
2937
|
+
- Updated `@draht/ai` with interleaved thinking enabled by default for Anthropic Claude 4 models.
|
|
2773
2938
|
|
|
2774
2939
|
## [0.22.1] - 2025-12-15
|
|
2775
2940
|
|
|
@@ -2777,13 +2942,13 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2777
2942
|
|
|
2778
2943
|
### Changed
|
|
2779
2944
|
|
|
2780
|
-
- Updated `@
|
|
2945
|
+
- Updated `@draht/ai` with interleaved thinking support for Anthropic models.
|
|
2781
2946
|
|
|
2782
2947
|
## [0.22.0] - 2025-12-15
|
|
2783
2948
|
|
|
2784
2949
|
### Added
|
|
2785
2950
|
|
|
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/
|
|
2951
|
+
- **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
2952
|
|
|
2788
2953
|
### Fixed
|
|
2789
2954
|
|
|
@@ -2793,15 +2958,15 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2793
2958
|
|
|
2794
2959
|
### Added
|
|
2795
2960
|
|
|
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/
|
|
2961
|
+
- **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
2962
|
|
|
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/
|
|
2963
|
+
- **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
2964
|
|
|
2800
2965
|
### Fixed
|
|
2801
2966
|
|
|
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/
|
|
2967
|
+
- 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
2968
|
|
|
2804
|
-
- Fixed double blank lines rendering after markdown code blocks ([#173](https://github.com/
|
|
2969
|
+
- 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
2970
|
|
|
2806
2971
|
## [0.20.1] - 2025-12-13
|
|
2807
2972
|
|
|
@@ -2829,25 +2994,25 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2829
2994
|
|
|
2830
2995
|
### Added
|
|
2831
2996
|
|
|
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/
|
|
2997
|
+
- **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
2998
|
|
|
2834
|
-
- **Version flag**: Added `--version` / `-v` flag to display the current version and exit. ([#170](https://github.com/
|
|
2999
|
+
- **Version flag**: Added `--version` / `-v` flag to display the current version and exit. ([#170](https://github.com/draht-dev/draht/pull/170))
|
|
2835
3000
|
|
|
2836
3001
|
## [0.18.2] - 2025-12-11
|
|
2837
3002
|
|
|
2838
3003
|
### Added
|
|
2839
3004
|
|
|
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/
|
|
3005
|
+
- **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
3006
|
|
|
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/
|
|
3007
|
+
- **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
3008
|
|
|
2844
3009
|
### Fixed
|
|
2845
3010
|
|
|
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/
|
|
3011
|
+
- **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
3012
|
|
|
2848
3013
|
- **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
3014
|
|
|
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/
|
|
3015
|
+
- **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
3016
|
|
|
2852
3017
|
## [0.18.1] - 2025-12-10
|
|
2853
3018
|
|
|
@@ -2857,13 +3022,13 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2857
3022
|
|
|
2858
3023
|
### Fixed
|
|
2859
3024
|
|
|
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/
|
|
3025
|
+
- 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
3026
|
|
|
2862
3027
|
## [0.18.0] - 2025-12-10
|
|
2863
3028
|
|
|
2864
3029
|
### Added
|
|
2865
3030
|
|
|
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/
|
|
3031
|
+
- **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
3032
|
|
|
2868
3033
|
- **`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
3034
|
|
|
@@ -2901,7 +3066,7 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2901
3066
|
|
|
2902
3067
|
### Breaking Changes
|
|
2903
3068
|
|
|
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/
|
|
3069
|
+
- **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
3070
|
|
|
2906
3071
|
### Changed
|
|
2907
3072
|
|
|
@@ -2911,7 +3076,7 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2911
3076
|
|
|
2912
3077
|
### Changed
|
|
2913
3078
|
|
|
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/
|
|
3079
|
+
- **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
3080
|
|
|
2916
3081
|
## [0.14.2] - 2025-12-08
|
|
2917
3082
|
|
|
@@ -2937,19 +3102,19 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2937
3102
|
|
|
2938
3103
|
### Added
|
|
2939
3104
|
|
|
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/
|
|
3105
|
+
- **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
3106
|
|
|
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/
|
|
3107
|
+
- **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
3108
|
|
|
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/
|
|
3109
|
+
- **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
3110
|
|
|
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/
|
|
3111
|
+
- **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
3112
|
|
|
2948
3113
|
## [0.13.2] - 2025-12-07
|
|
2949
3114
|
|
|
2950
3115
|
### Changed
|
|
2951
3116
|
|
|
2952
|
-
- **Tool output truncation**: All tools now enforce consistent truncation limits with actionable notices for the LLM. ([#134](https://github.com/
|
|
3117
|
+
- **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
3118
|
- **Limits**: 2000 lines OR 50KB (whichever hits first), never partial lines
|
|
2954
3119
|
- **read**: Shows `[Showing lines X-Y of Z. Use offset=N to continue]`. If first line exceeds 50KB, suggests bash command
|
|
2955
3120
|
- **bash**: Tail truncation with temp file. Shows `[Showing lines X-Y of Z. Full output: /tmp/...]`
|
|
@@ -2993,20 +3158,20 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2993
3158
|
|
|
2994
3159
|
### Fixed
|
|
2995
3160
|
|
|
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/
|
|
3161
|
+
- **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))
|
|
3162
|
+
- **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
3163
|
|
|
2999
3164
|
### Added
|
|
3000
3165
|
|
|
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/
|
|
3166
|
+
- **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))
|
|
3167
|
+
- **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))
|
|
3168
|
+
- **`/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
3169
|
|
|
3005
3170
|
## [0.12.11] - 2025-12-05
|
|
3006
3171
|
|
|
3007
3172
|
### Changed
|
|
3008
3173
|
|
|
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/
|
|
3174
|
+
- **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
3175
|
|
|
3011
3176
|
### Fixed
|
|
3012
3177
|
|
|
@@ -3017,9 +3182,9 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
3017
3182
|
|
|
3018
3183
|
### Added
|
|
3019
3184
|
|
|
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/
|
|
3185
|
+
- **`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))
|
|
3186
|
+
- **`--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))
|
|
3187
|
+
- **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
3188
|
|
|
3024
3189
|
## [0.12.10] - 2025-12-04
|
|
3025
3190
|
|
|
@@ -3031,7 +3196,7 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
3031
3196
|
|
|
3032
3197
|
### Added
|
|
3033
3198
|
|
|
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/
|
|
3199
|
+
- **`/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
3200
|
|
|
3036
3201
|
## [0.12.8] - 2025-12-04
|
|
3037
3202
|
|
|
@@ -3041,7 +3206,7 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
3041
3206
|
|
|
3042
3207
|
### Added
|
|
3043
3208
|
|
|
3044
|
-
- **Context Compaction**: Long sessions can now be compacted to reduce context usage while preserving recent conversation history. ([#92](https://github.com/
|
|
3209
|
+
- **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
3210
|
- `/compact [instructions]`: Manually compact context with optional custom instructions for the summary
|
|
3046
3211
|
- `/autocompact`: Toggle automatic compaction when context exceeds threshold
|
|
3047
3212
|
- Compaction summarizes older messages while keeping recent messages (default 20k tokens) verbatim
|
|
@@ -3055,11 +3220,11 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
3055
3220
|
|
|
3056
3221
|
### Added
|
|
3057
3222
|
|
|
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/
|
|
3223
|
+
- **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
3224
|
|
|
3060
3225
|
### Fixed
|
|
3061
3226
|
|
|
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/
|
|
3227
|
+
- **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
3228
|
|
|
3064
3229
|
## [0.12.4] - 2025-12-02
|
|
3065
3230
|
|
|
@@ -3226,7 +3391,7 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
3226
3391
|
|
|
3227
3392
|
### Added
|
|
3228
3393
|
|
|
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/
|
|
3394
|
+
- 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
3395
|
|
|
3231
3396
|
### Changed
|
|
3232
3397
|
|