agentgui 1.0.780 → 1.0.781

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/lib/db-queries.js CHANGED
@@ -1344,6 +1344,8 @@ export function createQueries(db, prep, generateId) {
1344
1344
 
1345
1345
  searchMessages(query, limit = 50) {
1346
1346
  try {
1347
+ // Escape FTS5 special characters and wrap as phrase query
1348
+ const sanitized = '"' + query.replace(/"/g, '""') + '"';
1347
1349
  const stmt = prep(`
1348
1350
  SELECT m.id, m.conversationId, m.role, m.content, m.created_at,
1349
1351
  c.title as conversationTitle, c.agentType
@@ -1353,7 +1355,7 @@ export function createQueries(db, prep, generateId) {
1353
1355
  WHERE messages_fts MATCH ?
1354
1356
  ORDER BY m.created_at DESC LIMIT ?
1355
1357
  `);
1356
- return stmt.all(query, limit);
1358
+ return stmt.all(sanitized, limit);
1357
1359
  } catch (_) { return []; }
1358
1360
  },
1359
1361
 
@@ -255,9 +255,7 @@ export function register(router, deps) {
255
255
  }
256
256
 
257
257
  if (sessionId) queries.updateSession(sessionId, { status: 'interrupted', completed_at: Date.now() });
258
- queries.setIsStreaming(p.id, false);
259
- execMachine.send(p.id, { type: 'CANCEL' });
260
- activeExecutions.delete(p.id);
258
+ cleanupExecution(p.id);
261
259
 
262
260
  // Clear claudeSessionId so new execution starts fresh without --resume on a killed session
263
261
  queries.setClaudeSessionId(p.id, null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.780",
3
+ "version": "1.0.781",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "electron/main.js",