mirror of
https://github.com/Tencent/teamai-cli.git
synced 2026-10-02 03:14:40 +08:00
* feat(recall): link an OMP subagent's session to its parent for adoption OMP gives a subagent a session of its own, so a recall the teamai-recall subagent ran never credited the main agent's later reads. OMP writes a subagent's session to <parent>/<agent id>.jsonl beside the parent's <parent>.jsonl, whose header names the parent session. The generated extension now reads that header on a session's first tool_result and sends the session_link the OpenCode plugin already sends, so the reducer credits the root session. A session kept only in memory has no file and still gets no link. * fix(recall): keep looking up an OMP subagent's parent until it is linked (PR review) A session was marked as looked up before its parent was found, so a parent session file not yet on disk lost the link for the whole session. Also: skill-data troubleshooting lists OMP's subagent path, the docs name the no-link case (--no-session), a row shows a linked subagent's own read still scores 0, and the header read limit is named. * fix(recall): read an OMP parent's session header after its title slot (PR review) OMP writes a padded title slot line before the session header, so the parent lookup parsed the title line and never linked a subagent. The test harness now writes OMP's real layout; verified in a live OMP 18.4.8 session.