Skip to content

Large pasted text as attachment in Zookeeper - #14765

Merged
pierremtb merged 11 commits into
mainfrom
codex/zookeeper-large-paste-attachments
Oct 28, 2026
Merged

pierremtb merged 11 commits into
mainfrom
codex/zookeeper-large-paste-attachments

Conversation

@pierremtb

@pierremtb pierremtb commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Convert Zookeeper text pastes over 10,000 characters into uniquely named .txt attachments, preserving the existing prompt and earlier attachments. Pairs with documentation #1099 to address this discussion.

Next PRs in this stack will touch on image previews with unique names, as well as a new click-to-see-in-big dialog, but are far less urgent to get in.

image

@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modeling-app Ready Ready Preview Oct 28, 2026 10:35pm UTC

Request Review

@pierremtb pierremtb changed the title Codex: Attach large pasted text in Zookeeper Large pasted text as attachment in Zookeeper Oct 28, 2026
export const ZookeeperAttachmentPreview = ({
file,
}: {
file: File | MlCopilotFile

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying something fun here: this UI is both for a pre-upload attachment or a fetched one post-prompt or on replay.

// Attachment names persist across turns, so each paste needs a unique name.
appendAttachments(
[
new File([text], `pasted-text-${crypto.randomUUID()}.txt`, {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This here can help solve issues with duplicate image names across prompts (eg. people pasting from clipboard). We'll fix this the same way in the stacked PR.

@pierremtb
pierremtb marked this pull request as ready for review October 28, 2026 22:30
@pierremtb
pierremtb requested a review from a team as a code owner October 28, 2026 22:30
@pierremtb
pierremtb enabled stacked auto-merge (squash) October 28, 2026 22:38
@pierremtb
pierremtb merged commit b6dcb94 into main Oct 28, 2026
66 checks passed
@pierremtb
pierremtb deleted the codex/zookeeper-large-paste-attachments branch October 28, 2026 23:12
@Irev-Dev

Copy link
Copy Markdown
Contributor

Sorry doing this after the fact, but was playing with https://www.blindtextgenerator.com/lorem-ipsum

And 4000 characters feels like the document is still long enough that it wouldn't feel a suprise to a user that this counted as a pasted attachment, and the lower we keep the threshold the more it saves us money, so I would be open to moving the threshold down?

I got the impression you picked 10000 arbitrarily, and it's an okay default, but think we could also lower it? would have to be a follow up PR.

This branch was successfully deployed

1 active deployment
Preview — 5236e8c5 Deployed Oct 28, 2026 by vercel[bot]
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.

2 participants