JetBrains / JetBrains/junie

Show full Bash commands in Junie CLI permission prompts

Open
#97 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
437
Forks
32
Avg merge
4h 43m
Merged PRs (30d)
7

Description

## Problem

When Junie CLI asks for permission to run a command, long Bash commands are truncated with an ellipsis (`...`).

This makes it difficult to understand the **full command Junie is requesting permission to execute**. In some cases, the truncated portion may contain important arguments, file paths, flags, or other operations that are necessary to assess whether the command is safe to run.

## Example

For a long command, the permission prompt may display something like:

```text
Junie wants to run:
bash -c "some very long command with many arguments and ... --some-important-flag"
```

Instead of showing the complete command.

## Expected behavior

The permission prompt should provide a way to view the **entire command**, for example:

* Display the full command without truncation when possible.
* Provide an expandable/collapsible view for long commands.
* Or allow copying the complete command from the permission prompt.

This would make it much easier to review and safely approve commands before allowing Junie CLI to execute them.

Image

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named in the issue. Reproduce the permission prompt with a long Bash command, then trace the Junie CLI entry point that renders it; done means a user can inspect the complete command, including the currently truncated portion, before approving it.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.