[FR]: Testing agent should run dynamic (activity-scoped) app functions in their activity
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 45/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Domaine
- backend-api-design, mobile
Piste de recherche
Read ExecuteAppFunctionUseCase and the Debug tab state that exposes AppFunctionState.activityIds; the issue does not name their file paths. Start by tracing how the use case builds ExecuteAppFunctionRequest and how the Debug tab chooses a registering activity. Done means Debug can run a dynamic function in a selected registering activity, while agent calls either target the foreground activity or omit unsupported dynamic functions until that is possible.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the problem
Dynamic app functions (@AppFunctionSignature(scope = AppFunctionMetadata.SCOPE_ACTIVITY), registered from an Activity with AppFunctionManager.registerAppFunction / handleAppFunction) can only be executed with ExecuteAppFunctionRequest.activityId set to an activity that registers them. Otherwise the platform returns ERROR_FUNCTION_NOT_FOUND.
The testing agent never sets an activity ID (ExecuteAppFunctionUseCase builds the request from the package name, function ID and parameters only), so:
- The Debug tab can't run a dynamic function. Since #104, it shows the function as "Dynamic" with the number of activities that register it, and keeps Run disabled with an explanation.
- In Agent Demo and Live sessions, a registered dynamic function is offered to the model (
isEnabledis true while it is registered), but every call fails with FUNCTION_NOT_FOUND.
Describe the solution
- Debug tab: run a dynamic function in an activity that registers it (
AppFunctionState.activityIds, API 37+), with a choice when several activities register it. - Agent: for the overlay / split-screen CUJ described in #94 ("put a poem into the current chat thread"), target the foreground activity, e.g. via
VoiceInteractionSession.getAppFunctionActivityId. Until then, consider leaving dynamic functions out of the tools sent to the model, since calls to them can't succeed.
Additional context
Found during "Function state & tests" (#104). Related to #94 and #98.
Code of Conduct
- I agree to follow this project's Code of Conduct
- Langage dominant
- Kotlin
- Étoiles
- 222
- Forks
- 54
- Merge moyen
- 1 j 11 h
- PR mergées (30 j)
- 26
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de android/appfunctions
-
[Bug]: Fractional numbers are silently truncated for int/long parameters in the testing agentOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
android/appfunctions#84 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
android/appfunctions#82 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
android/appfunctions#81 ·
Les mainteneurs répondent en général sous 1 jour
-
documentation
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
android/appfunctions#66 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
android/appfunctions#62 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de android/appfunctions
Issues similaires
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
MetrolistGroup/Metrolist#5426 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
micronizationlab/glafira-ai-hub#785 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
sorsama/deepseek-harness-mobile#154 ·
Les mainteneurs répondent en général sous 1 jour
-
0. Needs triage enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour