Repository navigation
feat: add integration history helpers - #91
Conversation
Co-authored-by: Cad from Arca <[email protected]>
|
Exact-head proof for
Land-ready. Not merged. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 79d9696454
ℹ️ 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".
| const params = new URLSearchParams(); | ||
| if (options.limit !== undefined) params.set("limit", String(options.limit)); | ||
| if (options.latest !== undefined) params.set("latest", String(options.latest)); | ||
| const query = params.size > 0 ? `?${params.toString()}` : ""; |
There was a problem hiding this comment.
Avoid dropping thread query options in older browsers
When the SDK runs in browsers/WebViews that support URLSearchParams but not the newer size property (for example Safari/iOS 16), params.size is undefined, so callers that pass limit or latest still get an empty query string and the server returns the default earliest window. This SDK is documented as browser-compatible, and the surrounding code already avoids this compatibility trap by checking params.toString() instead.
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. Reviewed July 17, 2026, 12:17 AM ET / 04:17 UTC. Summary Reproducibility: no. live older-browser reproduction was supplied, but the failure path is high-confidence from the changed source: when Review metrics: 3 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Copy recommended automerge instructionNext step before merge
Security Review findings
Review detailsBest possible solution: Keep the API design, serialize the thread query with Do we have a high-confidence way to reproduce the issue? No live older-browser reproduction was supplied, but the failure path is high-confidence from the changed source: when Is this the best way to solve the issue? No, not as currently written. The public API shape is reasonable, but query construction must use the established serialized-string pattern and the new database queries must follow the repository's sqlc workflow. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b3837d1743db. Label changesLabel changes:
Label justifications:
Evidence reviewedAcceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Summary
client.events.listlatest=truethread windows across SQLite, Postgres, HTTP, OpenAPI, and the TypeScript SDKThis extracts the reusable integration capabilities surfaced by #78. Thanks @arcabotai for identifying the need and for the original implementation direction.
Proof
pnpm check— passpnpm coverage— 85.3%pnpm test:e2e— 98 passedpnpm audit --audit-level=high— no known vulnerabilitiesgovulncheck ./...— no vulnerabilitieslatest=true&limit=2, observed reply count 5, fetched a two-event durable page, and received the captured tail cursor