@@ -719,11 +719,11 @@ impl PromptsArgs {
719719 let ( local_exists, global_exists) = ( prompts. local . exists ( ) , prompts. global . exists ( ) ) ;
720720
721721 if global_exists {
722- global_prompts. push ( name) ;
722+ global_prompts. push ( ( name, prompts . global . path . clone ( ) ) ) ;
723723 }
724724
725725 if local_exists {
726- local_prompts. push ( name) ;
726+ local_prompts. push ( ( name, prompts . local . path . clone ( ) ) ) ;
727727 // Check for overrides using has_local_override method
728728 if global_exists {
729729 overridden_globals. push ( name) ;
@@ -733,19 +733,15 @@ impl PromptsArgs {
733733 }
734734
735735 if !global_prompts. is_empty ( ) {
736- let global_dir = PathResolver :: new ( os)
737- . global ( )
738- . prompts_dir ( )
739- . map_or_else ( |_| "global prompts" . to_string ( ) , |p| p. display ( ) . to_string ( ) ) ;
740736 queue ! (
741737 session. stderr,
742738 style:: SetAttribute ( Attribute :: Bold ) ,
743- style:: Print ( & format! ( "Global ({global_dir}):" ) ) ,
739+ style:: Print ( "Global:" ) ,
744740 StyledText :: reset_attributes( ) ,
745741 style:: Print ( "\n " ) ,
746742 ) ?;
747- for name in & global_prompts {
748- queue ! ( session. stderr, style:: Print ( "- " ) , style :: Print ( name ) ) ?;
743+ for ( _name , path ) in & global_prompts {
744+ queue ! ( session. stderr, style:: Print ( & path . to_string_lossy ( ) ) ) ?;
749745 queue ! ( session. stderr, style:: Print ( "\n " ) ) ?;
750746 }
751747 }
@@ -754,20 +750,16 @@ impl PromptsArgs {
754750 if !global_prompts. is_empty ( ) {
755751 queue ! ( session. stderr, style:: Print ( "\n " ) ) ?;
756752 }
757- let local_dir = PathResolver :: new ( os)
758- . workspace ( )
759- . prompts_dir ( )
760- . map_or_else ( |_| "local prompts" . to_string ( ) , |p| p. display ( ) . to_string ( ) ) ;
761753 queue ! (
762754 session. stderr,
763755 style:: SetAttribute ( Attribute :: Bold ) ,
764- style:: Print ( & format! ( "Local ({local_dir}):" ) ) ,
756+ style:: Print ( "Local:" ) ,
765757 StyledText :: reset_attributes( ) ,
766758 style:: Print ( "\n " ) ,
767759 ) ?;
768- for name in & local_prompts {
760+ for ( name, path ) in & local_prompts {
769761 let has_global_version = overridden_globals. contains ( name) ;
770- queue ! ( session. stderr, style:: Print ( "- " ) , style :: Print ( name ) , ) ?;
762+ queue ! ( session. stderr, style:: Print ( & path . to_string_lossy ( ) ) ) ?;
771763 if has_global_version {
772764 queue ! (
773765 session. stderr,
0 commit comments