@@ -101,6 +101,7 @@ func init() {
101type sessionServices struct {
101type sessionServices struct {
102 sessions session.Service
102 sessions session.Service
103 messages message.Service
103 messages message.Service
104+ cfg *config.ConfigStore
106func sessionSetup(cmd *cobra.Command) (context.Context, *sessionServices, func(), error) {
107func sessionSetup(cmd *cobra.Command) (context.Context, *sessionServices, func(), error) {
@@ -127,6 +128,7 @@ func sessionSetup(cmd *cobra.Command) (context.Context, *sessionServices, func()
127 svc := &sessionServices{
128 svc := &sessionServices{
128 sessions: session.NewService(queries, conn),
129 sessions: session.NewService(queries, conn),
129 messages: message.NewService(queries),
130 messages: message.NewService(queries),
131 return ctx, svc, func() { conn.Close() }, nil
133 return ctx, svc, func() { conn.Close() }, nil
@@ -280,7 +282,7 @@ func runSessionShow(cmd *cobra.Command, args []string) error {
280 if sessionShowJSON {
282 if sessionShowJSON {
281 return outputSessionJSON(cmd.OutOrStdout(), sess, msgPtrs)
283 return outputSessionJSON(cmd.OutOrStdout(), sess, msgPtrs)
283− return outputSessionHuman(ctx, sess, msgPtrs)
285+ return outputSessionHuman(ctx, svc.cfg, sess, msgPtrs)
286func runSessionDelete(cmd *cobra.Command, args []string) error {
288func runSessionDelete(cmd *cobra.Command, args []string) error {
@@ -387,7 +389,7 @@ func runSessionLast(cmd *cobra.Command, _ []string) error {
387 if sessionLastJSON {
389 if sessionLastJSON {
388 return outputSessionJSON(cmd.OutOrStdout(), sess, msgPtrs)
390 return outputSessionJSON(cmd.OutOrStdout(), sess, msgPtrs)
390− return outputSessionHuman(ctx, sess, msgPtrs)
392+ return outputSessionHuman(ctx, svc.cfg, sess, msgPtrs)
@@ -437,8 +439,12 @@ func outputSessionJSON(w io.Writer, sess session.Session, msgs []*message.Messag
437 return enc.Encode(output)
439 return enc.Encode(output)
440−func outputSessionHuman(ctx context.Context, sess session.Session, msgs []*message.Message) error {
442+func outputSessionHuman(ctx context.Context, cfg *config.ConfigStore, sess session.Session, msgs []*message.Message) error {
441− styles := styles.CharmtonePantera()
443+ var providerID string
445+ providerID = cfg.Config().Models[config.SelectedModelTypeLarge].Provider
447+ styles := styles.ThemeForProvider(providerID)
442 toolResults := chat.BuildToolResultMap(msgs)
448 toolResults := chat.BuildToolResultMap(msgs)
444 width := sessionOutputWidth
450 width := sessionOutputWidth