hablas-ai 2.1.2 → 2.2.1

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 CHANGED
@@ -1,25 +1,26 @@
1
1
  # Changelog
2
2
 
3
- ## [2.1.2] — 2026-06-12 · Full-Read Context Fix
3
+ ## [2.2.1] — 2026-06-12 · Runtime Persistence and Web-Search Crash Fix
4
4
 
5
5
  ### Fixed
6
- - `read_file` results are now preserved in full inside the model context instead of being aggressively truncated.
7
- - This prevents the agent from rereading the same large file just because it only saw the first chunk in context.
8
- - Tool result boxes now summarize the first meaningful line instead of flattening huge file bodies into unreadable one-liners.
6
+ - Restored the missing project-state import in the interactive runtime that caused `ensureProjectStateDir is not defined` at startup.
7
+ - Fixed the web-search follow-up crash path by restoring the missing large-web token constant and the associated output-preservation path.
8
+ - Project session state is now saved after slash commands as well as normal turns.
9
+ - Read-cache preservation is now actually written back after successful `read_file` operations and invalidated when related files change.
9
10
 
10
- ## [2.1.1] — 2026-06-12 · Thinking, Streaming, and Read-Dedupe UX Fix
11
+ ## [2.2.0] — 2026-06-12 · Stateful Runtime and Thinking Hooks
11
12
 
12
13
  ### Added
13
- - visible thinking state while Hablas is waiting on the model
14
- - real streaming for direct text-only turns
15
- - stronger shell completion and history workflow kept active
14
+ - project-local `.hablas/session.json` persistence for workspace session state
15
+ - larger default history and context budgets for the rebuilt runtime
16
+ - engine hooks for model-start / model-stop so the UI can show real thinking states
16
17
 
17
18
  ### Changed
18
- - tool cards were rebuilt again for cleaner boxed output
19
- - assistant rendering is more consistent between direct and tool-driven turns
20
- - the prompt was tightened for shorter, more natural casual and identity responses
19
+ - direct and non-interactive sessions now use the configured `contextBudget` instead of falling back to the old small default
20
+ - project sessions are automatically saved after turns and restored on the same workspace
21
+ - web-search and large file context handling were tightened so useful output survives into model context better
21
22
 
22
23
  ### Fixed
23
- - repeated `read_file` calls for the same path in the same turn are now deduplicated and reused from cache unless the file changed
24
- - raw tool-markup leakage is sanitized more aggressively
25
- - implementation and image/wallpaper requests remain wired to the stronger tool path
24
+ - `LARGE_WEB_RESULT_TOKENS is not defined` crash
25
+ - thinking hooks are now wired at the engine level instead of existing only in the UI layer
26
+ - repeated file reads are less likely to happen because full `read_file` context is preserved and cached more consistently
package/README.md CHANGED
@@ -135,6 +135,8 @@ This means Hablas can:
135
135
  - `#file` reference completion
136
136
  - persisted command history
137
137
  - rebuilt Apple-slate terminal styling
138
+ - visible thinking state while the model is working
139
+ - direct-turn streaming when the provider supports it
138
140
 
139
141
  ---
140
142
 
@@ -227,6 +229,15 @@ Current automated checks cover:
227
229
 
228
230
  ---
229
231
 
232
+ ## Memory and state
233
+
234
+ Hablas now uses larger defaults for the rebuilt runtime and also keeps a project-local state folder:
235
+ - larger message history budget
236
+ - larger context budget
237
+ - project-local `.hablas/session.json` persistence for the current workspace
238
+
239
+ This is separate from the user-home config directory used for global config/history.
240
+
230
241
  ## Rebuild status
231
242
 
232
243
  This branch is under an intentional **full rebuild** of the stable product surface.