Repository navigation
Fix Common AI Model tab not loading on Airflow 3.4 - #74898
Merged
Merged
Conversation
The AI Model React app scoped itself with an 'operator_names' applies_to key, which names no TaskInstanceResponse field. Since core started rejecting such paths, the api-server withholds the app and the tab never appears. Use the 'operator_name' field instead.
shahar1
approved these changes
Oct 17, 2026
1 task done
SameerMesiah97
pushed a commit
to SameerMesiah97/airflow-oss-sm97
that referenced
this pull request
Oct 27, 2026
The AI Model React app scoped itself with an 'operator_names' applies_to key, which names no TaskInstanceResponse field. Since core started rejecting such paths, the api-server withholds the app and the tab never appears. Use the 'operator_name' field instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "AI Model" tab added in #74334 never appears on Airflow 3.4. The plugin scopes its React app with
applies_to: {"operator_names": [...]}, butapplies_tokeys are paths onTaskInstanceResponse, and the field there isoperator_name. Since #74425, core rejects a path that names no field and withholds the app entirely, so at startup the api-server logs:and
/api/v2/pluginsreportsai_model_panelwith no React apps. This PR renames the key tooperator_nameand keeps the same four operator names.The existing plugin test read the same misspelled key straight off the plugin class, so it passed. The new test sends the plugin through core's
_get_ui_plugins, which is the path the api-server takes. With the old key it fails with the error above.Found while testing common.ai 1.0.0rc1 (#74741) on Airflow 3.4.0b1. Both screenshots show the same successful
AgentOperatortask instance. The "after" screenshot comes from 3.4.0b1 running this branch's provider.Before: no "AI Model" tab.
After:
Known gap, not addressed here:
LLMOperatorpushesmodel_namebut nousageXCom, so onLLMOperator/@task.llmtasks the tab shows only the model name.