47 Commits
Author SHA1 Message Date
Troed Sångberg b7a460eb5f release: v1.0.7 - enable debug logging v1.0.7 2026-06-14 19:34:29 +02:00
Troed Sångberg b249c65e2c release: v1.0.5 2026-06-14 14:57:31 +02:00
Troed Sångberg 1d84017a8c release: v1.0.0 v1.0.0 2026-06-14 13:56:43 +02:00
Troed Sångberg 4efa9c58a5 chore: exclude AGENTS.md and test-debug-log.jsonl from npm package 2026-06-14 13:42:01 +02:00
Troed Sångberg 4ca808964d fix: poll llama-server even without model to detect late startup 2026-06-14 13:41:22 +02:00
Troed Sångberg 27bd4fc289 untrack AGENTS.md and test-debug-log.jsonl 2026-06-14 13:34:24 +02:00
Troed Sångberg 67b9e9a108 Clean up repo: remove tracked files, untrack AGENTS.md and test-debug-log.jsonl 2026-06-14 13:33:04 +02:00
Troed Sångberg a9acc38f5d feat: show failure message when model cannot be discovered 2026-06-14 12:37:01 +02:00
Troed Sångberg a0e580b44b docs: clarify that missing model causes polling to skip, not fail 2026-06-14 12:33:37 +02:00
Troed Sångberg 014e63845d docs: replace README with factual description of detection and calculation 2026-06-14 12:28:14 +02:00
Troed Sångberg 074ee79434 refactor: clean up dead code and simplify display format
- Remove unused formatAvg, formatPercent, activeDurationMs functions
- Remove unused constants (LIVE_STALE_MS, SINGLE_SAMPLE_MS)
- Remove unused session average tracking (totalTokens, totalDurationMs, messageCount, totalTtftMs)
- Remove unused lastToolCallAt from MessageTiming
- Remove prefillTotalTokens/prefillProcessedTokens (set but never read)
- Remove unused nt variable from prefill detection loop
- Simplify display: xxxx tps (PP) / xxxx tps (TG) / - tps (TG)
2026-06-14 12:22:25 +02:00
Troed Sångberg be488d69e4 debug: v0.0.57 - log full slot data on every poll 2026-06-14 09:05:06 +02:00
Troed Sångberg 2fde61b6f4 debug: v0.0.56 - enable debug logging with full slot data during prefill 2026-06-14 08:49:00 +02:00
Troed Sångberg c629cd3536 fix: v0.0.55 - use pad3 for percentage display
- Percentages max at 3 chars (100), pad4 gives one too many dashes
2026-06-14 08:41:05 +02:00
Troed Sångberg b54d609934 feat: v0.0.54 - replace AVG with prefill progress percentage
- Display: PP xxxx tps (yyy%) | GEN xxxx tps
- Add prefillTotalTokens and prefillProcessedTokens tracking
- Show progress percentage during prefill
- Remove sessionAverage memo and AVG calculation
2026-06-14 08:37:19 +02:00
Troed Sångberg 9ff08beb1b chore: v0.0.53 - make debug logging toggleable via DEBUG_ENABLED constant
- Set DEBUG_ENABLED = false by default
- Set to true to re-enable file-based debug logging
2026-06-13 23:41:32 +02:00
Troed Sångberg bba57e2eb5 refactor: v0.0.52 - simplify generation tracking to per-slot prev n_decoded
- Track generatePrevNd per slot instead of global generateMaxDecoded
- Calculate TPS from delta between consecutive polls
- Detect resets when nd drops below previous
- Stall (nd == prev) doesn't end generation, just doesn't update TPS
- Reset tracking when no slot found
2026-06-13 23:38:42 +02:00
Troed Sångberg 10319b5e80 fix: v0.0.51 - reset generateMaxDecoded on stall too
- When n_decoded stops increasing, slot may stay is_processing
- Reset max on stall so next generation starts fresh
2026-06-13 23:35:10 +02:00
Troed Sångberg 1aa8675eee fix: v0.0.50 - reset generateMaxDecoded when generation ends
- Previously: max stayed stale from previous session, all new values looked like resets
- Now: reset generateMaxDecoded to 0 when no generating slot is found
2026-06-13 23:31:58 +02:00
Troed Sångberg 66fe076f29 fix: v0.0.49 - skip TPS calc on first poll when max is 0
- When generateMaxDecoded is 0 (new session), don't calculate TPS
- Prevents huge dt from stale generateStartAt
2026-06-13 23:30:25 +02:00
Troed Sångberg c299f430ac fix: v0.0.48 - track max n_decoded globally to handle slot disappear/reappear
- Use generateMaxDecoded to track highest n_decoded seen across all polls
- Detect resets when nd drops below max (even if slot disappeared and reappeared)
- Simplified logic: only compare against max, not per-slot baseline
- Removed generateSlotId tracking (no longer needed)
2026-06-13 23:27:21 +02:00
Troed Sångberg d711364d93 fix: v0.0.47 - simplify n_decoded reset detection
- Any drop in n_decoded means counter reset (cumulative counter)
- Removed arbitrary -5 threshold, now uses delta < 0
- Zero delta now correctly detected as stall
2026-06-13 23:22:51 +02:00
Troed Sångberg 45f24fcf56 fix: v0.0.46 - handle n_decoded counter reset on slot reuse
- Detect when n_decoded drops significantly (counter reset) and treat as new baseline
- Previously: reset caused negative deltas, TPS stalled at 0
- Now: reset counter, restart tracking from new baseline
2026-06-13 23:20:06 +02:00
Troed Sångberg a8bf568b94 fix: v0.0.45 - use Node.js fs for debug logging 2026-06-13 23:17:55 +02:00
Troed Sångberg f2a3aa6e96 fix: v0.0.44 - switch debug logging to file 2026-06-13 23:15:07 +02:00
Troed Sångberg 2d040ed833 debug: add console.log for generation tracking 2026-06-13 23:11:14 +02:00
Troed Sångberg fdf4aa4edc fix: v0.0.42 - clear TPS when generation ends or stalls
- Clear lastGeneratedTps when n_decoded delta <= 0 (generation stalled)
- Clear lastGeneratedTps and bump display when slot stops generating
- Fix genEnded scoping (moved outside for loop)
- Bump display when generation ends so TPS returns to ----
2026-06-13 23:08:00 +02:00
Troed Sångberg 917ab344b6 feat: v0.0.41 - slot-based TPS from n_decoded, 500ms poll interval
- Replace metrics-based TPS with slot n_decoded tracking during generation
- Add generation tracking state (generateSlotId, generateCapturedDecoded, generateStartAt)
- Poll interval reduced from 2s to 500ms to catch shorter prefill/generation events
- AVG now uses session average from message events (cumulative tokens/duration)
- Remove unused fetchMetrics, formatRate, formatTtft functions
- TPS: slot-based (shows for all generation including files)
- AVG: session average (cumulative across messages)
2026-06-13 22:59:22 +02:00
Troed Sångberg 36fcaa27a1 feat: v0.0.40 - per-slot PP calculation from /slots endpoint
- Fix PP calculation: use per-slot n_prompt_tokens during prefill state
  instead of global llamacpp:prompt_tokens_total from /metrics
- Add isPrefilling flag and prefill tracking state (slotId, capturedTokens, startAt)
- Add dedicated formatters: formatPps, formatTps, formatAvg, pad4
- Replace formatRate suffixes with raw number formatters
- Display: PP | TPS | AVG with fixed-width 4-char padding
- Slot polling every 2s with model query parameter
- Debug logging to /tmp/oc-ls-stats-debug.log
- Add .npmignore, TUIPLUGIN.md, test-debug-log.jsonl
- Update AGENTS.md with slot state phases, PP calculation docs
2026-06-13 22:52:31 +02:00
Troed Sångberg 1600d1a28a Document debugging process and fixes in AGENTS.md 2026-06-13 21:17:47 +02:00
Troed Sångberg a1a968fdb8 0.0.20 v0.0.20 2026-06-13 21:15:31 +02:00
Troed Sångberg aa61f922a1 Fix plugin loading: correct TUI signature, fix regex syntax, restore SessionPromptRight component 2026-06-13 21:15:22 +02:00
Troed Sångberg a161a54aaa Test: Fix plugin ID and slot registration 2026-06-13 21:00:38 +02:00
Daniel Smolsky db92be7f44 readme cleanup 2026-04-05 02:34:21 -04:00
Daniel Smolsky 9095bbbcff simplify readme 2026-04-05 02:11:21 -04:00
Daniel Smolsky ca7ad71ce1 Clarify README intro 2026-04-04 17:30:48 -04:00
Daniel Smolsky 29174a9a74 Use GIF for README demo 2026-04-04 17:24:59 -04:00
Daniel Smolsky 68dfe18daf Add README demo video 2026-04-04 17:22:36 -04:00
Daniel Smolsky db1fbf043c Bump version to 0.0.6 2026-04-04 17:20:20 -04:00
Daniel Smolsky ccd19c0265 Track tool-only response timing 2026-04-04 17:04:48 -04:00
Daniel Smolsky da41dda631 Bump version to 0.0.5 2026-04-04 17:04:48 -04:00
Daniel Smolsky 4d5bc53fae Adjust avg timing for tool calls 2026-04-04 16:49:23 -04:00
Daniel Smolsky e4c7e8c165 Add average TTFT to prompt 2026-04-04 16:13:10 -04:00
Daniel Smolsky 9f21d1fc83 Bump version to 0.0.4 2026-04-04 13:23:14 -04:00
Daniel Smolsky 5d7c7bbfb8 Refine live TPS and session average 2026-04-04 13:21:00 -04:00
Daniel Smolsky e7160857de Improve TPS tracking and add README 2026-04-04 03:54:50 -04:00
Daniel Smolsky 21da2b4b5e Add oc-tps plugin 2026-04-04 02:58:46 -04:00