AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Removing Edge Function From Config.Toml Does Not Delete It From Hosted Branch During Deploy

Supabase branching deployment does not reconcile deletions: when a function is removed or disabled in config.toml, the corresponding remote edge function is not deleted, leaving stale functions active on the hosted branch.

highConfidence 75%Supabase-CliPostgreSQLStorage

Origin Analysis

The edge function deploy pipeline treats config.toml entries as a creation/update manifest, not as a full desired state. It does not diff against existing remote functions to delete those absent from the config, causing stale functions to persist after branch deployment.
1. Create a Supabase project with edge functions and enable branching. 2. Define a function `hello` in config.toml under `[functions.hello]` and deploy the branch. 3. Remove or comment out the `[functions.hello]` block from config.toml (but leave the function folder). 4. Push the change to the branch and trigger a deploy. 5. Observe that the hosted branch still has the `hello` function active and callable.

Fixing Code Block

Edge Case Audit

This script performs destructive deletions. Ensure you have a backup of the function code and confirm that functions removed from config.toml are indeed intended to be deleted. If multiple deployments run concurrently, race conditions may cause unintended deletions; implement a lock or serialize deployments. Rollback: re-add the function block to config.toml and redeploy to restore the function. Versions without `--output json` may require different parsing; test thoroughly in a non-production branch first.

Ecosystem Topology

Agent Frameworks

LangChain, LlamaIndex, and Pydantic

  1. highProperty graph relation keys collide when entity IDs or labels contain underscores
  2. highCodeActAgent drops assistant tool-call metadata during handoff, leaving an orphan tool response
  3. high[Bug]: HierarchicalNodeParser async methods return the documents unsplit
  4. highLLM.predict_and_call fails with ValidationError for non-function-calling models when react_chat_formatter is omitted
  5. highAnthropic streaming server-tool input_json_delta overwrites completed client tool_use arguments due to stale cur_tool_call state