5 Commits

Author SHA1 Message Date
Gumayusy
a6413c75ad
fix: include active messages in history search limit (#7169)
* fix: include active messages in history search limit

* fix: deduplicate active and archived source reads

* fix: deduplicate active history matches
2026-10-22 11:45:58 +08:00
ZJPex
7e0e3013d0
feat: return hit-centered history search excerpts with source offsets (#6008)
* feat: return history search excerpts near keyword matches

* docs: use English for history search guidance and comments

* docs: sync Chinese history search excerpt contract

* docs: clarify history excerpt fallback for oversized matches

* fix(history): skip oversized occurrences when selecting excerpts

Continue scanning casefolded substring matches until an occurrence fits the 600-character excerpt, including overlaps. Cover later fitting hits through synchronous and asynchronous active/archive search and read tools, and update the documented contract.

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-10-10 21:24:21 +08:00
ZJPex
f196844625
feat: add optional message-role filtering to history_search (#5927)
* feat: add optional role filtering to task history search

* docs: scope history role guidance to task continuity

* test: register task continuity guidance in scoped inventory

* docs: separate English guidance from Chinese README translation
2026-09-27 09:10:20 +08:00
JasonH
82cf57a9c3
fix(utils): return empty text for content-less messages (#5563)
* fix(utils): return empty text for content-less messages

message_content_to_text fell through to str(content), so a message whose
content is None yielded the truthy literal "None". Two call sites already
work around it with a local `or ""` and name the helper in the comment; the
subagent executor's `text if text else "No response generated"` fallback and
the archive's `if not text: continue` skip cannot work around it, so a
content-less terminal turn was reported as an answer of "None" and a
content-less LLM error fallback surfaced "None" instead of its error_detail.

* test(utils): cover non-None content compatibility and document fallbacks

* test(utils): cover contentless task history and refresh guard comments

---------

Co-authored-by: Lengshuang <90967079+Lesereingrape@users.noreply.github.com>
Co-authored-by: JasonH <4430962+yang0228@users.noreply.github.com>
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-09-19 10:56:21 +08:00
Wenchao An
1b76ab9060
feat: add opt-in task notes and compacted history recall (#5382)
* feat: add opt-in task notes and compacted history recall

* fix: validate task continuity state and preserve user answers

Honor explicit opt-out, preserve clarification replies and capture failure statuses, validate notebook writes, and clear branch archive references. Update the config version and audit optional LLM credentials, with regression and integration evidence.

* fix: align Helm config version with task continuity schema

* fix: preserve mixed task history and declare continuity policies

* fix: recover malformed history and evict archives atomically
2026-09-12 21:01:46 +08:00