feat(cli): add /btw slash command for ephemeral side questions

Allow users to ask quick "by the way" questions that use the current
conversation context but don't pollute the main conversation history.

Closes #2370

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Shaojin Wen 2026-03-14 15:50:41 +08:00
parent 1359563f45
commit 3818f8acd4
6 changed files with 201 additions and 1 deletions

View file

@ -39,6 +39,7 @@ import { SkillsList } from './views/SkillsList.js';
import { ToolsList } from './views/ToolsList.js';
import { McpStatus } from './views/McpStatus.js';
import { InsightProgressMessage } from './messages/InsightProgressMessage.js';
import { BtwMessage } from './messages/BtwMessage.js';
interface HistoryItemDisplayProps {
item: HistoryItem;
@ -194,6 +195,7 @@ const HistoryItemDisplayComponent: React.FC<HistoryItemDisplayProps> = ({
{itemForDisplay.type === 'insight_progress' && (
<InsightProgressMessage progress={itemForDisplay.progress} />
)}
{itemForDisplay.type === 'btw' && <BtwMessage btw={itemForDisplay.btw} />}
</Box>
);
};