-
Notifications
You must be signed in to change notification settings - Fork 125
feat(wework): add Codex permission modes #2044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
qdaxb
wants to merge
14
commits into
main
Choose a base branch
from
feature/wework-codex-permissions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b91085c
feat(wework): add Codex permission modes
9b6d9aa
Merge remote-tracking branch 'origin/main' into feature/wework-codex-…
2b4ef0a
fix(wework): narrow approval response types
f0eb535
fix(wework): refine composer permission controls
b5e5cbf
Merge remote-tracking branch 'origin/main' into feature/wework-codex-…
9697159
Merge remote-tracking branch 'origin/main' into feature/wework-codex-…
0719e89
fix(wework): preserve permissions on follow-up
b5576e1
Merge remote-tracking branch 'origin/main' into feature/wework-codex-…
f50855d
fix(runtime): retain codex permissions on resume
ae594a8
test(wework): cover codex permission modes end to end
c6a8568
Merge remote-tracking branch 'origin/main' into feature/wework-codex-…
25127e4
test(wework): stabilize desktop composer automation
b0ca49b
fix(codex): request approval for required sandbox escalation
3df86b3
Merge remote-tracking branch 'origin/main' into feature/wework-codex-…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| sidebar_position: 8 | ||
| --- | ||
|
|
||
| # Codex permission modes | ||
|
|
||
| Wework provides a Codex permission selector below the composer. New chats inherit the default from **Settings > General**, while existing chats keep their own selection. | ||
|
|
||
| ## Permission modes | ||
|
|
||
| - **Full access**: Runs without sandboxing or approval prompts. Use only in trusted workspaces. | ||
| - **Ask for approval**: Codex works automatically inside the workspace and asks you before accessing files outside it, using blocked network access, or invoking side-effecting tools. | ||
| - **Approve for me**: Keeps the same sandbox as Ask for approval, but routes boundary-crossing requests to an independent AI reviewer. Reviewer failures and timeouts deny the action instead of widening access. | ||
|
|
||
| When you change the mode during execution, the current turn keeps its original mode and the new mode applies to the next turn. | ||
|
|
||
| ## Approval scope | ||
|
|
||
| Approval cards show only decisions supported by the current Codex request, such as allow once, allow for the session, or decline. A persistent option appears only when Codex provides a command or network rule amendment; Wework does not broaden the proposed rule. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| sidebar_position: 8 | ||
| --- | ||
|
|
||
| # Codex 权限模式 | ||
|
|
||
| Wework 在输入框下方提供 Codex 权限选择器。新会话继承“设置 > 通用”中的默认值,已有会话保留自己的选择。 | ||
|
|
||
| ## 权限模式 | ||
|
|
||
| - **完全访问**:不使用沙箱,也不会请求批准。仅适用于可信工作区。 | ||
| - **请求批准**:Codex 可在工作区内自动操作;访问工作区外文件、网络或有副作用的工具时由你批准。 | ||
| - **代我审批**:保持与“请求批准”相同的沙箱,由独立 AI reviewer 批准或拒绝越界操作。AI 审批失败或超时会拒绝操作,不会自动放宽权限。 | ||
|
|
||
| 权限模式在执行期间切换时,当前轮继续使用原模式,下一轮开始使用新模式。 | ||
|
|
||
| ## 审批范围 | ||
|
|
||
| 审批卡只显示 Codex 当前请求支持的决定,例如允许本次、本会话允许或拒绝。只有 Codex 提供命令或网络规则提案时,才会显示长期允许选项;Wework 不会自行扩大规则范围。 |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.