Skip to content

Bug: Adding Context in Template Workflow with trailing slash is ending up with error #518

@ppadashe-psp

Description

@ppadashe-psp

🐛 Bug Description

When I create a Template workflow and try to add Context with github repository which has trailing slash at the end (ex: https://github.com/eval-hub/eval-hub/) its unable to add the repository unless I remove it

Expected Behavior: What you expected to happen.
It should accept the trailing slash as well
Actual Behavior: What actually happened.
Throws error

🔄 Steps to Reproduce

  1. Go to Ambient Code Platform home page
  2. Click on 'New Workspace'
  3. Create New Workspace with unique name
  4. Then create new session choosing Sonnet claude model
  5. Select Template workflow
  6. And now in Context try adding context with any link which has trailing slash at the end ex: https://github.com/eval-hub/eval-hub/
  7. Throws error as Failed to add repository

🖼️ Screenshots

Image

If applicable, add screenshots to help explain your problem.

🌍 Environment

Component: [RAT System / Ambient Agentic Runner / vTeam Tools]

Version/Commit: [e.g. v1.2.3 or commit hash]

Operating System: [e.g. macOS 14.0, Ubuntu 22.04, Windows 11]
MacOS

Browser: [if applicable - Chrome 119, Firefox 120, Safari 17]

Python Version: [if applicable - e.g. 3.11.5]
3.13.11

Kubernetes Version: [if applicable - e.g. 1.28.2]

📋 Additional Context

Error Messages: [Paste any error messages or logs]

[Error logs here]

Configuration: [Any relevant configuration details]

Recent Changes: [Any recent changes that might be related]

🔍 Possible Solution

[If you have suggestions on how to fix the bug]

✅ Acceptance Criteria

  • Bug is reproduced and root cause identified
  • Fix is implemented and tested
  • Regression tests added to prevent future occurrences
  • Documentation updated if needed
  • Fix is verified in staging environment

🏷️ Labels

  • Priority: [low/medium/high/critical]
  • Complexity: [trivial/easy/medium/hard]
  • Component: [frontend/backend/operator/tools/docs]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions