Skip to content

docs(debugger): document configurable session limits - #8856

Closed
ShuaixinHuang wants to merge 5 commits into
morluto:mainfrom
ShuaixinHuang:codex/docs-debugger-launch-limits
Closed

ShuaixinHuang wants to merge 5 commits into
morluto:mainfrom
ShuaixinHuang:codex/docs-debugger-launch-limits

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by #8896 at the author's request; no code change.

Review follow-up

Clarified that the shared debugger settings also apply to one-shot rea debug-with-gdb and rea debug-with-rizin, while the listed fixed waits and separate tools retain their own limits. This addresses the scope ambiguity in review comment #4463238050. npm.cmd run docs:check (9 conformance tests), npm.cmd run docs:build, the repository formatter, and git diff --check passed locally. The current PR HEAD needs its own CI result; no new GDB or Rizin runtime claim is made.

Summary

Document the shared debugger session settings that are already implemented for GDB and Rizin. Explain defaults, accepted ranges, restart requirements, fixed startup/frame limits, and the separate control-reply budget.

Problem and expected behavior

The implementation accepts REA_DEBUGGER_COMMAND_DEADLINE_MS, REA_DEBUGGER_MAX_COMMAND_OUTPUT_BYTES, REA_DEBUGGER_MAX_SESSIONS, and REA_DEBUGGER_MAX_PENDING_COMMANDS, but the reverse-engineering guide said the command deadline, output budget, session capacity, and pending queue had no runtime override. That made the documented recovery path contradict the current configuration contract.

Change and scope

Update docs/reverse-engineering-tools.md with the four settings, defaults and ranges, invalid-value behavior, client-registration/restart guidance, and remaining fixed limits. This is documentation only; no runtime, schema, provider, debugger lifecycle, package or generated metadata changes. The Linux Rizin cleanup behavior described in issue #8779 remains an independent unimplemented investigation.

  • Owner: debugger configuration documentation.
  • Maintainer capability/authority decision: not applicable.
  • Documentation or usability only; no target interaction.

Validation performed

  • npm.cmd run test:focused -- src/config/debuggerSessionLimits.test.ts — 10 passed.
  • npm.cmd run docs:check — passed, including 9 conformance tests.
  • npm.cmd run docs:build — passed, 18.89 seconds.
  • npm.cmd run check:fast — typecheck and lint passed.
  • Formatter and git diff --check — passed.
  • Source verification matched the documented defaults/ranges to debuggerSessionLimits.ts and fixed Rizin frame/count constants.

Limits: no live GDB or Rizin provider session was run; no cleanup behavior or target execution is claimed. The documentation records the existing implementation contract only.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

Supersedes #8784.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T03:28:09.196930Z 043d53d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The documentation change appears safe to merge.

Summary

Documents the existing shared debugger settings without changing runtime behavior.

  • The guide explains how operators set shared GDB and Rizin limits at launch.

Reviews (2) · Last reviewed commit: "docs(debugger): preserve repository line..." · Reviewed by Greptile

Comment thread docs/reverse-engineering-tools.md Resolved
@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration documentation Improvements or additions to documentation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants