codex icon indicating copy to clipboard operation
codex copied to clipboard

TODO: handling gets lost if not saving before click

Open trex005 opened this issue 1 month ago • 0 comments

What version of the VS Code extension are you using?

0.4.47

What subscription do you have?

Plus

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

Model:GPT-5.1-Codex-Max Effort:Medium

Testing the official VSCode plugin, I decided to type a #todo: and click "Implement with Codex" above to fix a simple issue.

Codex ran for about 15 minutes, used up 22% of my 5 hour limit and 69k tokens of context and then responded: I’m not seeing that comment in [file]—line [line] ...

The issue seems to be that I had not saved the file before clicking "Implement with Codex", so it didn't seem to know what to do.

What steps can reproduce the bug?

Code:

#imports

class FlowBase(Handle):
	# Other functions

	def allow_interrupt(*args, **kwargs) -> bool:
		#TODO: figure out why this is not finding the check_if_interrupted function below.
		return check_if_interrupted(*args, **kwargs)
	
	def check_if_interrupted(self, *, include_focus_suspension: bool = True) -> bool:
		#some code
		return False
	
	#Other functions

Click "Implement with Codex" that appears above the TODO

What is the expected behavior?

Either prompt/warn about saving the file, or be able to use the live editor's data as context.

Additional information

No response

trex005 avatar Dec 03 '25 17:12 trex005