Stitch 0.4.4: saved chats, model guide, Thinai, sturdier web search

Ideas ported from Thinai (github.com/Aravindargutus/Thinai, MIT); none of
its Flutter code is used directly.

- Chats panel: every conversation saved (ChatStore); new chat, switch,
  search, rename, delete, delete all. Fixes B-38: AI replies were never
  saved and the chat screen started empty after every restart.
- Model guide: 20 real .litertlm models, the phone's RAM/CPU/storage,
  use-case chips, fit and speed estimates (ModelGuide).
- Thinai preset; any AI server on 127.0.0.1 gets short instructions and
  the 33 phone tools instead of 70.
- Web search: DuckDuckGo Lite/HTML then Bing, challenge-page detection,
  10-minute engine rest, relevance filter (B-37).
- Other people's text wrapped with a random id and control tokens
  defused (B-40).
- Wake-phrase service no longer crashes the app after an update or
  reboot; a one-tap notice resumes it (B-39, pre-existing since 0.4.0).
- 37 new tests (87 -> 124); fake AI test server kept in tools-dev/.
- Docs: DEVELOPMENT_HISTORY, README, STAGE_A2_CHECKLIST section 6.
This commit is contained in:
thekhalidsha committed 2026-09-28 11:19:58 +05:30
1 parent a1d593a4cc
commit 372190f8ec
29 files changed
+2436 -167

No files matched your search

@@ -0,0 +1,7 @@
<!DOCTYPE html>
<!-- A made-up page in the shape of DuckDuckGo's "anomaly" challenge (HTTP 202), which it serves instead
of results after a burst of questions. Written for this test, not copied. -->
<html><head><title>DuckDuckGo</title><script src="/dist/anomaly.js"></script></head>
<body><div class="anomaly-modal__modal"><div class="anomaly-modal__title">Unfortunately, bots use DuckDuckGo too.</div>
<p>Please complete the following challenge to confirm this search was made by a human.</p>
<form class="challenge-form" method="POST"></form></div></body></html>