PostHog / PostHog/posthog

Agent loses context of created files after session restart

Open
#76,272 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature/desktop
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
6h 51m
Merged PRs (30d)
232

Description

Robbie  [1:32 AM]
I think posthog code might be forgetting about the files it created after the session was restarted due to inactivity

I've been trying to get it to edit the file it created yesterday, including telling it the temp file name, and it's just tried to create a new file with the same name instead. LMK if you want more info!

https://posthog.slack.com/archives/C09G8Q32R6F/p1776241937170829

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reproducing the session restart after an inactivity timeout and trace how the agent records and restores files it created; done means it can edit an existing created file after restart instead of attempting to create another file with the same name.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.