From 680847918f62f8447c103207f03208866501e568 Mon Sep 17 00:00:00 2001 From: AnnatarHe Date: Sun, 1 Mar 2026 10:57:21 +0800 Subject: [PATCH] feat(model): enable key features by default in config Enable data masking, encryption, CCUsage, AICodeOtel, and code tracking by default so new users get the full feature set out of the box. Co-Authored-By: Claude Opus 4.6 --- model/types.go | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/model/types.go b/model/types.go index a2e3ed9..1940bf6 100644 --- a/model/types.go +++ b/model/types.go @@ -115,17 +115,25 @@ var DefaultConfig = ShellTimeConfig{ FlushCount: 10, // 2 weeks by default GCTime: 14, - DataMasking: nil, + DataMasking: new(true), Endpoints: nil, EnableMetrics: nil, - Encrypted: nil, + Encrypted: new(true), AI: DefaultAIConfig, Exclude: []string{}, - CCUsage: nil, - CCOtel: nil, // deprecated - AICodeOtel: nil, - CodeTracking: nil, - LogCleanup: nil, + CCUsage: new(CCUsage{ + Enabled: new(true), + }), + CCOtel: nil, + AICodeOtel: new(AICodeOtel{ + Enabled: new(true), + GRPCPort: 54027, + Debug: new(false), + }), + CodeTracking: new(CodeTracking{ + Enabled: new(true), + }), + LogCleanup: nil, SocketPath: DefaultSocketPath, }