Update terminal components and command specifications
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -509,7 +509,7 @@ export const CommandInput = React.forwardRef<CommandInputHandle, CommandInputPro
|
||||
) : null}
|
||||
|
||||
{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) => (
|
||||
<button
|
||||
key={suggestion.command}
|
||||
|
||||
@@ -90,7 +90,7 @@ export const Terminal: React.FC<TerminalProps> = ({
|
||||
const handleTerminalSubmit = React.useCallback(
|
||||
(command: string) => {
|
||||
const normalized = command.trim().toLowerCase();
|
||||
if (normalized === '/note add') {
|
||||
if (normalized === '/notes add') {
|
||||
setTerminalNoteSeed({
|
||||
key: `${Date.now()}-note-add`,
|
||||
ticker: researchContext?.ticker,
|
||||
@@ -101,7 +101,7 @@ export const Terminal: React.FC<TerminalProps> = ({
|
||||
return;
|
||||
}
|
||||
|
||||
if (normalized === '/note current') {
|
||||
if (normalized === '/notes current') {
|
||||
const seed = buildTerminalResearchNoteSeed(history);
|
||||
setTerminalNoteSeed({
|
||||
key: `${Date.now()}-note-current`,
|
||||
@@ -122,7 +122,7 @@ export const Terminal: React.FC<TerminalProps> = ({
|
||||
|
||||
const captureContextLabel = terminalNoteSeed?.contextLabel ?? researchContext?.label;
|
||||
const captureTicker = terminalNoteSeed?.ticker ?? researchContext?.ticker;
|
||||
const showResearchCapture = Boolean(researchContext || terminalNoteSeed);
|
||||
const showResearchCapture = Boolean(terminalNoteSeed);
|
||||
|
||||
return (
|
||||
<div className="relative flex h-full min-w-0 flex-col overflow-hidden bg-[#0a0a0a]">
|
||||
|
||||
@@ -272,18 +272,18 @@ export const TERMINAL_COMMAND_SPECS: TerminalCommandSpec[] = [
|
||||
examples: ['/analyze AAPL'],
|
||||
},
|
||||
{
|
||||
command: '/note add',
|
||||
command: '/notes add',
|
||||
description: 'Open quick research note capture',
|
||||
category: 'research',
|
||||
arguments: [],
|
||||
examples: ['/note add'],
|
||||
examples: ['/notes add'],
|
||||
},
|
||||
{
|
||||
command: '/note current',
|
||||
command: '/notes current',
|
||||
description: 'Capture the current terminal context as a research note',
|
||||
category: 'research',
|
||||
arguments: [],
|
||||
examples: ['/note current'],
|
||||
examples: ['/notes current'],
|
||||
},
|
||||
{
|
||||
command: '/help',
|
||||
|
||||
Reference in New Issue
Block a user