File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
crates/chat-cli/src/cli/chat/cli Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 11use clap:: { Subcommand , ValueEnum } ;
2+ use crossterm:: { queue, style} ;
23use eyre:: Result ;
34
45use crate :: cli:: chat:: { ChatError , ChatSession , ChatState } ;
@@ -59,7 +60,24 @@ impl ResourceSubcommand {
5960 Some ( StorageType :: Indexed ) => KnowledgeSubcommand :: Show . execute ( os, session) . await ,
6061 Some ( StorageType :: Pinned ) => ContextSubcommand :: Show { expand } . execute ( os, session) . await ,
6162 None => {
63+ // Show both with clear separation
64+ queue ! (
65+ session. stderr,
66+ style:: SetForegroundColor ( style:: Color :: Cyan ) ,
67+ style:: Print ( "📌 Pinned Resources (always included):\n " ) ,
68+ style:: ResetColor
69+ ) ?;
70+
6271 ContextSubcommand :: Show { expand } . execute ( os, session) . await ?;
72+
73+ queue ! (
74+ session. stderr,
75+ style:: Print ( "\n " ) ,
76+ style:: SetForegroundColor ( style:: Color :: Green ) ,
77+ style:: Print ( "🔍 Indexed Resources (retrieved on demand):\n " ) ,
78+ style:: ResetColor
79+ ) ?;
80+
6381 KnowledgeSubcommand :: Show . execute ( os, session) . await
6482 }
6583 }
You can’t perform that action at this time.
0 commit comments