@@ -12,6 +12,7 @@ import { WalletPanel } from './panels/WalletPanel/WalletPanel'
1212import { RecoveryPanel } from './panels/RecoveryPanel/RecoveryPanel'
1313import { SettingsPanel } from './panels/SettingsPanel/SettingsPanel'
1414import { ToolBrowser } from './panels/Tools/ToolBrowser'
15+ import { AgentGrid } from './panels/Terminal/AgentGrid'
1516import { PluginManager } from './panels/PluginManager/PluginManager'
1617import { PluginDashboard } from './panels/PluginDashboard/PluginDashboard'
1718import { Titlebar } from './panels/Titlebar/Titlebar'
@@ -39,6 +40,7 @@ function App() {
3940 const setProjects = useUIStore ( ( s ) => s . setProjects )
4041 const activePluginId = usePluginStore ( ( s ) => s . activePluginId )
4142 const showOnboarding = useUIStore ( ( s ) => s . showOnboarding )
43+ const agentGridMode = useUIStore ( ( s ) => s . agentGridMode )
4244 const [ showExplorer , setShowExplorer ] = useState ( true )
4345 const [ showRightPanel , setShowRightPanel ] = useState ( true )
4446 const [ showAgentLauncher , setShowAgentLauncher ] = useState ( false )
@@ -118,6 +120,9 @@ function App() {
118120 } else if ( ( e . ctrlKey || e . metaKey ) && e . key === 'b' ) {
119121 e . preventDefault ( )
120122 setShowRightPanel ( ( v ) => ! v )
123+ } else if ( ( e . ctrlKey || e . metaKey ) && e . key === 'g' ) {
124+ e . preventDefault ( )
125+ useUIStore . getState ( ) . setAgentGridMode ( ! useUIStore . getState ( ) . agentGridMode )
121126 }
122127 }
123128 window . addEventListener ( 'keydown' , handleKeyDown )
@@ -154,7 +159,9 @@ function App() {
154159
155160 < div className = "center-area" >
156161 < div className = "editor-area" >
157- { isCenterPanelPlugin && activePlugin ? (
162+ { agentGridMode ? (
163+ < AgentGrid />
164+ ) : isCenterPanelPlugin && activePlugin ? (
158165 < PluginErrorBoundary >
159166 < Suspense fallback = { < PluginFallback /> } >
160167 < activePlugin . component />
@@ -164,10 +171,10 @@ function App() {
164171 < PluginDashboard />
165172 ) : activePanel === 'env' ? < EnvManager /> : activePanel === 'git' ? < GitPanel /> : activePanel === 'recovery' ? < RecoveryPanel /> : activePanel === 'settings' ? < SettingsPanel /> : activePanel === 'tools' ? < ToolBrowser /> : < EditorPanel /> }
166173 </ div >
167- < div className = "splitter" { ...splitterProps } />
168- < div className = "terminal-area" style = { { height : terminalHeight } } >
174+ { ! agentGridMode && < div className = "splitter" { ...splitterProps } /> }
175+ { ! agentGridMode && < div className = "terminal-area" style = { { height : terminalHeight } } >
169176 < TerminalPanel />
170- </ div >
177+ </ div > }
171178 </ div >
172179
173180 { shouldShowRightPanel && < aside className = "right-panel" >
0 commit comments