Skip to content

feat(agy_cli): pass --add-dir flag automatically on agy CLI invocations - #584

Open
silviojr wants to merge 1 commit into
mainfrom
add_agy_workspace
Open

feat(agy_cli): pass --add-dir flag automatically on agy CLI invocations#584
silviojr wants to merge 1 commit into
mainfrom
add_agy_workspace

Conversation

@silviojr

Copy link
Copy Markdown
Collaborator

When executing Antigravity (agy) CLI scenarios, agy expects active workspace directories to be registered. It seems that when it executes in an empty folder (fake_home), it just ignores the directory as a workspace directory.

However, there's the --add-dir command-line flag. With this flag, agy initializes in non-interactive print mode with a registered workspce.

This PR updates AgyCliGenerator to automatically pass --add-dir <cwd> on all agy CLI executions, ensuring that the process working directory (fake_home or scenario work_dir) is registered as an active workspace.

env = self._merged_env()
cmd = self._base_agy_command(
self.agy_bin, "ping", model=self.model
self.agy_bin, "ping", model=self.model, add_dirs=[self.fake_home]

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if wee need to pass the add_dirs here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant