Repository navigation
Conversation
Add ocx debug provider|usage subcommands, runtime /api/debug toggles, in-memory provider log buffer with /api/debug/logs, usage JSONL tail via /api/debug/usage-logs, and a dedicated /#debug page with refresh/follow. Remove debug controls from the request Logs page.
Owner
|
Thanks for the solid end-to-end debug direction — a unified provider/usage debug surface across CLI + GUI is something this project needs. Requesting changes before merge:
Decision: request changes. No conflicts with current |
- Remove stale request-log re-exports from server/index.ts (tsc blocker) - Use monotonic seq cursor for debug log polling (GUI, CLI, API) - Route ocx debug usage logs through running proxy API - Add management API integration tests for /api/debug endpoints
Contributor
Author
|
@lidge-jun Is it okay like that? |
lidge-jun
added a commit
that referenced
this pull request
Jul 9, 2026
…k PR #74) Cherry-pick of 238283f + 6a17da2 + c1cc006 + 4679291 from feat/debug-provider-gui. All 4 review feedback items addressed by contributor: - tsc blocker: stale re-exports removed - Log polling: monotonic seq cursor replaces Date.now() - HTTP tests: /api/debug endpoints covered (auth, CORS, validation, redaction) - Usage logs: both streams now route through running proxy API Co-authored-by: Wibias <[email protected]>
lidge-jun
added a commit
that referenced
this pull request
Jul 9, 2026
… cherry-pick PR #74's server/index.ts cleanup removed this re-export (stale on main), but dev's request-log.test.ts still imports it from src/server.
Owner
|
Cherry-picked into All 4 review feedback items confirmed resolved:
1794 tests pass, 0 fail. Closing. |
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
…k PR lidge-jun#74) Cherry-pick of 238283f + 6a17da2 + c1cc006 + 4679291 from feat/debug-provider-gui. All 4 review feedback items addressed by contributor: - tsc blocker: stale re-exports removed - Log polling: monotonic seq cursor replaces Date.now() - HTTP tests: /api/debug endpoints covered (auth, CORS, validation, redaction) - Usage logs: both streams now route through running proxy API Co-authored-by: Wibias <[email protected]>
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
…idge-jun#74 cherry-pick PR lidge-jun#74's server/index.ts cleanup removed this re-export (stale on main), but dev's request-log.test.ts still imports it from src/server.
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
Adds a unified debug system for provider transport diagnostics and usage extraction, with matching CLI commands, management API endpoints, and a dedicated GUI tab.
Changes
CLI
ocx debug provider on|off|status|reset|logs [-f]ocx debug usage on|off|status|reset|logs [-f]Server API
GET/PUT /api/debug— provider + usage flags with runtime overridesGET /api/debug/logs— in-memory provider diagnostic buffer ([ocx:…]lines)GET /api/debug/usage-logs— tail of~/.opencodex/usage-debug.jsonlGUI
/#debug/#logs(request logs only)Internals
src/lib/debug-settings.ts,src/lib/debug-log-buffer.tsdebugProviderDiagnostic(adapter, event, details)for all providersOCX_DEBUG=1andOCX_DEBUG_FRAMES=1still enable provider debugTesting
bun test tests/debug.test.ts tests/debug-settings.test.tsDependencies
Standalone debug-only PR (single commit). Can merge independently of #73; if both land around the same time, merge #73 first to reduce overlap on shared adapter wiring.