Files
NomadArch/tasks/done/022-long-paste-handling.md
Gemini AI 157449a9ad restore: recover deleted documentation, CI/CD, and infrastructure files
Restored from origin/main (b4663fb):
- .github/ workflows and issue templates
- .gitignore (proper exclusions)
- .opencode/agent/web_developer.md
- AGENTS.md, BUILD.md, PROGRESS.md
- dev-docs/ (9 architecture/implementation docs)
- docs/screenshots/ (4 UI screenshots)
- images/ (CodeNomad icons)
- package-lock.json (dependency lockfile)
- tasks/ (25+ project task files)

Also restored original source files that were modified:
- packages/ui/src/App.tsx
- packages/ui/src/lib/logger.ts
- packages/ui/src/stores/instances.ts
- packages/server/src/server/routes/workspaces.ts
- packages/server/src/workspaces/manager.ts
- packages/server/src/workspaces/runtime.ts
- packages/server/package.json

Kept new additions:
- Install-*.bat/.sh (enhanced installers)
- Launch-*.bat/.sh (new launchers)
- README.md (SEO optimized with GLM 4.7)
2025-12-23 13:03:48 +04:00

853 B

title, description
title description
Long Paste Handling Summarize large pasted text into attachments.

Implement Long Paste Handling


Detect Long Pastes

Monitor clipboard paste events for text content. Identify if the pasted text exceeds a defined length (e.g., >150 characters or >3 lines).


Create Summarized Attachments

If a paste is identified as "long", prevent direct insertion into the input field. Instead, create a new text attachment containing the full content.

Display a summarized chip for the attachment, such as [pasted #1 10+ lines].


Acceptance Criteria

  • Pasting short text directly inserts it into the input.
  • Pasting long text creates a summarized attachment chip.
  • The full content of the long paste is retained within the attachment for submission.
  • Multiple long pastes create distinct numbered chips.