Skip to content

fix: 飞书客户端收到的卡片内容同 stapp.py 定义,以output 为主#584

Open
benemorphy wants to merge 8 commits into
lsdefine:mainfrom
benemorphy:main
Open

fix: 飞书客户端收到的卡片内容同 stapp.py 定义,以output 为主#584
benemorphy wants to merge 8 commits into
lsdefine:mainfrom
benemorphy:main

Conversation

@benemorphy

Copy link
Copy Markdown
Contributor

修改了 /frontends/fsapp.py 及对应launch.pyw ,确保飞书客户端收到的卡片内容,标题同stapp.py 定义,以output 为主
原有的在客户端看到的卡片标题是以 code_run 。。。。等为标题,信息量比较少。

benechen added 8 commits June 7, 2026 09:31
…le fsapp.py

- fsapp.py: add --feishu2 CLI arg + V2_MODE flag
- _TaskCard._build(): dual-mode (V2_MODE=False: status-first, V2_MODE=True: output-first)
- launch.pyw: --feishu2 launches fsapp.py --feishu2
- Single file, no fsapp2.py needed
…tion

- Replace repr(text) with json.dumps(text) in inject() to ensure
  proper Unicode/emoji handling in JavaScript context
- Add import json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant