@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.
Files changed (2) hide show
  1. package/daemon.js +4 -1
  2. 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-telepty",
3
- "version": "0.1.58",
3
+ "version": "0.1.59",
4
4
  "main": "daemon.js",
5
5
  "bin": {
6
6
  "aigentry-telepty": "install.js",