En 30 secondes
A personal-training app can remember injuries and workout preferences yet still forget the question asked moments ago. Devin Chasanoff discovered that his app sent the latest message, workout plan and stored memories to its AI coach, but no past chat messages; its reset button only cleared the screen. Gemini suggested including a recent window of 10–15 messages from the current week. Chasanoff saved a plan for the change and proposed passing the date and time zone to help the coach interpret “today” and “tomorrow.”
- 1The reset button cleared the screen, not the agent’s contextAsking Gemini how the button worked led Chasanoff to inspect what the app actually sent with a request.
- 2The coach received stored memories but none of the recent chatIts prompt included the latest message, current workout plan, any staged proposal and the three-tier memory—not previous messages.
- 3A trainer needs continuity for follow-up requestsChasanoff explains that without recent messages, requests such as changing an earlier decision back lose their conversational context.
- 4A recent window is a proposed compromise between a day and a weekGemini recommended sending roughly the last 10–15 messages within the current week; Chasanoff saved a plan to implement it later.
- 5Pass the day and time zone when scheduling workoutsChasanoff found the coach confused by “today” and “tomorrow.” He treats server time zone as one possible cause and proposes supplying both date and time zone.
À retenir
- Inspect what each request actually sends to the model; stored preferences and recent conversation history serve different purposes.
- Ask what a reset button changes in the interface, stored data and model context.
- Choose a bounded recent history rather than automatically sending every past conversation; Gemini proposed 10–15 recent messages for this app.
- Save the diagnosis and proposed fix in a workspace document so the investigation can resume without repeating it.
- Pass the current date and time zone explicitly when an assistant must interpret relative days.
Lire le texte remanié, chapitre par chapitre
A training coach needs different kinds of memory
Chasanoff wants a coach that can remember equipment and preferences without treating a temporary injury as permanent. His app already uses three tiers for information of differing persistence.
When you chat with Gemini, continuity can feel automatic. But if you put an AI coach into your own application, you need to find out what the model actually receives on each request.
My personal-trainer app should design workouts around my injuries, preferences and available equipment. In the Gemini web app, a temporary sore shoulder sometimes seemed to become a permanent constraint; I wanted a coach that could adapt its memory.
We planned three tiers of memory: short-lived information, medium-term information and persistent facts such as equipment or my preference to run twice a week. The arrangement worked in some respects, but problems remained.
A reset button exposes the missing conversation
He asks Gemini how his app works rather than treating each symptom separately. The button clears the screen, prompting him to investigate what reaches the model.
Instead of chasing individual bugs, I used what I call post-build interrogation: ask Gemini how the application works and what its architecture actually does. Understanding the system helps me ask a more useful question about what to change.
The investigation began with the coach chat’s reset button. It could clear a screen full of workout suggestions, but I did not know whether it also affected the agent’s memory or the data passed with a request.
I asked Gemini in Google Antigravity what the button actually did. It turned out that it merely cleared the display; that led me to examine the context behind the conversation.
In a chat, continuity can come from supplying prior conversation along with the new prompt. I wanted to know whether our app did that when sending a message to the coach.
Each request omits prior chat messages
The server supplies the latest message, workout plan, staged proposal and longer-lived memory. Chasanoff realizes that follow-ups lack the immediate conversational context he expected.
I asked which parts of the chat went to the agent. Gemini explained that none of the earlier chat messages were included: the server sent only the newest one, together with other information.

That other context included the current weekly plan, so a request to swap workout days could be interpreted, and any staged proposal waiting for me to modify or accept. The server also included the three-tier memory.
Those stored facts did not create the continuity I wanted. We had written a detailed design document for data structures, storage and the three memory tiers, but I had not specified how the chat itself should be supplied, so Gemini filled in that gap.
That explained why follow-ups such as “change that back” or “adjust this based on what we did yesterday” were difficult: the coach did not see what we had just said. I considered that a major problem for a personal trainer.
Plan a recent-message window and preserve the diagnosis
Gemini recommends 10–15 recent messages from the current week. Chasanoff saves a detailed continuity plan and links it from his ongoing issue list.
I did not want to send every conversation forever. Since we store conversations by week, I asked Gemini to compare sending the current week with sending just the current day.
Gemini recommended a recent window within the current week, roughly 10–15 messages. I was still investigating the mental model, so instead of immediately asking it to implement the change, I created a detailed conversational-continuity plan.

That plan lives in the workspace, linked from an ongoing issues list. When I return to it, the relevant diagnosis and code examples are there, so I do not need to reconstruct the investigation from scratch.
The coach also became confused when I asked about today’s workout or tomorrow’s schedule, despite receiving the weekly plan. Gemini suggested the cloud server’s time zone might be involved; I am not sure that is the cause, and I have another hypothesis about the model’s handling of dates.
Give the coach the date and time zone
Questions about today and tomorrow exposed another scheduling issue. Chasanoff proposes passing the day and time zone explicitly while acknowledging that the cause remains uncertain.

My proposed fix is to pass the current day and time zone explicitly. Together with the planned chat-history window and existing memory, that gives the coach the context it needs to act more like a personal trainer.
Sur la même chaîne
22:12EN
27:31EN
16:07EN
27:24EN
10:21EN
15:19EN