feat: fixed-height near-white input, terse-answer system prompt

This commit is contained in:
aedes
2026-04-21 14:32:03 +03:00
parent b7cdaeeb88
commit 321390ea0a
2 changed files with 8 additions and 8 deletions

View File

@@ -72,16 +72,21 @@
width: 100%;
border: none;
background: transparent;
color: #555;
color: #f2f2f2;
font-size: 14px;
outline: none;
resize: none;
height: 28px;
max-height: 28px;
min-height: 28px;
line-height: 1.5;
padding: 4px 0;
overflow: hidden;
white-space: nowrap;
font-family: proxima_nova_rgregular, Arial, sans-serif;
caret-color: #c4c4c4;
}
#chat-input::placeholder { color: #d0d0d0; }
#chat-input::placeholder { color: transparent; }
/* Slight override to keep well-lg radius 0 like real portal */
.well-lg { border-radius: 0; }
@@ -356,11 +361,6 @@
}, 50);
});
// Auto-grow textarea
inputEl.addEventListener('input', () => {
inputEl.style.height = 'auto';
inputEl.style.height = inputEl.scrollHeight + 'px';
});
</script>
</body>
</html>

View File

@@ -63,7 +63,7 @@ app.post('/api/chat', async (req, res) => {
model: modelId,
max_tokens: 8192,
stream: true,
system: "You are Claude Code, Anthropic's official CLI for Claude.",
system: "You are Claude Code, Anthropic's official CLI for Claude.\n\nAnswer in the same language as the user. Give the shortest possible correct answer. No greetings, no filler, no emojis, no markdown formatting unless the user explicitly asks for code. Do not restate the question. Do not add caveats or disclaimers. Respond with just the answer — nothing else.",
messages: [{ role: 'user', content: text }],
}),
});