A Personal-Trainer Agent Forgot the Conversation—Not the User

Devin Chasanoff found his app saved user preferences but sent no recent messages to its AI coach. He planned a short history window.

DCDevin ChasanoffSpeaker · AI Builder Advocate
Channel
Google Cloud Tech
Published
Dec 1, 2026
Video
12:35
Read
4 min
Slides
3
Original
English
Open on YouTube
Scroll to read and the video shrinks to the bottom-right corner. Captions follow your reading language.
Reading languageAvailable in 2 languages
You're reading the original English.
SUMMARY

In 30 seconds

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.”

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

Takeaways

  1. Inspect what each request actually sends to the model; stored preferences and recent conversation history serve different purposes.
  2. Ask what a reset button changes in the interface, stored data and model context.
  3. Choose a bounded recent history rather than automatically sending every past conversation; Gemini proposed 10–15 recent messages for this app.
  4. Save the diagnosis and proposed fix in a workspace document so the investigation can resume without repeating it.
  5. Pass the current date and time zone explicitly when an assistant must interpret relative days.
FULL TEXT

Read the edited text by chapter

Transcript only
01

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.

02

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.

03

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.

What each request sent to the coach
SLIDE 1 / 3What each request sent to the coachThe existing prompt included the latest message and long-term context, but no prior back-and-forth.

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.

04

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.

A short window of conversation
SLIDE 2 / 3A short window of conversationThe proposed design sends recent messages from the client alongside the current request.

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.

05

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.

Why the coach confused today and tomorrow
SLIDE 3 / 3Why the coach confused today and tomorrowThe proposed diagnosis points to the server clock and recommends supplying the user’s local date and time.

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.

More from this channel

22:12EN
Google Cloud Tech· Nov 24, 2026Question an AI-built app before asking the agent to fix itDevin Chasanoff · GoogleDevin Chasanoff uses a tutor-style conversation to uncover a failed-sync edge case and document it for a later session.Developer workflows & testingHuman-AI CollaborationAI agents+1
27:31EN
Google Cloud Tech· Nov 23, 2026Four layers that make coding agents safer to run in productionLogan, Remik, Aaron, YC, Annie · GoogleGive agents context on demand, enforce checks they cannot edit, review outcomes independently and test the whole workflow.Agent engineeringCoding agentsAgent skills+2
16:07EN
Google Cloud Tech· Nov 21, 2026Connecting a Personal Trainer App to Firebase with GeminiDevin Chasanoff · GoogleDevin Chasanoff walks through sign-in, database security and a live workout test with Gemini guiding each setup step.Vibe CodingCoding agentsDeveloper workflows & testing+2
27:24EN
Google Cloud Tech· Nov 20, 2026A browser can run private AI search, but the device decides how muchAja Hammerly, Jason MayesJason Mayes explains local document search, model sizing and when a browser AI app should fall back to the cloud.Vector searchRAG & knowledgeModel routing & gateways+2
2 slides10:21EN
Google Cloud Tech· Nov 19, 2026Why AI applications use two kinds of graph—and when to skip themAnnie Wang · Google CloudA refund demo separates control of the work from retrieval of connected facts, while showing the cost of both.Agent orchestrationAI agentsWorkflow automation+1
4 slides15:19EN
Google Cloud Tech· Nov 17, 2026Give a Voice Agent Memory Without Sending Its Whole TranscriptLaxmi Harikumar, Miles Libbey · Google CloudA 40-word window and persistent facts cut classifier input in a Scribant demo while keeping user preferences across sessions.Agent memoryAgent engineeringAI agents+2