Skip to content

fix: cap dashboard clipboard requests at 50,000 characters - #439

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/dashboard-prompt-budget
Oct 1, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/dashboard-prompt-budget

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Dashboard clipboard actions now enforce a 50,000-character budget, including custom copy handlers and standalone batch packets. Oversized requests offer a complete text download for attachment; no partial prompt is copied. Clipboard failures no longer show success.

API Changes

Internal shared renderer helpers MAX_PROMPT_CHARS and PROMPT_GUARD_JS; no scientific API changes. Merge Brain before the companion Heart PR so Heart's custom clipboard handler can use the guard. Eyes remains independently renderable and enforces the same ceiling.

Test Plan

  • Boundary and Unicode tests execute the browser JavaScript in Node.
  • Custom-handler bypass, complete download recovery and rejected clipboard writes covered.
  • Full Brain suite: 1,131 passed with fixture-conflicting PYAUTO_MIND/PYAUTO_HEART hints removed; no source workaround.

Development gate

Heart currently reports RED: release validation FAILED (stage integrate). After all 2,323 branch tests passed and this exact reason was reported, the user authorized development shipping: “I authorize you to conitnue” (2026-10-01). This permits commit, push and PR-open for this task only. No release or merge authority; these changes do not repair the release-validation failure.

Task: PyAutoLabs/PyAutoHeart#261

Generated by the PyAutoLabs agent workflow.

Companion PRs: Brain #439, Heart #262, Eyes #11. Heart is draft pending Brain merge; Eyes is independent.

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