setIsExpanded(!isExpanded)}
+ role="button"
+ aria-expanded={isExpanded}
+ tabIndex={0}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ setIsExpanded(!isExpanded);
+ }
+ }}
+ >
+ {/* Top-left label badge */}
+
+
+ Thinking
+ {inProgress && (
+
+ )}
+
+
+ {/* Indicator icon */}
+
+ {isExpanded ? : }
+
+
+ {/* Main content with smooth transition */}
+
+
+ {typeof children === "string" ? (
+
+ ) : (
+ children
+ )}
+
+
+
+ );
+};
diff --git a/src/prompts/system_prompt.ts b/src/prompts/system_prompt.ts
index 74f004d..f4cbdf3 100644
--- a/src/prompts/system_prompt.ts
+++ b/src/prompts/system_prompt.ts
@@ -1,3 +1,55 @@
+export const THINKING_PROMPT = `
+# Thinking Process
+
+Before responding to user requests, ALWAYS use