sisyphi 1.2.20 → 1.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +26 -8
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +54 -52
- package/dist/daemon.js.map +1 -1
- package/dist/tui.js +3 -3
- package/dist/tui.js.map +1 -1
- package/package.json +1 -1
package/dist/tui.js
CHANGED
|
@@ -3964,7 +3964,7 @@ function dispatchComposeAction(action, content, state2, actions) {
|
|
|
3964
3964
|
try {
|
|
3965
3965
|
const contRes = await actions.send({ type: "continue", sessionId: action.sessionId });
|
|
3966
3966
|
if (!contRes.ok) {
|
|
3967
|
-
notify(state2, `Error: ${contRes.error}`);
|
|
3967
|
+
notify(state2, `Error: ${typeof contRes.error === "string" ? contRes.error : contRes.error.message}`);
|
|
3968
3968
|
return;
|
|
3969
3969
|
}
|
|
3970
3970
|
actions.sendAndNotify(
|
|
@@ -5296,7 +5296,7 @@ function handleNavigateKey(input, key, state2, actions) {
|
|
|
5296
5296
|
const res = await actions.send({ type: "set-dangerous-mode", sessionId: sessionId2, enabled: next });
|
|
5297
5297
|
if (!res.ok) {
|
|
5298
5298
|
if (state2.selectedSession === session2) session2.dangerousMode = !next;
|
|
5299
|
-
notify(state2, `Dangerous mode toggle failed: ${res.error}`);
|
|
5299
|
+
notify(state2, `Dangerous mode toggle failed: ${typeof res.error === "string" ? res.error : res.error.message}`);
|
|
5300
5300
|
requestRender();
|
|
5301
5301
|
return;
|
|
5302
5302
|
}
|
|
@@ -9385,7 +9385,7 @@ function startApp(state2, cleanup2) {
|
|
|
9385
9385
|
if (res.ok) {
|
|
9386
9386
|
notify(state2, successMsg);
|
|
9387
9387
|
} else {
|
|
9388
|
-
const errMsg = res.error ? res.error :
|
|
9388
|
+
const errMsg = typeof res.error === "string" ? res.error : res.error.message;
|
|
9389
9389
|
notify(state2, `Error: ${errMsg}`);
|
|
9390
9390
|
}
|
|
9391
9391
|
}).catch((err) => {
|