Commit ef75217
committed
Address PR #476 review comments (10 fixes)
- ToolSettingsView (greptile P1): mark `isAtEnd` getter `mutating get`
to fix Swift compile error from calling mutating `skipWhitespace()`.
- RunAnywhere+TextGeneration (greptile P2): remove dead `Task.isCancelled`
check in C-callback token path — always false (no ambient task);
real cancellation already flows via `cancel_requested` atomic in C++.
- tool_calling.cpp (greptile P2): flat-args fallback now emits numbers,
booleans, and null verbatim via `is_json_scalar_literal()` instead of
stringifying everything. `{"count":5}` stays `{"count":5}`.
- RunAnywhere+TextGeneration (greptile P2): add `NOTE` doc comment to
`ThinkingContentParser.extract` documenting single-`<think>`-block
behavior.
- CppBridge shutdown (greptile P2): replace Task.detached + semaphore.wait
with DispatchQueue.global().async + Task + semaphore to avoid
cooperative thread-pool starvation. Synchronous shutdown() signature
preserved, race fix retained.
- lifecycle_manager.cpp (coderabbit Critical): auto-unload now mirrors
the existing unload fence — uses unique_lock, waits on
service_cv for refcount==0, stores nullptr into atomic before
destroy_fn, null-checks old_service.
- RunAnywhere+TextGeneration (coderabbit Critical): remove the second
error-handling path — C++ errorCallback already consumes the retained
context via takeRetainedValue, so the duplicate release + finish +
markFailed caused double-release/double-finish.
- BenchmarkViewModel (coderabbit Major): stop coercing empty
selectedModelIds to nil in runBenchmarks() — nil was interpreted as
"no filter → run all", so "None" inverted behavior.
- BenchmarkDashboardView (coderabbit Minor): fix copy inconsistency —
header text now says "gradient images" to match per-row label.
- build-ios.sh (coderabbit Major): replace fragile ar-extract-repack
(loses members with shared basenames) with in-place `ar -d` to remove
flag.cc.o/init.cc.o specifically.1 parent 698fe6f commit ef75217
8 files changed
Lines changed: 85 additions & 38 deletions
File tree
- examples/ios/RunAnywhereAI/RunAnywhereAI/Features
- Benchmarks
- ViewModels
- Views
- Settings
- sdk
- runanywhere-commons
- scripts
- src
- core/capabilities
- features/llm
- runanywhere-swift/Sources/RunAnywhere
- Foundation/Bridge
- Public/Extensions/LLM
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | 114 | | |
116 | 115 | | |
117 | | - | |
| 116 | + | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
439 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
440 | 442 | | |
441 | 443 | | |
442 | 444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
737 | | - | |
| 737 | + | |
738 | 738 | | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
| 739 | + | |
| 740 | + | |
749 | 741 | | |
750 | 742 | | |
751 | 743 | | |
| |||
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
192 | | - | |
193 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
194 | 201 | | |
195 | 202 | | |
196 | 203 | | |
197 | | - | |
198 | 204 | | |
199 | 205 | | |
200 | 206 | | |
| |||
Lines changed: 46 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
567 | 603 | | |
568 | 604 | | |
569 | 605 | | |
| |||
719 | 755 | | |
720 | 756 | | |
721 | 757 | | |
722 | | - | |
723 | | - | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
724 | 768 | | |
725 | 769 | | |
726 | 770 | | |
| |||
Lines changed: 17 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
190 | 195 | | |
191 | 196 | | |
192 | 197 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
201 | 208 | | |
202 | 209 | | |
203 | 210 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 234 | + | |
238 | 235 | | |
239 | 236 | | |
240 | 237 | | |
| |||
258 | 255 | | |
259 | 256 | | |
260 | 257 | | |
261 | | - | |
262 | 258 | | |
263 | 259 | | |
264 | 260 | | |
| |||
316 | 312 | | |
317 | 313 | | |
318 | 314 | | |
| 315 | + | |
319 | 316 | | |
320 | 317 | | |
321 | 318 | | |
| |||
0 commit comments