Skip to content

Comments

settings: Playwright headless toggle + lower agent max_turns#64

Merged
gabelul merged 1 commit intomasterfrom
feat/headless-max-turns
Feb 3, 2026
Merged

settings: Playwright headless toggle + lower agent max_turns#64
gabelul merged 1 commit intomasterfrom
feat/headless-max-turns

Conversation

@gabelul
Copy link
Owner

@gabelul gabelul commented Feb 3, 2026

Ports two upstream-inspired follow-ups in a fork-native way:

  • Adds per-project runtime setting playwright_headless (stored in project agent_system.db), surfaced in Settings → Run → Project Runtime. Injects PLAYWRIGHT_HEADLESS into spawned agent env and appends --headless when starting @playwright/mcp.
  • Lowers default Claude SDK max_turns for the main agent client from 1000 to 300, with env override AUTOCODER_AGENT_MAX_TURNS.

Notes:

  • Default remains headed (no behavior change unless toggle enabled).
  • Updated tests for project runtime settings env mapping.

How to verify:

  • Enable Playwright headless for a project and start agent; Playwright runs without a visible browser window.
  • Optionally set AUTOCODER_AGENT_MAX_TURNS=1000 to restore previous behavior.

@gabelul gabelul merged commit 5c249f1 into master Feb 3, 2026
3 checks passed
@gabelul gabelul deleted the feat/headless-max-turns branch February 3, 2026 18:43
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