This project involves fixing a bug in the Archestra AI platform where chat messages are lost, duplicated, or show weird behavior when the page is reloaded while an LLM is processing. The bug has already been fixed by a bounty winner, demonstrating a clear, funded need for reliable chat state management in AI agent UIs. The opportunity is to find and solve similar, open bounties.
Someone already won this. Here's what they did — and whether you can win the same.
A starter prompt for Claude Code, what you'll need, and how to reach them.
You are an expert full-stack developer specializing in real-time chat applications and state management. The goal is to identify and fix a bug pattern similar to archestra-ai/archestra#3012, where chat messages are lost or duplicated upon page reload while an LLM agent is processing. Your task is to apply this learning to an *open* bounty issue in a similar AI agent or chat UI project. For the chosen open bounty: 1. Analyze the project's current chat state management. 2. Propose a robust solution using server-side message persistence, idempotent updates, and careful client-side state synchronization. 3. Implement the fix within the project's existing codebase (e.g., Next.js 16 App Router, React 19, Tailwind v4, AI SDK v6 with Gemini, Neon Postgres on Vercel, adapting if the target project uses a different but compatible stack). 4. Include comprehensive tests to cover various reload scenarios (e.g., immediate reload, delayed reload, multiple simultaneous LLM calls). 5. Document the changes and provide a clear explanation of the fix. Begin by outlining your strategy for finding a suitable open bounty, then detail the steps for analyzing and fixing the identified issue, focusing on robust chat state persistence and recovery mechanisms.
The Archestra community, focused on AI agents and prompt engineering, could be interested in tools like the MCP server starter or agent evaluation lab to improve their own agent development and deployment.
WON bounty — solved by @sasha-ilatovskii in https://github.com/archestra-ai/archestra/pull/4219. Study the PR, then find the same pattern as an OPEN bounty. Reloading the window while LLM is thinking confuses Archestra: https://github.com/user-attachments/assets/823c2fb7-98d2-43ec-beac-d9e378009dcd In the default case, messages just disappear and never show up, even once the agent executed the task: <img width="1822" height="1185" alt="Image" src="https://github.com/user-attachments/assets/f229cb0d-5177-4290-8724-48eb6f946d55" /> Sometimes they do after some time: <img width="1822" height="1185" alt="Image" src="https://github.com/user-attachments/assets/8f58bbd2-fde5-417c-b287-b1bbec3c40ec" /> Sometimes they get duplicated: <img width="1822" height="1185" alt="Image" src="https://github.com/user-attachments/assets/c3216a78-824e-4697-a1b2-fcb8342dc9d7" /> --- <!-- archestra-banner:v1 --> <a href="https://archestra.ai/contributor-onboard" rel="nofollow noreferrer noopener" target="_blank"> <img alt="Image" src="https://raw.githubusercontent.com/archestra-ai/archestra/main/docs/assets/archestra-contributor-banner.webp"/> </a>
Standard for any development work.
Core competency for building web applications.
Understanding of WebSockets or polling for chat updates.
Standard for contributing to open source.
Submit a PR to the target repository, referencing the bounty issue, and engage with the maintainers in the GitHub issue comments.
“I've identified an open bounty issue related to chat state instability on reload, similar to a problem successfully solved for Archestra. I've analyzed your codebase and have a working solution, which I'll submit as a PR, along with tests demonstrating its effectiveness.”
Open the original ↗