You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: short SHAs in Telegram messages, the full one once per question #30
The Apply question shows full 40-character SHAs twice ("Apply this commit?" and "Since …"), and the notices do too. On a phone that is hard to read, and the owner only needs to recognize the commit: the tap is bound to the question ID, not to the SHA text.
Proposal
Show a short SHA (12 characters) in the text of every message, in <code>.
Keep the full SHA once per question, on its own line at the end ("Full: …"), so it can be copied and compared.
Logs, state and pullgate status keep the full SHA.
Done when
Questions and notices use 12-character SHAs in their text, and each question has one line with the full SHA; tests with the fake Telegram server check both.
A test proves that Apply installs the full SHA stored with the question, also when the message text shows only the short one.
12-character SHAs in questions and notices, and one full-SHA line per question: TestShortSHAsAndOneFullSHA (message; the "Full:" line is last and stays after a cut), TestNoticesShowShortSHAs (gate), and the e2e test, through the fake Telegram server.
Apply installs the full SHA: TestNoticesShowShortSHAs checks that the apply command gets the full SHA and the state holds it, while the report shows only the short one.
README and DESIGN.md section 12 show the new message layout. THREAT-MODEL.md T3 has a note on short SHAs.
Activity
groupsky commentedon Nov 17, 2026
Done in #37 (squash commit 44afa8b).
TestShortSHAsAndOneFullSHA(message; the "Full:" line is last and stays after a cut),TestNoticesShowShortSHAs(gate), and the e2e test, through the fake Telegram server.TestNoticesShowShortSHAschecks that the apply command gets the full SHA and the state holds it, while the report shows only the short one.