Repository navigation
FEAT: native Auto-review, /permissions and /approve - #106
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Approval-tracking gaps can allow retries or permission changes while human approval is pending, and truncated denial details prevent users from fully inspecting what they confirm.
6 open issues
Denial review hides full help text in inline detail mode · New Overflow checkpoint does not block retry consent · New Permission writes skip final approval-state checks · New Root-row denial review routes commands to the wrong thread · New Auto-review state grows without a connection-wide bound · New Permission command bypasses Enter interception and busy guards · New
What changed in this PR
Adds Codex’s native Auto-review controls to Codexometer’s existing session-management flow, with permission configuration, exact-action retry consent and review telemetry in terminal and web interfaces.
Changes:
- Extends
/permissionsand adds/approve, with managed-policy checks, settings readback and replay protection. - Displays reviewer settings and native assessments alongside conversations, while keeping human checkpoints separate.
- Adds regression coverage, translated terminal labels, documentation and regenerated browser assets.
| File | Description |
|---|---|
web/tests/browser.spec.ts |
Tests informational review display in read-only mode. |
web/src/Sessions.svelte |
Displays reviewer settings and native assessments. |
web/src/SessionCommands.svelte |
Adds inline permissions entry and review wording. |
web/src/contracts.generated.ts |
Adds browser review-data types. |
README.md |
Documents commands, requirements and safety boundaries. |
intro-post.md |
Introduces native review controls and updated usage. |
internal/web/state.go |
Projects sanitized review telemetry to browsers. |
internal/web/dist/index.html |
References the regenerated browser bundle. |
internal/web/dist/assets/index-DZqQ0MhB.js |
Includes compiled frontend changes. |
internal/web/control_commands.go |
Uses shared command acknowledgements. |
internal/web/auto_review_test.go |
Tests read-only projection and capability privacy. |
internal/ui/monitor.go |
Adds reviewer labels and the reviewing badge. |
internal/ui/monitor_detail.go |
Appends assessments to conversation detail. |
internal/ui/monitor_commands.go |
Updates review wording and acknowledgements. |
internal/ui/monitor_commands_inline.go |
Handles inline permissions arguments. |
internal/ui/monitor_auto_review_test.go |
Tests review display and human-checkpoint precedence. |
internal/i18n/locales/zh-Hans.json |
Adds Simplified Chinese reviewer labels. |
internal/i18n/locales/tr.json |
Adds Turkish reviewer labels. |
internal/i18n/locales/sv.json |
Adds Swedish reviewer labels. |
internal/i18n/locales/ru.json |
Adds Russian reviewer labels. |
internal/i18n/locales/pt-PT.json |
Adds European Portuguese reviewer labels. |
internal/i18n/locales/pt-BR.json |
Adds Brazilian Portuguese reviewer labels. |
internal/i18n/locales/nl.json |
Adds Dutch reviewer labels. |
internal/i18n/locales/nb.json |
Adds Norwegian Bokmål reviewer labels. |
internal/i18n/locales/ja.json |
Adds Japanese reviewer labels. |
internal/i18n/locales/it.json |
Adds Italian reviewer labels. |
internal/i18n/locales/fr.json |
Adds French reviewer labels. |
internal/i18n/locales/fi.json |
Adds Finnish reviewer labels. |
internal/i18n/locales/et.json |
Adds Estonian reviewer labels. |
internal/i18n/locales/es.json |
Adds Spanish reviewer labels. |
internal/i18n/locales/en-GB.json |
Adds English reviewer-label catalogue entries. |
internal/i18n/locales/de.json |
Adds German reviewer labels. |
internal/i18n/locales/da.json |
Adds Danish reviewer labels. |
internal/codex/session_settings_unix_test.go |
Extends fixtures for permissions and retry requests. |
internal/codex/session_permissions_unix.go |
Verifies requested policies and reviewer settings. |
internal/codex/session_permissions_menu_unix.go |
Parses permission arguments and builds managed choices. |
internal/codex/session_goal.go |
Recognizes editable permissions command paths. |
internal/codex/session_context.go |
Adds reviewer metadata to session context. |
internal/codex/session_commands.go |
Adds permission snapshots and shared acknowledgements. |
internal/codex/session_commands_unix.go |
Integrates native menus, validation and mutations. |
internal/codex/session_command_cache.go |
Excludes typed permissions reviews from caching. |
internal/codex/session_auto_review.go |
Defines display-only assessment data. |
internal/codex/session_auto_review_unix.go |
Tracks assessments, denial inventory and retry consent. |
internal/codex/session_auto_review_unix_test.go |
Tests lifecycle, conversions, permissions and replay protection. |
internal/codex/live_usage.go |
Incorporates review telemetry into grouped sessions. |
internal/codex/daemon_status_unix.go |
Integrates review notifications and connection-local state. |
go.sum |
Records shell-argument parser checksums. |
go.mod |
Adds the shell-argument parser dependency. |
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
Permission reviews can execute before full details are shown and submit stale settings after composer edits, undermining informed consent and applying unintended configuration changes.
4 open issues
6 resolved since last review
Permission writes skip final approval-state checks Overflow checkpoint does not block retry consent Denial review hides full help text in inline detail mode Permission command bypasses Enter interception and busy guards Auto-review state grows without a connection-wide bound Root-row denial review routes commands to the wrong thread
Review effort: Balanced
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.


Why
Codex already provides an approval reviewer and an exact-action retry API. Exposing those native controls lets Codexometer manage review preferences alongside its existing session controls without inventing a second risk engine, weakening the sandbox, or automatically answering human checkpoints.
Native session controls
/permissionswith server-allowed permission profiles, approval policies and human/Auto-review reviewer selection. Support the native inline profile/flag syntax, shell-style quoting and granular policy JSON.guardian_approvalfeature; keep profile-only behaviour when an older server omits reviewer metadata./approve: inspect recent native denials and record consent for one exact retry usingthread/approveGuardianDeniedAction. This is not direct command execution; the retry still passes through native Auto-review.Sessions in terminal and web
Maintenance and documentation
Validation
No release or version bump is included. Native schema/behaviour was checked against Codex 0.169.0 source. This PR does not enable Auto-review globally, edit managed policy, add a separate approval model, or claim that Auto-review permits only low-risk operations.