Skip to content

fix(app-server): make agent file IO async in API handlers#307

Open
694410194 wants to merge 1 commit into
CortexLM:mainfrom
694410194:codex/async-agent-file-io
Open

fix(app-server): make agent file IO async in API handlers#307
694410194 wants to merge 1 commit into
CortexLM:mainfrom
694410194:codex/async-agent-file-io

Conversation

@694410194
Copy link
Copy Markdown

Summary

  • replace blocking std::fs agent file reads with async tokio::fs helpers for listing and loading agents
  • switch create, update, delete, and import agent endpoints to async filesystem operations
  • add focused async tests for agent file parsing and markdown filtering

Testing

  • cargo test --manifest-path Cargo.toml -p cortex-app-server read_agent_file_parses_frontmatter_async
  • cargo test --manifest-path Cargo.toml -p cortex-app-server list_agents_in_dir_ignores_non_markdown_files
  • cargo check --manifest-path Cargo.toml -p cortex-app-server

Related bounty issue: PlatformNetwork/bounty-challenge#53256

/claim #53256

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method 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