@dmsdc-ai/aigentry-telepty 0.1.58 → 0.1.59
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/daemon.js +4 -1
- package/package.json +1 -1
package/daemon.js
CHANGED
|
@@ -792,7 +792,10 @@ app.post('/api/sessions/:id/inject', (req, res) => {
|
|
|
792
792
|
}
|
|
793
793
|
if (!kittyOk) {
|
|
794
794
|
// Fallback: WS (works with new allow bridges that have queue flush)
|
|
795
|
-
writeToSession(finalPrompt);
|
|
795
|
+
const wsOk = writeToSession(finalPrompt);
|
|
796
|
+
if (!wsOk) {
|
|
797
|
+
return res.status(503).json({ error: 'Process not connected' });
|
|
798
|
+
}
|
|
796
799
|
console.log(`[INJECT] WS fallback for ${id}`);
|
|
797
800
|
}
|
|
798
801
|
|