Skip to content

feat(chatgpt): add explicit windows-cdp desktop surface#192

Open
KasumiChen wants to merge 2 commits intojackwener:mainfrom
KasumiChen:feat/chatgpt-windows-rewrite
Open

feat(chatgpt): add explicit windows-cdp desktop surface#192
KasumiChen wants to merge 2 commits intojackwener:mainfrom
KasumiChen:feat/chatgpt-windows-rewrite

Conversation

@KasumiChen
Copy link
Contributor

Summary

  • add explicit ChatGPT desktop surface selection for CDP-backed flows
  • keep existing macOS native behavior as the default surface
  • add opt-in windows-cdp / macos-cdp handling for status, read, and send
  • improve ChatGPT CDP target scoring and busy-state readback cleanup

Compatibility

  • default opencli chatgpt ... behavior remains macos-native
  • new and ask remain macOS-native only
  • no implicit switch just because OPENCLI_CDP_ENDPOINT is set
  • default output surface remains narrow/compatible (Status, Role/Text)
  • Windows support is explicit opt-in via --surface windows-cdp

Example

export OPENCLI_CDP_ENDPOINT=http://127.0.0.1:9224
export OPENCLI_CDP_TARGET=chatgpt
opencli chatgpt status --surface windows-cdp
opencli chatgpt send --surface windows-cdp "Reply with exactly OK and nothing else."
opencli chatgpt read --surface windows-cdp

Validation

  • npm run typecheck
  • npm test
  • npm run build
  • live smoke on a real Windows ChatGPT desktop CDP endpoint for status/read/send --surface windows-cdp

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