diff options
| author | Dani Bednarski <49581958+DaniBedz@users.noreply.github.com> | 2026-05-17 00:24:02 +1000 |
|---|---|---|
| committer | Tianren Dong <tianrendong.dtr@gmail.com> | 2026-05-16 13:17:30 -0400 |
| commit | ae0e6d4ea16c8232957d84c226c9c874c7c5f1c1 (patch) | |
| tree | 44b1888acd3fb9f430bfaee0b8d6c0aafdabc20e /docs | |
| parent | 4739dce965041f72da917794b6d3122d01904f45 (diff) | |
feat: lazy-register chrome tools until /chrome authorize
Defer all pi.registerTool() calls until /chrome authorize fires.
Previously, 18 chrome_* tool definitions + chrome-profile-bridge
primer consumed ~5K tokens/turn even when Chrome control locked.
Changes:
- Add chromeToolsRegistered flag (default false)
- Wrap all pi.registerTool() calls in registerChromeTools(pi)
- Only register tools when authorizeFor() runs
- Make before_agent_start conditional: primer injected only when
tools registered AND authorized
- No tools exist in context until user explicitly allows it
Saves ~5,000 tokens/turn when Chrome control is locked.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
