Skip to content

feat: show branch and commit in the Settings > System footer - #53

Merged
prokrypt merged 2 commits into
developmentfrom
claude/project-thread-hxp0qb
Sep 27, 2026
Merged

prokrypt merged 2 commits into
developmentfrom
claude/project-thread-hxp0qb

Conversation

@prokrypt

@prokrypt prokrypt commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Requested by Clankmaster · project thread

Before: on x4-pro-light-sleep builds, the Settings > System footer said "CrossInk dev" and showed nothing about which build was installed.

After: the footer shows "CrossInk 1.6.0-x4-pro" with a second line such as "b11 27f0ecb", where * marks a build made from uncommitted changes. /api/status build{} also gains gitBranch, buildNumber and buildTime.

The cause of "dev" was that scripts/git_branch.py had no version mapping for x4-pro-light-sleep and x4-pro-light-sleep-debug. Both are now mapped the same way as x4-pro and x4-pro-debug.

How: git_branch.py adds CROSSINK_GIT_BRANCH, CROSSINK_GIT_BRANCH_SHORT, CROSSINK_BUILD_NUMBER and CROSSINK_BUILD_TIME through a build middleware that only applies to src/util/BuildInfo.cpp, so the timestamp that changes on every build recompiles only that file.

  • The short branch turns batch branches (test/combined-MMDD-bN) into bN; other branches drop their prefix folder.
  • The build number comes from the CROSSINK_BUILD_NUMBER env var when set, otherwise from the commit count. Shallow clones leave it empty.
  • The System list reserves room for the footer so the two no longer overlap.

Size, measured on x4-pro-light-sleep: +436 B flash and +0 RAM compared with development. Tested on-device in batch b11.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FQ85oMXFSkfR2wF4dx4hLz

…System

x4-pro-light-sleep(-debug) had no CROSSINK_VERSION mapping in
git_branch.py and fell back to "dev"; map them like x4-pro(-debug).

git_branch.py now adds CROSSINK_GIT_BRANCH, CROSSINK_BUILD_NUMBER
(CROSSINK_BUILD_NUMBER env, else commit count, empty on shallow clones)
and CROSSINK_BUILD_TIME (UTC) through a build middleware scoped to
src/util/BuildInfo.cpp, so the per-build timestamp only recompiles that
file. The System footer adds a details line under the version and the
list reserves room for it; /api/status reports the same fields.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FQ85oMXFSkfR2wF4dx4hLz
The footer showed the full branch, build number and build time, which
ran too long on device. It now shows "<short branch> <sha>[*]": batch
branches (test/combined-0927-b11) collapse to "b11", other branches drop
their prefix folder. /api/status keeps the full branch, number and time.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FQ85oMXFSkfR2wF4dx4hLz
@prokrypt prokrypt changed the title feat: show branch, commit, build number and build time in Settings > System feat: show branch and commit in the Settings > System footer Sep 27, 2026
@prokrypt
prokrypt merged commit 91326d2 into development Sep 27, 2026
9 checks passed
@prokrypt
prokrypt deleted the claude/project-thread-hxp0qb branch September 27, 2026 16:03
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