core-agent-ide/docs
Gabriel Peal d87f87e25b
Add forced_chatgpt_workspace_id and forced_login_method configuration options (#5303)
This PR adds support for configs to specify a forced login method
(chatgpt or api) as well as a forced chatgpt account id. This lets
enterprises uses [managed
configs](https://developers.openai.com/codex/security#managed-configuration)
to force all employees to use their company's workspace instead of their
own or any other.

When a workspace id is set, a query param is sent to the login flow
which auto-selects the given workspace or errors if the user isn't a
member of it.

This PR is large but a large % of it is tests, wiring, and required
formatting changes.

API login with chatgpt forced
<img width="1592" height="116" alt="CleanShot 2025-10-19 at 22 40 04"
src="https://github.com/user-attachments/assets/560c6bb4-a20a-4a37-95af-93df39d057dd"
/>

ChatGPT login with api forced
<img width="1018" height="100" alt="CleanShot 2025-10-19 at 22 40 29"
src="https://github.com/user-attachments/assets/d010bbbb-9c8d-4227-9eda-e55bf043b4af"
/>

Onboarding with api forced
<img width="892" height="460" alt="CleanShot 2025-10-19 at 22 41 02"
src="https://github.com/user-attachments/assets/cc0ed45c-b257-4d62-a32e-6ca7514b5edd"
/>

Onboarding with ChatGPT forced
<img width="1154" height="426" alt="CleanShot 2025-10-19 at 22 41 27"
src="https://github.com/user-attachments/assets/41c41417-dc68-4bb4-b3e7-3b7769f7e6a1"
/>

Logging in with the wrong workspace
<img width="2222" height="84" alt="CleanShot 2025-10-19 at 22 42 31"
src="https://github.com/user-attachments/assets/0ff4222c-f626-4dd3-b035-0b7fe998a046"
/>
2025-10-20 08:50:54 -07:00
..
advanced.md docs: improve overall documentation (#5354) 2025-10-19 15:07:33 -07:00
agents_md.md docs: add AGENTS.md discovery guide (#5353) 2025-10-19 14:07:20 -07:00
authentication.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
CLA.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
config.md Add forced_chatgpt_workspace_id and forced_login_method configuration options (#5303) 2025-10-20 08:50:54 -07:00
contributing.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
exec.md Fix event names in exec docs. (#4833) 2025-10-06 10:07:52 -07:00
experimental.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
faq.md docs: improve overall documentation (#5354) 2025-10-19 15:07:33 -07:00
getting-started.md docs: align sandbox defaults, dedupe sections and improve getting started guide (#5357) 2025-10-19 16:41:10 -07:00
install.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
license.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
open-source-fund.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
platform-sandboxing.md docs: improve overall documentation (#5354) 2025-10-19 15:07:33 -07:00
prompts.md fix: improve custom prompt documentation and actually use prompt descriptions (#5332) 2025-10-18 15:58:31 -07:00
release_management.md fix: make GitHub Action publish to npm using trusted publishing (#3431) 2025-09-16 20:33:59 -07:00
sandbox.md docs: align sandbox defaults, dedupe sections and improve getting started guide (#5357) 2025-10-19 16:41:10 -07:00
zdr.md Never store requests (#3212) 2025-09-05 10:41:47 -07:00