Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/tui/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ export default function App({
*/
const handleCommand = async (trimmed) => {
try {
// Always show the user's command in the chat display
addMessage({ role: "user", content: trimmed });

const result = parser.parse(trimmed, {
_sessionState: sessionState,
_setConfigValue: (dotPath, valueStr) => {
Expand Down Expand Up @@ -187,6 +190,10 @@ export default function App({
gcManager?.();
setStatusMessage("Streaming...");

if (sessionState) {
sessionState.addExchange({ role: "user", content: trimmed });
}

const assistantTime = getTimestamp();
setMessages((prev) => [
...prev,
Expand Down