Skip to content

Comments

🎨 Palette: Enable multi-line input for vault string decryption#812

Open
adolago wants to merge 1 commit intomainfrom
palette-vault-multiline-input-11329074479455878391
Open

🎨 Palette: Enable multi-line input for vault string decryption#812
adolago wants to merge 1 commit intomainfrom
palette-vault-multiline-input-11329074479455878391

Conversation

@adolago
Copy link
Owner

@adolago adolago commented Feb 24, 2026

💡 What: Replaced the single-line interactive input for rustible vault decrypt-string with a multi-line input loop.
🎯 Why: The encrypt-string command produces multi-line output (header + base64 chunks). Users cannot interactively decrypt this output because the previous input method only read the first line (the header).
📸 Before/After:
Before: Pasting the encrypted block would immediately submit only the header, causing an error.
After: The prompt asks to "press Enter twice to finish", allowing the user to paste the full block.
Accessibility: Improved usability for interactive CLI workflows.


PR created automatically by Jules for task 11329074479455878391 started by @dolagoartur

When decrypting a string interactively (without --string or piped input),
users often paste the encrypted payload, which spans multiple lines.
The previous `Input::interact_text()` only read the first line (the header),
causing decryption to fail.

This change replaces the single-line input with a loop that reads lines
until an empty line is entered, allowing users to paste the full
encrypted block.

- Modified `src/cli/commands/vault.rs` to implement multi-line reading.
- Added `colored` and `std::io::Write` imports.
- Removed unused `Input` import.

Co-authored-by: dolagoartur <146357947+dolagoartur@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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