Update terminal components and command specifications

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-09 16:14:41 -04:00
parent 1fc677d2a6
commit edcd8d7401
3 changed files with 8 additions and 8 deletions

View File

@@ -509,7 +509,7 @@ export const CommandInput = React.forwardRef<CommandInputHandle, CommandInputPro
) : null} ) : null}
{showSuggestions && suggestionMatches.length > 0 ? ( {showSuggestions && suggestionMatches.length > 0 ? (
<div className="absolute inset-x-0 top-full z-20 mt-2 border border-[#2a2a2a] bg-[#1a1a1a]"> <div className="absolute inset-x-0 top-full z-20 mt-2 max-h-[320px] overflow-y-auto border border-[#2a2a2a] bg-[#1a1a1a]">
{suggestionMatches.map((suggestion) => ( {suggestionMatches.map((suggestion) => (
<button <button
key={suggestion.command} key={suggestion.command}

View File

@@ -90,7 +90,7 @@ export const Terminal: React.FC<TerminalProps> = ({
const handleTerminalSubmit = React.useCallback( const handleTerminalSubmit = React.useCallback(
(command: string) => { (command: string) => {
const normalized = command.trim().toLowerCase(); const normalized = command.trim().toLowerCase();
if (normalized === '/note add') { if (normalized === '/notes add') {
setTerminalNoteSeed({ setTerminalNoteSeed({
key: `${Date.now()}-note-add`, key: `${Date.now()}-note-add`,
ticker: researchContext?.ticker, ticker: researchContext?.ticker,
@@ -101,7 +101,7 @@ export const Terminal: React.FC<TerminalProps> = ({
return; return;
} }
if (normalized === '/note current') { if (normalized === '/notes current') {
const seed = buildTerminalResearchNoteSeed(history); const seed = buildTerminalResearchNoteSeed(history);
setTerminalNoteSeed({ setTerminalNoteSeed({
key: `${Date.now()}-note-current`, key: `${Date.now()}-note-current`,
@@ -122,7 +122,7 @@ export const Terminal: React.FC<TerminalProps> = ({
const captureContextLabel = terminalNoteSeed?.contextLabel ?? researchContext?.label; const captureContextLabel = terminalNoteSeed?.contextLabel ?? researchContext?.label;
const captureTicker = terminalNoteSeed?.ticker ?? researchContext?.ticker; const captureTicker = terminalNoteSeed?.ticker ?? researchContext?.ticker;
const showResearchCapture = Boolean(researchContext || terminalNoteSeed); const showResearchCapture = Boolean(terminalNoteSeed);
return ( return (
<div className="relative flex h-full min-w-0 flex-col overflow-hidden bg-[#0a0a0a]"> <div className="relative flex h-full min-w-0 flex-col overflow-hidden bg-[#0a0a0a]">

View File

@@ -272,18 +272,18 @@ export const TERMINAL_COMMAND_SPECS: TerminalCommandSpec[] = [
examples: ['/analyze AAPL'], examples: ['/analyze AAPL'],
}, },
{ {
command: '/note add', command: '/notes add',
description: 'Open quick research note capture', description: 'Open quick research note capture',
category: 'research', category: 'research',
arguments: [], arguments: [],
examples: ['/note add'], examples: ['/notes add'],
}, },
{ {
command: '/note current', command: '/notes current',
description: 'Capture the current terminal context as a research note', description: 'Capture the current terminal context as a research note',
category: 'research', category: 'research',
arguments: [], arguments: [],
examples: ['/note current'], examples: ['/notes current'],
}, },
{ {
command: '/help', command: '/help',