mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 15:04:52 +00:00
Display return values and fix duplicate error messages in REPL
- javascript-repl now displays return values with => prefix - Objects are JSON.stringify'd with formatting - Removed console.error from wrapper to prevent duplicate error messages - Error is already captured and sent via execution-error message - Fixes missing return value display and duplicate error output
This commit is contained in:
parent
5fc3857666
commit
8747e01c31
2 changed files with 7 additions and 2 deletions
|
|
@ -347,8 +347,7 @@ export class SandboxIframe extends LitElement {
|
|||
|
||||
await window.complete(null, returnValue);
|
||||
} catch (error) {
|
||||
console.error(error?.stack || error?.message || String(error));
|
||||
|
||||
|
||||
// Call completion callbacks before complete() (error path)
|
||||
if (window.__completionCallbacks && window.__completionCallbacks.length > 0) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue