Prompt file imported from mooball/EagleAgent (
.github/prompts/plan-removeStarterFlicker.prompt.md). Copyright stays with the author.
Plan: Remove duplicate starter/action buttons to fix UI flicker
Both chat profiles (EagleAgent and System Admin) flash centered starter buttons before on_chat_start sends the real welcome message with action buttons. Fix by removing the redundant starters since both profiles already define their own action buttons in on_chat_start.
Steps
- Remove the
starters=[...]kwarg from the System AdminChatProfiledefinition (~line 565 of app.py) - Replace the body of
set_starters()to return[](~line 588 of app.py), removing the four globalcl.Starterentries
Relevant files
- app.py — remove
startersfromChatProfileat ~line 565; gutset_starters()at ~line 588
Verification
python -c "import app"to confirm no syntax errorspytest tests/ -vto check existing tests pass- Manual: log in as admin, select System Admin profile — should see welcome message with action buttons immediately, no centered starter flash
- Manual: log in with EagleAgent profile — should see welcome message with intent buttons immediately, no centered starter flash
Decisions
- Keep the
@cl.set_startersdecorator with an empty return rather than removing it entirely, to prevent Chainlit from falling back to any default behavior - No changes to
on_chat_start— both profiles' action buttons are correct as-is