Fix:Agent running message i10n (#7635)

### What problem does this PR solve?

Close #7612

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Stephen Hu
2025-05-14 14:27:12 +08:00
committed by GitHub
parent 4ac61fc470
commit ce81e470e3
12 changed files with 51 additions and 19 deletions

View File

@ -166,7 +166,10 @@ class Canvas:
return n["data"]["name"]
return ""
def run(self, **kwargs):
def run(self, running_hint_text = "is running...🕞", **kwargs):
if not running_hint_text or not isinstance(running_hint_text, str):
running_hint_text = "is running...🕞"
if self.answer:
cpn_id = self.answer[0]
self.answer.pop(0)
@ -208,7 +211,7 @@ class Canvas:
if c not in waiting:
waiting.append(c)
continue
yield "*'{}'* is running...🕞".format(self.get_component_name(c))
yield "*'{}'* {}".format(self.get_component_name(c), running_hint_text)
if cpn.component_name.lower() == "iteration":
st_cpn = cpn.get_start()