Skip to content

[codex] Cap feedback upload subtrees#28332

Merged
jif-oai merged 2 commits into
mainfrom
jif/feedback-upload-cap
Jun 15, 2026
Merged

[codex] Cap feedback upload subtrees#28332
jif-oai merged 2 commits into
mainfrom
jif/feedback-upload-cap

Conversation

@jif-oai

@jif-oai jif-oai commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • cap feedback log uploads to at most eight threads before SQLite log aggregation and rollout attachment resolution
  • keep the root session included while bounding descendant fanout during /feedback uploads

Why

Very large sessions can accumulate large spawned-thread subtrees. Feedback uploads currently walk the entire subtree and then read each resolved rollout into memory, which can blow up when one session has hundreds of descendants.

Validation

  • ran just fmt
  • did not run tests or Clippy per request; CI will cover validation

Feedback log uploads currently collect the full spawned-thread subtree before querying SQLite logs or resolving rollout attachments. On very long sessions that can pull in hundreds of descendant threads and large rollout files during /feedback.\n\nCap the collected feedback subtree to eight threads so the upload path stays bounded while still including the root session and nearest descendants.
@jif-oai

jif-oai commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@jif-oai jif-oai marked this pull request as ready for review June 15, 2026 14:41
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 01ef282efd

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

@jif-oai jif-oai merged commit b3f6f70 into main Jun 15, 2026
31 checks passed
@jif-oai jif-oai deleted the jif/feedback-upload-cap branch June 15, 2026 14:58
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant