Skip to content

ui: double transcript buffer depth to 16 entries#33

Closed
Swissola wants to merge 3 commits into
anthropics:mainfrom
Swissola:enhance/deeper-transcript
Closed

ui: double transcript buffer depth to 16 entries#33
Swissola wants to merge 3 commits into
anthropics:mainfrom
Swissola:enhance/deeper-transcript

Conversation

@Swissola
Copy link
Copy Markdown

Summary

  • TamaState.lines[8]lines[16]
  • Loop cap n >= 8n >= 16
  • _LineBuf<1024>_LineBuf<2048>

Motivation

The transcript scroll already works but there are only 8 entries of history to scroll through. Doubling the buffer lets the device store and scroll 16 entries once the desktop bridge is updated to send more.

The bridge currently caps its entries array to 8, so this change has no visible effect today — the extra capacity sits idle. The comments in the code document exactly what is waiting for a bridge-side update. RAM cost is 736 bytes extra on a device with 520KB SRAM.

Behaviour after this change

  • Bridge sending ≤ 8 entries: identical to before
  • Bridge sending 9–16 entries: all stored, all scrollable
  • Scroll interaction unchanged (BtnB on normal screen)

Test plan

  • Existing 8-entry behaviour unchanged
  • When bridge sends > 8 entries, additional lines appear in scroll

🤖 Generated with Claude Code

Swissola and others added 3 commits May 22, 2026 17:37
sleep=Donald Duck, idle=Bongo Cat, busy=SpongeBob multitasking,
attention=Surprised Pikachu (Nouns glasses), celebrate=Peanuts party,
dizzy=Powerpuff Girls spiral eyes, heart=heart eyes ghost.

Source GIFs in characters/memes-src/, device-ready pack in characters/memes/.
Built with prep_character.py at 96x98px, 64 colours per frame.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Track the current peer BD address in onConnect (extended overload).
bleRemoveCurrentBond() removes only that peer's LTK from NVS. The
"unpair" JSON command now calls this instead of bleClearBonds(), so
each host unpairs itself independently. bleClearBonds() is reserved
for factory reset only.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Device side is ready for deeper scroll history. The bridge currently caps
its entries array to 8 so only the first 8 slots are used until the bridge
is updated to send more. Changes: lines[8] -> lines[16], loop cap 8 -> 16,
line buffer 1024 -> 2048 bytes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Swissola
Copy link
Copy Markdown
Author

Closing as this is outside the scope of the upstream reference implementation per CONTRIBUTING.md. This change is maintained in the community fork at https://github.com/Swissola/claude-desktop-buddy — see the enhance/haptics-and-settings branch.

@Swissola Swissola closed this May 23, 2026
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.

1 participant