Skip to content

fix(functions): preserve cached resolution error metadata - #176

Merged
swkeever merged 1 commit into
mainfrom
skeever/sdk-function-cache-errors
Sep 18, 2026
Merged

swkeever merged 1 commit into
mainfrom
skeever/sdk-function-cache-errors

Conversation

@swkeever

Copy link
Copy Markdown
Collaborator

Repeated invocation of a missing function lost the resolver’s original error message and code on a cache hit. Store immutable error metadata with the cached miss and create a fresh NotFoundError for each call, so mutating an earlier exception cannot change later results. The function guide documents the retained metadata.

Validation: a native regression failed before the fix; 1,143 unit tests, Ruff, mypy, Pyright, deterministic generation, build/package smoke checks and docs lint pass. Current 21/proposed 39 canonical feature copies are unchanged and validate. Coordinates with JavaScript #139 and the matching Ruby cache fix; Hosting #1127 merges last.

@swkeever

Copy link
Copy Markdown
Collaborator Author

@codex review. Please review code and security on the current head. This preserves the original missing-function error message/code across negative-cache hits using owned metadata and a fresh exception per caller. The fail-first native regression includes caller mutation of the earlier error. Native checks, feature-copy validation and public docs lint pass. No canonical scenario or wire-contract change.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 18, 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-09-18T21:27:08.262948Z eec3f6e Manual request
🔒 Security Review ✅ Completed 2026-09-18T21:28:51.443464Z eec3f6e Manual request
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: eec3f6eaa6

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: eec3f6eaa6

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@swkeever
swkeever marked this pull request as ready for review September 18, 2026 21:29
@swkeever
swkeever merged commit b83c2de into main Sep 18, 2026
6 checks passed
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