Renamed SOLO Mode to SmartX Engine

This commit is contained in:
Gemini AI
2025-12-14 12:32:10 +04:00
Unverified
parent 48dbf79879
commit 956b177200
2 changed files with 24 additions and 23 deletions

View File

@@ -58,7 +58,7 @@ We recommend starting with **Next-Gen (Option 5)**!
| **Visuals** | **Animated Borders**, RGB Pulse, Spinners | Static Text | | **Visuals** | **Animated Borders**, RGB Pulse, Spinners | Static Text |
| **Interactivity**| **Interactive Menus** (Arrow Keys Selection) | Command-based only | | **Interactivity**| **Interactive Menus** (Arrow Keys Selection) | Command-based only |
| **Computer Use** | **Command Execution** (Runs shell cmds) | Read-only | | **Computer Use** | **Command Execution** (Runs shell cmds) | Read-only |
| **SOLO Mode** | **Autonomous Operation** (Auto-heal, auto-execute) | N/A | | **SmartX Engine** | **Autonomous Operation** (Auto-heal, auto-execute) | N/A |
| **Auto-Approve** | **AutoRun Commands** without Y/N prompts | N/A | | **Auto-Approve** | **AutoRun Commands** without Y/N prompts | N/A |
| **Projects** | **Any Absolute Path** (e.g. E:\MyProject) | Subfolders Only | | **Projects** | **Any Absolute Path** (e.g. E:\MyProject) | Subfolders Only |
| **Models** | **Visual Model Selector** (`/model`) | Manual Switch via CLI | | **Models** | **Visual Model Selector** (`/model`) | Manual Switch via CLI |
@@ -68,22 +68,22 @@ We recommend starting with **Next-Gen (Option 5)**!
--- ---
## 🤖 SOLO Mode & Auto-Approve ## 🤖 SmartX Engine & Auto-Approve
OpenQode Gen 5 introduces powerful automation features for hands-free coding: OpenQode Gen 5 introduces powerful automation features for hands-free coding:
![Features Panel](assets/features-panel.png) ![Features Panel](assets/features-panel.png)
### 🚀 SOLO Mode ### 🚀 SmartX Engine
When enabled, the AI operates autonomously - executing commands, writing files, and fixing errors without constant prompts. When enabled, the AI operates autonomously - executing commands, writing files, and fixing errors without constant prompts.
- Toggle via `/solo on` or `/solo off` - Toggle via `/smartx on` or `/smartx off`
- Visible in sidebar: `SOLO: ON` (magenta) - Visible in sidebar: `SmartX: ON` (magenta)
### ⚡ Auto-Approve (AutoRun) ### ⚡ Auto-Approve (AutoRun)
Automatically approve and execute AI-suggested commands without Y/N confirmation. Automatically approve and execute AI-suggested commands without Y/N confirmation.
- Toggle via `/auto` - Toggle via `/auto`
- Visible in sidebar: `AutoRun: ON` (yellow) - Visible in sidebar: `AutoRun: ON` (yellow)
- **Best used with SOLO mode** for fully autonomous operation - **Best used with SmartX Engine** for fully autonomous operation
> 💡 **Tip:** Press `ESC` at any time to abort a running command! > 💡 **Tip:** Press `ESC` at any time to abort a running command!

View File

@@ -1302,7 +1302,7 @@ const Sidebar = ({
: h(Text, { color: 'gray', dimColor: true }, 'OFF') : h(Text, { color: 'gray', dimColor: true }, 'OFF')
), ),
h(Box, {}, h(Box, {},
h(Text, { color: 'gray' }, 'SOLO: '), h(Text, { color: 'gray' }, 'SmartX: '),
soloMode soloMode
? h(Text, { color: 'magenta', bold: true }, 'ON') ? h(Text, { color: 'magenta', bold: true }, 'ON')
: h(Text, { color: 'gray', dimColor: true }, 'OFF') : h(Text, { color: 'gray', dimColor: true }, 'OFF')
@@ -2266,11 +2266,11 @@ const App = () => {
const [showTimeoutRow, setShowTimeoutRow] = useState(false); const [showTimeoutRow, setShowTimeoutRow] = useState(false);
const [lastCheckpointText, setLastCheckpointText] = useState(''); const [lastCheckpointText, setLastCheckpointText] = useState('');
// SOLO MODE STATE // SMARTX ENGINE STATE
const [soloMode, setSoloMode] = useState(false); const [soloMode, setSoloMode] = useState(false);
const [autoApprove, setAutoApprove] = useState(false); // Auto-execute commands in SOLO mode const [autoApprove, setAutoApprove] = useState(false); // Auto-execute commands in SmartX Engine
// AUTO-APPROVE: Automatically execute commands in SOLO mode // AUTO-APPROVE: Automatically execute commands in SmartX Engine
useEffect(() => { useEffect(() => {
if (autoApprove && soloMode && detectedCommands.length > 0 && !isExecutingCommands) { if (autoApprove && soloMode && detectedCommands.length > 0 && !isExecutingCommands) {
handleExecuteCommands(true); handleExecuteCommands(true);
@@ -2502,11 +2502,12 @@ const App = () => {
const arg = parts.slice(1).join(' '); const arg = parts.slice(1).join(' ');
switch (cmd) { switch (cmd) {
case '/solo': case '/smartx':
case '/solo': // Legacy alias
setSoloMode(prev => !prev); setSoloMode(prev => !prev);
setMessages(prev => [...prev, { setMessages(prev => [...prev, {
role: 'system', role: 'system',
content: `🤖 **SOLO MODE: ${!soloMode ? 'ON (Auto-Heal Enabled)' : 'OFF'}**\nErrors will now be automatically reported to the agent for fixing.` content: `🤖 **SMARTX ENGINE: ${!soloMode ? 'ON (Auto-Heal Enabled)' : 'OFF'}**\nErrors will now be automatically reported to the agent for fixing.`
}]); }]);
setInput(''); setInput('');
return; return;
@@ -2886,7 +2887,7 @@ const App = () => {
setAutoApprove(prev => !prev); setAutoApprove(prev => !prev);
setMessages(prev => [...prev, { setMessages(prev => [...prev, {
role: 'system', role: 'system',
content: !autoApprove ? '▶️ Auto-Approve **ENABLED** - Commands execute automatically in SOLO mode' : '⏸ Auto-Approve **DISABLED** - Commands require confirmation' content: !autoApprove ? '▶️ Auto-Approve **ENABLED** - Commands execute automatically in SmartX Engine' : '⏸ Auto-Approve **DISABLED** - Commands require confirmation'
}]); }]);
setInput(''); setInput('');
return; return;
@@ -3439,9 +3440,9 @@ This gives the user a chance to refine requirements before implementation.
const cmds = extractCommands(responseText); const cmds = extractCommands(responseText);
if (cmds.length > 0) { if (cmds.length > 0) {
setDetectedCommands(cmds); setDetectedCommands(cmds);
// SOLO MODE: AUTO-APPROVE // SMARTX ENGINE: AUTO-APPROVE
if (soloMode) { if (soloMode) {
setMessages(prev => [...prev, { role: 'system', content: `🤖 **SOLO MODE**: Auto-executing ${cmds.length} detected command(s)...` }]); setMessages(prev => [...prev, { role: 'system', content: `🤖 **SMARTX ENGINE**: Auto-executing ${cmds.length} detected command(s)...` }]);
// Execute immediately, bypassing UI prompt // Execute immediately, bypassing UI prompt
handleExecuteCommands(true, cmds); handleExecuteCommands(true, cmds);
} }
@@ -3730,7 +3731,7 @@ This gives the user a chance to refine requirements before implementation.
setIsExecutingCommands(false); setIsExecutingCommands(false);
} }
// SOLO MODE: AUTO-HEAL // SMARTX ENGINE: AUTO-HEAL
// If any command failed, immediately report back to the agent // If any command failed, immediately report back to the agent
const failures = results.filter(r => r.failed); const failures = results.filter(r => r.failed);
if (soloMode && failures.length > 0 && !isCancelled) { if (soloMode && failures.length > 0 && !isCancelled) {
@@ -3953,10 +3954,10 @@ This gives the user a chance to refine requirements before implementation.
{ label: '/project Project Info', value: '/project' }, { label: '/project Project Info', value: '/project' },
{ label: '/write Write Files', value: '/write' }, { label: '/write Write Files', value: '/write' },
{ label: '/clear Clear Session', value: '/clear' }, { label: '/clear Clear Session', value: '/clear' },
// SOLO Mode toggle // SmartX Engine toggle
soloMode soloMode
? { label: '/solo off SOLO Mode → OFF', value: '/solo off' } ? { label: '/solo off SmartX Engine → OFF', value: '/smartx off' }
: { label: '/solo on SOLO Mode → ON', value: '/solo on' }, : { label: '/solo on SmartX Engine → ON', value: '/smartx on' },
// Auto-Approve toggle // Auto-Approve toggle
autoApprove autoApprove
? { label: '/auto Auto-Approve → OFF', value: '/auto' } ? { label: '/auto Auto-Approve → OFF', value: '/auto' }
@@ -3997,10 +3998,10 @@ This gives the user a chance to refine requirements before implementation.
offCmd: '/thinking off' offCmd: '/thinking off'
}, },
{ {
name: 'SOLO Mode', name: 'SmartX Engine',
value: soloMode, value: soloMode,
onCmd: '/solo on', onCmd: '/smartx on',
offCmd: '/solo off' offCmd: '/smartx off'
}, },
{ {
name: 'Auto-Approve', name: 'Auto-Approve',
@@ -4046,7 +4047,7 @@ This gives the user a chance to refine requirements before implementation.
h(Text, { color: 'gray' }, ' /project Project Info'), h(Text, { color: 'gray' }, ' /project Project Info'),
h(Text, { color: 'gray' }, ' /write Write Files'), h(Text, { color: 'gray' }, ' /write Write Files'),
h(Text, { color: 'gray' }, ' /clear Clear Session'), h(Text, { color: 'gray' }, ' /clear Clear Session'),
h(Text, { color: 'gray' }, ' /solo SOLO Mode On/Off'), h(Text, { color: 'gray' }, ' /solo SmartX Engine On/Off'),
h(Text, { color: 'gray' }, ' /auto Auto-Approve On/Off'), h(Text, { color: 'gray' }, ' /auto Auto-Approve On/Off'),
h(Text, { color: 'gray' }, ' /exit Exit TUI') h(Text, { color: 'gray' }, ' /exit Exit TUI')
), ),