personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

convey/chat: split chat-bar prefill into fill vs suggest

Replace window.openConversation with two named entry points:
fillChat(text) writes text into the composer for immediate
submission, suggestChat(text) keeps the placeholder/Tab-accept
affordance for ambient suggestions.

Co-Authored-By: OpenAI Codex <codex@openai.com>

+19 -7
+4 -4
apps/home/workspace.html
··· 1434 1434 return; 1435 1435 } 1436 1436 var el = e.target.closest('[data-conversation]'); 1437 - if (el && window.openConversation) { 1437 + if (el && window.suggestChat) { 1438 1438 e.preventDefault(); 1439 1439 if (el.closest('[data-routine-click]') || el.hasAttribute('data-routine-click')) { 1440 1440 fetch('/app/home/api/routines/seen', {method: 'POST'}); 1441 1441 } 1442 - window.openConversation(el.dataset.conversation); 1442 + window.suggestChat(el.dataset.conversation); 1443 1443 } 1444 1444 }); 1445 1445 dashboard.addEventListener('keydown', function(e) { ··· 1458 1458 return; 1459 1459 } 1460 1460 var el = e.target.closest('[data-conversation]'); 1461 - if (el && window.openConversation) { 1461 + if (el && window.suggestChat) { 1462 1462 e.preventDefault(); 1463 1463 if (el.closest('[data-routine-click]') || el.hasAttribute('data-routine-click')) { 1464 1464 fetch('/app/home/api/routines/seen', {method: 'POST'}); 1465 1465 } 1466 - window.openConversation(el.dataset.conversation); 1466 + window.suggestChat(el.dataset.conversation); 1467 1467 } 1468 1468 }); 1469 1469 }
+15 -3
convey/templates/app.html
··· 535 535 clearConversationSuggestion(); 536 536 } 537 537 538 - window.openConversation = function(suggestion) { 538 + window.fillChat = function(text) { 539 + if (!input) return; 540 + input.focus(); 541 + input.value = text; 542 + clearConversationSuggestion(); 543 + resizeComposer(); 544 + if (typeof input.setSelectionRange === 'function') { 545 + var end = input.value.length; 546 + input.setSelectionRange(end, end); 547 + } 548 + }; 549 + 550 + window.suggestChat = function(text) { 539 551 if (!input) return; 540 552 if (!input.dataset.defaultPlaceholder) input.dataset.defaultPlaceholder = input.placeholder || ''; 541 - input.dataset.suggestion = suggestion; 542 - input.placeholder = suggestion; 553 + input.dataset.suggestion = text; 554 + input.placeholder = text; 543 555 input.focus(); 544 556 }; 545 557