Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

gregpr07
Copy link
Member

@gregpr07 gregpr07 commented Sep 5, 2025

Summary by cubic

Adds URL shortening to Agent prompts to cut token usage without changing behavior. Long URLs are shortened before LLM calls and restored in the parsed output and action payloads.

  • New Features
    • Shortens only the query/fragment part of URLs using URL_PATTERN; keeps base path intact and skips if not actually shorter.
    • Restores originals after parsing by walking strings, dicts, lists, tuples, and nested Pydantic models (including custom actions).
    • Configurable limit via _url_shortening_limit (default 25).

Copy link

github-actions bot commented Sep 5, 2025

Agent Task Evaluation Results: 2/3 (67%)

View detailed results
Task Result Reason
amazon_laptop ✅ Pass The agent successfully navigated to amazon.com, searched for 'laptop', and returned the name of the first laptop product along with additional details and a link. This meets all the criteria for success.
browser_use_pip ✅ Pass The agent correctly identified and provided the pip installation command 'pip install browser-use' as required by the task. The output matches the success criteria exactly.
captcha_cloudflare ❌ Fail The agent failed to locate and interact with the Cloudflare Turnstile captcha widget and the 'Check' button on the specified page. As a result, it was unable to solve the captcha or extract the required 'hostname' value. This indicates that the agent did not complete the task as required.

Check the evaluate-tasks job for detailed task execution logs.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 3 files

React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.

@gregpr07 gregpr07 linked an issue Sep 6, 2025 that may be closed by this pull request
@gregpr07 gregpr07 merged commit 042dfb6 into main Sep 6, 2025
59 checks passed
@gregpr07 gregpr07 deleted the feature/url-shortener branch September 6, 2025 00:41
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.

Interaction Issue: can't handle long URL
1 participant