restore Version.override_data for screenshot generator
What changed, and why it matters
This commit restores a helper function that lets the project’s screenshot generator temporarily override version information shown in screenshots. The function is decorated so it cannot run on the actual SeedSigner OS device. It only affects display text used in documentation screenshots, not private keys, seeds, or transaction logic.
No action required; treat as a low-risk tooling change. If reviewing further, verify that @not_allowed_in_seedsigner_os reliably blocks runtime use on device and that no production code path invokes override_data.
Security signals we found
Decorator restricts execution in production OS context
Only mutates display metadata, not cryptographic state
Explicitly documented as screenshot-generator-only
Evidence from the diff
The change re-adds Version.override_data(), a classmethod that mutates the singleton Version instance’s name, fork, timestamp, and commit hash fields. It is gated by @not_allowed_in_seedsigner_os, which raises an exception if called inside the production SeedSigner OS environment. The intended consumer is the screenshot generator, which needs stable version strings for documentation images.
Changed components
src/seedsigner/helpers/version.pyInspect captured patch +13 / −0
diff --git a/src/seedsigner/helpers/version.py b/src/seedsigner/helpers/version.py
index bf4b246..4795ae5 100644
--- a/src/seedsigner/helpers/version.py
+++ b/src/seedsigner/helpers/version.py
@@ -124,6 +124,19 @@ class Version(Singleton):
return cls.get_instance()._version_commit_hash
+ @classmethod
+ @not_allowed_in_seedsigner_os
+ def override_data(cls, version_name, version_fork, version_timestamp, version_commit_hash):
+ """
+ Only used by the screenshot generator.
+ """
+ instance = cls.get_instance()
+ instance._version_name = version_name
+ instance._version_fork = version_fork
+ instance._version_timestamp = version_timestamp
+ instance._version_commit_hash = version_commit_hash
+
+
class VersionUtils:
""" *********************************************************************************
Why this scored 18/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.