wip: local changes and task backlog

- Refactor agent-form-dropdowns component
- Simplify app index routing
- Update agent-input-area and message-input
- Improve worktree utility with tests
- Add task backlog for upcoming work
This commit is contained in:
Mohamed Boudra
2026-01-09 08:40:16 +07:00
parent cc74d6d0d2
commit 3ba778eea7
37 changed files with 935 additions and 607 deletions
@@ -222,17 +222,19 @@ export function AgentInputArea({
}
const isControlled = value !== undefined;
if (!isControlled) {
setUserInput("");
}
setSelectedImages([]);
setIsProcessing(true);
try {
await submitMessage(trimmedMessage, imageAttachments);
// Clear input only after successful submission
if (isControlled) {
onChangeText?.("");
} else {
setUserInput("");
}
} catch (error) {
console.error("[AgentInput] Failed to send message:", error);
setUserInput(trimmedMessage);
if (imageAttachments) {
setSelectedImages(imageAttachments);
}