Skip to content

fix: harden agent recovery and tool-call parsing#26

Merged
ForgetMeAI merged 9 commits into
mainfrom
codex/harden-agent-recovery
Jul 13, 2026
Merged

fix: harden agent recovery and tool-call parsing#26
ForgetMeAI merged 9 commits into
mainfrom
codex/harden-agent-recovery

Conversation

@ForgetMeAI

Copy link
Copy Markdown
Owner

Summary

  • make DeepSeek tool-call parsing accept the observed canonical/doubled/fullwidth DSML variants while rejecting partial, multiple, oversized, or trailing envelopes;
  • preserve bounded agent context across empty responses, context overflow, expired sessions, account rotation, and continuations;
  • return typed upstream/context/timeout errors instead of retry storms or consumed response bodies;
  • bind to loopback by default, add optional constant-time proxy bearer auth, and enforce exact browser-origin CORS for normal and SSE responses;
  • compact large tool schemas without changing literal const, enum, or default values;
  • remove Chrome manifest references to icon files that do not exist.

Contributor work integrated

Verification

  • npm test: 39/39 passing;
  • git diff --check: clean;
  • local HTTP smoke: public/private health, bearer auth, model listing, rejected remote Origin, accepted exact loopback Origin;
  • independent adversarial review of retry/session/account-rotation and DSML completeness paths.

Live DeepSeek upstream E2E was not run because repository/user auth secrets were intentionally not accessed.

Refs #9, #10, #12, #19, #23.

ForgetMe and others added 9 commits July 13, 2026 23:28
Bind to loopback by default and support constant-time bearer authentication for non-health endpoints. Document safe remote access and cover auth helpers with tests.

Co-authored-by: zakatQv <kiibbas2401@gmail.com>
Replace wildcard CORS with loopback and explicit-origin checks, and keep detailed health data behind the optional bearer key.
Require DSML wrappers, reject bare JSON examples, support legacy and fullwidth variants, and bound parsing work and argument sizes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant