Placeholder text

This commit is contained in:
Ian Gulliver
2026-10-15 21:56:59 -07:00
parent 2ce10a6c65
commit 4540a63901
10 changed files with 14 additions and 24 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ const taskSource = {
streamTopic: "stream",
empty: "No task selected. Ask your lead, or pick one with ⌘K.",
canSend: () => true,
placeholder: (s) => s === "running" ? "Message the agent; it reads this after its next tool call, or when its turn ends" : "Message the agent. Paste or drop images to attach them.",
placeholder: "Message the agent. Paste or drop images to attach them.",
send: async ({ key, sessionId, text, images, model, firstModel }) => {
if (sessionId) {
await post("/api/sessions/{sessionId}/messages", { path: { sessionId }, body: { text, images, model } });
@@ -616,7 +616,7 @@ function modelSelect(key, current, vendor) {
return select;
}
function composeForm(src, key, sessionId, sessionState, currentModel, vendor, showPending) {
const text = h("textarea", { placeholder: src.placeholder(sessionState), rows: 3 });
const text = h("textarea", { placeholder: src.placeholder, rows: 3 });
const clearDraft = keepDraft(text, `message:${key}`);
const send = h("button", { type: "submit", disabled: !src.canSend(sessionState) }, "Send");
const interrupt = h("button", { type: "button", class: "danger", disabled: sessionState !== "running" }, "Interrupt");