Introduction
When using Qoder Agent mode, terminal execution relies heavily on your local environment and shell configuration. You may encounter issues such as:- Inability to launch the terminal
- Commands not executing
- No output returned
Common troubleshooting methods
Method 1: Configure a supported shell
Qoder supports several shells. Ensure you’re using a compatible one.- Open Qoder.
- Press
Cmd + Shift + P(MacOS)orCtrl + Shift + P(Windows/Linux) to open the Command Palette. - Type
Terminal: Select Default Profileand select it. - Choose a supported shell:
- Linux/macOS:
bash,fish,pwsh,zsh - Windows:
Git Bash,pwsh
- Linux/macOS:
- Completely close and reopen Qoder for changes to take effect.
Method 2: Manually install shell integration
If terminal integration still fails, install shell integration manually by adding the appropriate line to your shell’s configuration file.- zsh (
~/.zshrc):
- Bash (
~/.bashrc):
- PowerShell (
$Profile):
- Fish (
~/.config/fish/config.fish):
- Save the changes.
- Restart Qoder completely.
If issues persist
If you still don’t receive terminal output:- Click the “Terminate Terminal” button to close the current terminal session.
- Run the command again. This refreshes the terminal connection and often resolves transient issues.
Windows-specific troubleshooting
Git Bash
- Download and install Git for Windows from: https://git-scm.com/downloads/win.
- Exit and reopen Qoder.
-
Set “Git Bash” as the default terminal:
a. Open the Command Palette.
b. Run:
Terminal: Select Default Profile. c. Select Git Bash.
PowerShell
- Ensure you’re using PowerShell 7 or later.
Check your version:
- If needed, update PowerShell .
- By default, PowerShell restricts script execution for security. You may need to adjust the execution policy.
- Press
Win + X - Select Windows PowerShell (Admin) or Windows Terminal (Admin)
Y when prompted, then verify:
WSL
If using Windows Subsystem for Linux (WSL):- Add the following line to your ~/.bashrc:
Abnormal Terminal Output
Symptoms:- Garbled characters, block symbols
- Escape sequences (e.g.,
^[[1m,^[[32m) - Command output is truncated or formatting is messy.
Solution 1: Disable Complex Prompts/Themes for Agent Execution (Recommended)
Detect if the Agent is running by checking theQODER_AGENT environment variable. If it is active, bypass loading complex themes or prompt configurations during shell startup to avoid conflicts.
zsh (~/.zshrc):
~/.bashrc):
Solution 2: Temporarily Disable
Comment out theme-related configurations in your shell config file and restart Qoder to test. If the issue is resolved, re-enable items one by one to locate the conflicting component. For example, commenting out Powerlevel10k in~/.zshrc: