From dafb13a4a5ead4a82a5a26767f7b3f9cc0a427c0 Mon Sep 17 00:00:00 2001 From: DavertMik Date: Thu, 12 Nov 2026 03:28:17 +0200 Subject: [PATCH] Prima do/check: include page knowledge in the agent context pageContext() sent the ARIA tree, UI map and experience but never the knowledge, so --auth, --knowledge and knowledge files never reached the do agent and sign-in steps blocked with "no auth details". Render it with renderRelevantContext(), as Tester, Navigator and Researcher do. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 5 +++++ boat/prima/src/prima.ts | 3 +++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ecfdc6c5..1f31b448 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2026-11-12 + +### Changes +- [Prima] `do` and `check` now see the knowledge for the current page: knowledge files, `--knowledge` and `--auth`. Before, a sign-in step blocked with "no auth details" even when `--auth` was given. + ## 2026-10-31 ### New CLI Options diff --git a/boat/prima/src/prima.ts b/boat/prima/src/prima.ts index 23edf119..12490990 100644 --- a/boat/prima/src/prima.ts +++ b/boat/prima/src/prima.ts @@ -985,6 +985,7 @@ export class Prima { private async pageContext(result: ActionResult): Promise { const experience = this.bot.experienceTracker?.()?.renderExperienceTocFor?.(result) || ''; + const knowledge = this.bot.knowledgeTracker?.()?.renderRelevantContext(result) || ''; const map = getPreviousResearch(result.baseHash); let uiMap = ''; if (map) { @@ -1002,6 +1003,8 @@ export class Prima { ${compactAriaSnapshot(await this.refAriaSnapshot(result), true, (value) => this.offloadValue(value))} + ${knowledge} + ${uiMap} ${experience}