This repository was archived by the owner on Mar 7, 2026. It is now read-only.
Commit 569f376
feat(ffi): add thinking extraction, structured logging, and session retry
- Extract inline thinking tags (<think>, <thinking>, <analysis>,
<reflection>, <inner_monologue>) from model responses and route them
to the thinking card via on_thinking(), preventing them from appearing
as visible response text
- Forward API-level reasoning_content (o1, o3) to thinking card
- Add tracing-android integration with per-crate log filtering: noisy
HTTP/TLS crates (hyper, reqwest, rustls) suppressed to WARN, session
events logged at INFO with structured fields (tool names, durations,
response sizes, iteration counts)
- Add init_logging() UniFFI export called at app startup
- Fix reqwest TLS: change rustls-tls to rustls-tls-webpki-roots to
bundle Mozilla root certificates (Android NDK has no system cert store)
- Add ensureSession() retry in TerminalViewModel to recover from
session_start race conditions after ADB hot-swap
- Fix tool routing: clean up phantom tools, add FfiWebSearchTool wrapper,
fix web_search name mismatch in build_android_tool_descs
- Add 12 unit tests for extract_thinking_from_text
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2481eff commit 569f376
File tree
7 files changed
+523
-84
lines changed- app/src/main/java/com/zeroclaw/android
- ui/screen/terminal
- zeroclaw-android
- zeroclaw-ffi
- src
7 files changed
+523
-84
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
| |||
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
133 | 138 | | |
134 | 139 | | |
135 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
136 | 167 | | |
137 | 168 | | |
138 | 169 | | |
| |||
362 | 393 | | |
363 | 394 | | |
364 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
365 | 401 | | |
366 | 402 | | |
367 | 403 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
45 | 78 | | |
46 | 79 | | |
47 | 80 | | |
| |||
0 commit comments