@ttigger/claude-status 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/engine.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttigger/claude-status",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "A portable Claude Code statusline HUD (usage, model, git, context) with 7 styles, a cc launcher, and a config CLI with live preview.",
5
5
  "license": "MIT",
6
6
  "engines": { "node": ">=18" },
package/src/engine.js CHANGED
@@ -32,7 +32,10 @@ function buildParts({ els, style, palette, config, now, opts }) {
32
32
 
33
33
  // env group
34
34
  if (config.elements.model && els.model) {
35
- const name = els.model.name + (els.model.context1m ? '·1M' : '');
35
+ // Only append ·1M when the display name doesn't already advertise it
36
+ // (real Claude Code sends names like "Opus 4.8 (1M context)").
37
+ const already1m = /1m/i.test(els.model.name);
38
+ const name = els.model.name + (els.model.context1m && !already1m ? '·1M' : '');
36
39
  push('model', (icons.model ? icons.model + ' ' : '') + name, 'env');
37
40
  }
38
41
  if (config.elements.project && els.project) {