Threads let WebPilot keep user-facing continuity across related browser tasks without injecting full internal logs into every prompt.
- thread id
- title
- run ids
- user goals
- final results
- compact context text for follow-up tasks
- provider API keys
- browser cookies
- raw DOM dumps
- large internal logs
- private profile paths beyond what is needed in run metadata
- A task starts with an optional
threadId. ensureThreadcreates or loads the thread.buildThreadContextcreates compact prior context.- The planner receives that context as background only.
- On run completion, the thread gets the run status, user goal, and final result.
Thread context should help interpret follow-up instructions, but live browser state remains the source of truth. If a prior answer conflicts with the current page, the agent should prefer current page evidence.
Thread data is stored locally under agent_threads/ or the packaged app user-data directory.