Commit Graph

5 Commits

Author SHA1 Message Date
roboomp 7dda4441e1 fix(tool): respected windows lc locale env
Treat inherited LC_* category locale variables as ownership of the locale group before adding LANG or LC_ALL defaults.

Fixes #2701
2026-06-15 21:38:32 +00:00
roboomp 6ad2b0cd2f fix(tool): preserved windows utf-8 env groups
Skipped UTF-8 defaults for an entire Windows locale or Python encoding group when inherited or per-command env already defines one variable in that group.

Fixes #2701
2026-06-15 21:27:46 +00:00
roboomp e4ab780345 fix(tool): defaulted windows bash children to utf-8
Added Windows-only UTF-8 defaults for non-interactive bash child process environments when the inherited env does not already define encoding or locale values.

Added regression coverage for missing, inherited, per-command, and non-Windows env behavior.

Fixes #2701
2026-06-15 21:18:46 +00:00
can1357 f4be4f6232 feat(dap): introduced Debug Adapter Protocol tool for launch/attach debugging with breakpoints and inspection
- Added Debug Adapter Protocol (DAP) tool enabling launch/attach debugging with breakpoint management, stepping, stack traces, and variable inspection.
- Added debug adapter configurations for gdb, lldb-dap, debugpy, and dlv with automatic language and project detection via root markers.
- Added debug session management with conditional breakpoints, flow control (continue/step/pause), scopes, variables, and expression evaluation.
- Added `debug.enabled` setting to control debug tool availability and integrated debug tool into agent's builtin tools registry.
- Added environment variable configuration (TERM, GPG_TTY, NO_COLOR, PYTHONUNBUFFERED) to prevent terminal blocking in non-interactive execution.
2026-04-08 01:42:25 +02:00
can1357 76a921f284 fix: apply non-interactive env to all bash execution paths
The non-interactive environment variables (pager, editor, and prompt
suppression) were only applied in the PTY (interactive) bash path.
The non-PTY executeBash path had no such defaults, so commands could
block on pagers or credential prompts.

- Extract NO_PAGER_ENV from bash-interactive.ts into shared
  non-interactive-env.ts module (renamed to NON_INTERACTIVE_ENV)
- Apply it in executeBash (non-PTY) with user overrides taking
  precedence
- Fix ordering in interactive PTY path so user env overrides
  the defaults (was reversed)
- Add test verifying defaults are applied alongside user env
2026-02-24 02:57:43 +01:00