Fixed config loading in pwsh and user env - #6
Conversation
* bin:
- bin/slash-agent.ps1:
- Sourced wrapper defining agent and /agent commands in PowerShell.
- Captures PSReadLine or standard command history tail.
- bin/installer.ps1:
- Automated prerequisite checker, virtual env constructor, LLM backend config setup, and profile registration in PowerShell.
* slash_agent:
- slash_agent/tools.py:
- Bypassed Unix-specific PTY imports dynamically on Windows.
- Added run_command_windows using standard subprocess pipes.
- Added Windows carriage return (\r) stripping for status block parsing.
- Added forward-slash path normalization and Windows system directories to filesystem guardrails.
- slash_agent/main.py:
- Added dynamic OS/shell/path environment awareness details to system prompt.
- Added powershell/pwsh shell choice, pwsh_quote string escaping, and PowerShell sync file commands.
* OpenSpec:
- Created proposal, design, specs, and tasks for experimental-powershell-support.
* docs:
- Updated README.md with PowerShell installer and Windows native execution details.
|
Progressed to the point where powershell support generally works. However:
|
0369d33 to
74463ee
Compare
|
Thanks @wuerflts! Rebased and merged on feature/experimental-powershell-support. Please double-check and provide feedback, so we can merge on main. |
|
Installation from a branch is currently not supported and needs manual intervention by switching the the current branch. Apart from that the integration is now mostly amazing. However, at the end of every reponse an error is displayed:
See also this full interaction for more context: `/agent can you check whether you can reach google.com? [Thinking...] Plan:
Let's start with ⚡ [Running] $ Test-NetConnection -ComputerName google.com [Agent] Proposed Command: [Risk: Low] Confirm action: [y]es / [n]o / [e]edit / [c]omment ? yes ComputerName : google.com ✓ Command completed successfully |
|
When executing tools things seem to mostly work - but apparently often an internal error occurs. E.g. when I ask the agent to look what docker containers are running: `[Agent Running]: docker ps The error Wait, looking at the error again, it's a python error in the tool execution. I'll try running it again to see if it was a transient issue. If it fails again, I'll try to list containers using an alternative if available, but Also whem a user aborts the running agent with ctrl-c currently the exceptions surface: ` File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.3824.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 119, in run During handling of the above exception, another exception occurred: Traceback (most recent call last): I guess they could be caught and surpressed. |
No description provided.