Skip to content

fix(amazing-grace): simplify panel coordination, remove cache marker - #32

Open
kaaloo wants to merge 1 commit into
mainfrom
letta/simplify-grace-panel-coordination-631d8f51
Open

fix(amazing-grace): simplify panel coordination, remove cache marker#32
kaaloo wants to merge 1 commit into
mainfrom
letta/simplify-grace-panel-coordination-631d8f51

Conversation

@kaaloo

@kaaloo kaaloo commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove the renderedByStatusline cache-file coordination from the amazing-grace panel
  • The statusline mod now closes the panel directly via letta.ui.closePanel("amazing-grace")
  • This eliminates a race where the marker could be overwritten by saveState before the panel read it

Test plan

  • npm run check in packages/amazing-grace
  • npm run verify in packages/amazing-grace
  • Update installed mod, reload TUI, verify no transient panel flash

👾 Generated with Letta Code

Replace the renderedByStatusline cache-file coordination with direct
closePanel("amazing-grace") from the statusline mod. The cache approach
was racy: the marker could be overwritten by saveState before the panel
read it, and the write could fail if the cache file did not exist yet.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 064ac57b76

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +495 to +497
// Renders the ladder position and health below the statusline. A statusline
// mod that renders the same info inline can close this panel with
// letta.ui.closePanel("amazing-grace").

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve compatibility with marker-based statuslines

On installations whose existing ~/.letta/mods/statusline.tsx follows the previously documented contract and only writes renderedByStatusline: true, upgrading this package now makes both the inline indicator and this panel render because the marker is ignored. The replacement closePanel call exists only as a comment here, and a repo-wide search finds no distributed statusline implementation that upgrades users to the new coordination mechanism, so retain the marker fallback or ship/document a compatible migration.

Useful? React with 👍 / 👎.

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