Skip to content

Copilot: low accuracy for FTP service scaffolding (uses deprecated annotation shape) #1266

@niveathika

Description

@niveathika

Summary

When asked to scaffold an FTP / SFTP service, Copilot produces the deprecated ftp:Listener(path = "...") shape rather than the modern @ftp:ServiceConfig { path: "..." } annotation on the service.

Repro

Prompt the BI Copilot with something like "Create an FTP service that watches /inbound for CSV files".

Observed:

listener ftp:Listener fileListener = new (path = "/inbound", ...);

service on fileListener {
    remote function onFileCsv(...) returns error? { ... }
}

Expected:

listener ftp:Listener fileListener = new (...);

@ftp:ServiceConfig {
    path: "/inbound"
}
service on fileListener {
    remote function onFileCsv(...) returns error? { ... }
}

Likely cause

path is deprecated on the listener but kept in the ListenerConfiguration record definition for back-compat. It's presumably leaking into the model context from there, so the model still picks it up despite the deprecation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions