Conversation
…t config 1. Adapter commands now close the automation window immediately after completion instead of waiting for the 30s idle timeout. 2. OPENCLI_WINDOW_FOCUSED=1 opens automation windows in the foreground (useful for debugging). Default remains background. 3. Add Configuration section to README (EN/ZH) and opencli-usage skill listing all stable user-facing environment variables.
…artup Move env var read from daemon (startup-time constant) to CLI side (sendCommandRaw), so it works correctly with the persistent daemon model. Each request now reads the env var fresh and includes windowFocused in the command payload.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OPENCLI_WINDOW_FOCUSEDenv var — set to1to open automation windows in the foreground (debug mode)Changes
src/execution.ts: Callpage.closeWindow()after adapter command succeedssrc/daemon.ts: ReadOPENCLI_WINDOW_FOCUSEDand inject into command payloadsextension/src/protocol.ts: AddwindowFocusedfield to Command interfaceextension/src/background.ts: UsewindowFocusedflag forchrome.windows.create({ focused })README.md,README.zh-CN.md,skills/opencli-usage/SKILL.md: Add Configuration tableTest plan
npm run typecheckpassesnpm testpasses (581 passed, 2 skipped)OPENCLI_WINDOW_FOCUSED=1opens window in foreground