Skip to content

test: cover lact.lua's standalone formatting/parsing - #2

Merged
kRHYME7 merged 2 commits into
HyDE-Project:mainfrom
Delcado19:feat/lact-wrapper-coverage
Sep 13, 2026
Merged

kRHYME7 merged 2 commits into
HyDE-Project:mainfrom
Delcado19:feat/lact-wrapper-coverage

Conversation

@Delcado19

@Delcado19 Delcado19 commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • bash test_lact_wrapper.sh passes against the real lact.lua (verified with the tests dir alongside the HyDE checkout, matching the submodule layout)

Covers the optional LACT Waybar module (HyDE-Project/HyDE, feat/lact-wrapper-v2,
not yet opened as a PR): lact.lua's formatting/parsing logic, standalone from
gpuinfo.lua by design (see the branch's own commit messages). Checks malformed,
missing, negative, and out-of-range LACT daemon values all degrade to valid
Waybar JSON instead of crashing the module.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X1SjbyvkBXwHm4ZprDQc93
@coderabbitai

coderabbitai Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 54bb8111-b718-4975-a72f-95c77ecf1955


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Covers HyDE-Project/HyDE#2096's fix for a real gap CodeRabbit found:
generate_json() concatenated vendor/family/primary_gpu strings straight
into the tooltip, which Waybar renders as Pango markup (custom/lact.jsonc
doesn't set "escape": true). A raw '<', '>' or '&' in any of those would
corrupt the markup instead of rendering literally.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X1SjbyvkBXwHm4ZprDQc93
@kRHYME7
kRHYME7 merged commit 0de56e5 into HyDE-Project:main Sep 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants