fix: show full error when terminal installation fails#2070
fix: show full error when terminal installation fails#2070bajrangCoder merged 2 commits intoAcode-Foundation:mainfrom
Conversation
Greptile SummaryThis PR refactors Confidence Score: 4/5Safe to merge; only a minor unhandled-rejection gap in the non-install startup path. No P0 or P1 issues found. A single P2 style issue (missing .catch() on the non-install Executor chain) is the only concern. Core installation error-reporting logic is correct and the previously flagged issues have been resolved. src/plugins/terminal/www/Terminal.js — non-install else branch of startAxs Important Files Changed
Sequence DiagramsequenceDiagram
participant TM as terminalManager.js
participant T as Terminal.js
participant E as Executor
TM->>T: install(logger, err_logger)
Note over T: lastInstallError = ""
T->>T: uninstall, download, extract
T->>T: startAxs(installing=true)
T->>E: Executor.start("sh", callback)
E-->>T: uuid
T->>E: Executor.write(uuid, init-sandbox.sh)
loop stderr events
E-->>T: type=stderr, data
Note over T: lastError accumulates lines
end
E-->>T: type=exit, data
alt exit code 0
T-->>TM: true
TM-->>TM: return success
else non-zero exit
Note over T: lastInstallError = exit code + lastError
T-->>TM: false
TM-->>TM: return error from lastInstallError
end
Reviews (2): Last reviewed commit: "fix" | Re-trigger Greptile |
No description provided.