Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions code-studio/ide/tutorials/terminal-tools-improvement.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,58 @@ This same instant response also works for other terminal events, not just `Ctrl
> - A process crashes → agent reports the error and suggests a fix.


# Improvements

## Terminal Output Compression (Preview)

Terminal Output Compression (Preview) automatically reduces verbose terminal output before sending it to AI chat, preserving more context for code understanding.

It compresses outputs from commands such as:
- `git diff`
- `ls -l`
- `npm install`

The feature removes unchanged, redundant, and low-value content. A banner highlights the applied compression filters and provides guidance for accessing the original output when needed.

## Steps to Follow

1. Open Syncfusion Code.
2. Open **Settings** using `Ctrl + ,`.
3. Search for **`chat.tools.compressOutput.enabled`**.
4. Enable the setting to compress terminal output before it is sent to chat.
5. Open the Chat view.
6. Run the prompt:

```text
show me the git log --oneline
```

<img src="./tutorials-images/terminal_compression.png" alt="agent response" />


# Sensitive Terminal Prompts Stay in the Terminal

- Sensitive prompts such as passwords, PINs, passphrases, and verification codes are now handled directly in the terminal instead of being processed by an AI assistant.
- When a command requests a secret, the prompt is intercepted so users can enter the information manually.
- This helps prevent credentials from being exposed, stored, or accidentally reused, improving security and privacy during terminal interactions.

<img src="./tutorials-images/terminal-sensitive.png" alt="agent response" />

# Cleanup of Background Agent Terminals

- Background terminals are now closed automatically when their associated tasks are completed or no longer required.
- This prevents unused terminals from accumulating over time and reduces unnecessary resource consumption.
- Active terminals remain unaffected, ensuring that ongoing tasks continue to run without interruption while maintaining a cleaner workspace.

# Running in Background Indicator for Terminal Tools

- Terminal tools now provide a clear status indicator for commands running in the background.
- While a command is actively running, the terminal displays a **Running** status.
- Once the command completes, the status automatically changes to **Ran**.
- This provides better visibility into task progress and helps users quickly determine whether a background operation is still in progress or has finished.

<img src="./tutorials-images/terminal_background.png" alt="agent response" />

## What’s Next?
- [Generate Your First Code Change Using Agent](/code-studio/tutorials/generate-your-first-code-using-agent.md) — Guide the agent to implement and verify a small change end-to-end.
- [Fixing Bugs with AI](/code-studio/tutorials/fixing-bugs-with-ai.md) — Use the agent to identify, patch, and validate defects safely.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.