Skip to content

refactor: Refactor A2A task display and configuration handling#338

Merged
edenreich merged 16 commits intomainfrom
refactor/a2a-task-display
Dec 13, 2025
Merged

refactor: Refactor A2A task display and configuration handling#338
edenreich merged 16 commits intomainfrom
refactor/a2a-task-display

Conversation

@edenreich
Copy link
Contributor

@edenreich edenreich commented Dec 12, 2025

Improves how A2A tasks are shown in the UI by removing redundant Task field from results and adding proper formatting. Adds config directory support for artifact downloads and includes a new browser agent configuration. Also fixes autocomplete shortcut detection and updates all documentation to reflect the new subcommand-based shortcut structure.

Changes:

Code Changes

  1. Added new browser-agent configuration in .infer/agents.yaml
  2. Refactored config directory handling with configDir field and getter/setter methods
  3. Changed default download artifacts directory from /tmp/downloads to config-relative path
  4. Removed Task field from A2ASubmitTaskResult in multiple places
  5. Added new formatA2ATaskData method for cleaner task display
  6. Updated UI preview formatting for A2A tasks and tool calls
  7. Fixed autocomplete shortcut detection logic

Shortcut Structure Changes

  1. Migrated shortcuts to subcommand structure:
    • Git shortcuts: /git-status/git status, /git-commit/git commit, etc.
    • SCM shortcuts: /scm-issues/scm issues, /scm-pr-create/scm pr-create, etc.
    • A2A shortcuts: /agents-add/agents add, /agents-remove/agents remove, etc.
    • MCP shortcuts: /mcp-add/mcp add, /mcp-enable/mcp enable, etc.

Documentation Updates

  1. Updated README.md:

    • Added subcommand explanation with examples
    • Updated all shortcut references to new format
    • Added example YAML for shortcuts with subcommands
  2. Updated CLAUDE.md:

    • Updated shortcuts list to reflect subcommand structure
  3. Updated docs/shortcuts-guide.md:

    • Updated all shortcut names throughout the guide
    • Updated YAML configuration examples
    • Updated all example commands and usage instructions
  4. Updated docs/a2a-connections.md:

    • Updated /agents shortcut commands
    • Rewrote artifact download section to document WebFetch-based approach
    • Removed references to removed A2A_DownloadArtifacts tool
  5. Updated docs/tools-reference.md:

    • Removed download_artifacts from A2A configuration
    • Added note about WebFetch handling artifact downloads

Benefits

  • Cleaner UI display for A2A tasks
  • Better configuration management with config directory support
  • More consistent artifact download paths
  • Improved autocomplete behavior
  • Organized shortcut structure with subcommands for better UX
  • Consistent documentation across all files
  • Clearer artifact download workflow using WebFetch

@edenreich edenreich changed the title Refactor A2A task display and configuration handling refactor: Refactor A2A task display and configuration handling Dec 12, 2025
@edenreich
Copy link
Contributor Author

edenreich commented Dec 12, 2025

TODOs

  • Check how to enforce the LLM to download artifacts to the correct directory - probably I need to check the system prompt if it has the correct instructions and ensure the command is working as intended
  • Make the A2A_DownloadArtifacts tool more reliable - I've noticed that it cannot find the task after completion and it fails then the LLM downloads the artifacts using standard curl, expected is that the LLM uses only the A2A_DownloadArtifacts tool - which will first fetch the task, and get the download link from the task so it can download Remove A2A_DownloadArtifacts - it's redundant, improve WebFetch instead
  • Add docs

Signed-off-by: Eden Reich <eden.reich@gmail.com>
… time to initialize the shortcuts and the config files

Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Changed the default to 50 iterations - I think that's a good default.
If an agent doesn't complete it's task by default after 50 iterations the builder can always increase this to a higher threshold, but for most tasks 50 iterations is about 100k tokens for a task which is more than enough.

Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
@edenreich edenreich merged commit abfff79 into main Dec 13, 2025
5 checks passed
@edenreich edenreich deleted the refactor/a2a-task-display branch December 13, 2025 23:15
ig-semantic-release-bot bot pushed a commit that referenced this pull request Dec 13, 2025
## [0.90.0](v0.89.0...v0.90.0) (2025-12-13)

### 🚀 Features

* Move background task indicators to status bar ([#337](#337)) ([b459f79](b459f79))

### ♻️ Code Refactoring

* Refactor A2A task display and configuration handling ([#338](#338)) ([abfff79](abfff79))
@ig-semantic-release-bot
Copy link

🎉 This PR is included in version 0.90.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments