Skip to content

Prima do/check: pass page knowledge (incl. --auth) to the agent - #305

Merged
DavertMik merged 2 commits into
mainfrom
prima-do-knowledge
Nov 12, 2026
Merged

DavertMik merged 2 commits into
mainfrom
prima-do-knowledge

Conversation

@DavertMik

Copy link
Copy Markdown
Contributor

Problem

prima do and prima check ignored knowledge. --auth / EXPLORBOT_AUTH and --knowledge were loaded as session knowledge, but Prima.pageContext() built the agent prompt from the ARIA tree, UI map and experience only. A sign-in step blocked with "no auth details are shown anywhere on the page" even with --auth given. Knowledge files on disk were dropped the same way.

Fix

pageContext() now adds knowledgeTracker.renderRelevantContext(result), the same renderer Tester, Navigator and Researcher use. It goes out with every page context, so it's re-sent after navigation too.

Verified

Against a local app with a login form:

prima --auth="Admin key: …" do "sign in locally using the admin key from the auth details, leave the email empty" "open Agents in the sidebar"
  • before: ok: false, step 1 blocked with "no auth details"
  • after: ok: true, filled the key, signed in, landed on /portal/agents

bun test boat/prima/tests (156) and bun test tests/integration/ (175) pass.

Not in this PR

prima go <path> decides arrival by URL only, so an app that shows a sign-in form at the requested URL (no redirect) returns ok: true without logging in.

🤖 Generated with Claude Code

DavertMik and others added 2 commits November 12, 2026 03:28
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 <noreply@anthropic.com>
@DavertMik
DavertMik merged commit a4b13a2 into main Nov 12, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant