feat(profile-helper): align helper runtime with standalone flow#2
Merged
FZR95 merged 1 commit intoTashanGKD:mainfrom Mar 8, 2026
Merged
feat(profile-helper): align helper runtime with standalone flow#2FZR95 merged 1 commit intoTashanGKD:mainfrom
FZR95 merged 1 commit intoTashanGKD:mainfrom
Conversation
Adopt the standalone profile helper's interaction and auto-save behavior while keeping Topic-Lab's existing API boundaries and module structure intact. Made-with: Cursor
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.
Adopt the standalone profile helper's interaction and auto-save behavior while keeping Topic-Lab's existing API boundaries and module structure intact.
Made-with: Cursor
Change Type
Description
Related Issue
Checklist
pytest -q -m "not integration".env:bash scripts/ci_local.sh总览
这次改造把
tashan-profile-helper的核心能力迁进了 TopicLab 的/profile-helper模块,目标是“交互逻辑和自动保存完全对齐 helper”,同时尽量不动 TopicLab 的页面壳、API 形状和角色库链路。最终产出分成两部分,且都已推送:
后端变更
后端主要集中在
profile_helper模块内部,保持了 TopicLab 现有/profile-helper/*API 不变,但把运行语义切到了 helper 风格。核心变化:
sessions.py从“仅内存会话”升级为“内存会话 + 文件自动落盘”。write_profile/write_forum_profile时,会立即把画像和论坛分身写入磁盘,而不再只是留在内存里。agent.py的工具调用语义改成与 helper 一致,真正使用保存函数完成自动写入。prompts.py对齐了 helper 的对话规则,包括:tools.py做了模块化资源解析,优先读取 helper 风格的skills/docs/template,同时保留 TopicLab 自带资源作为兜底。backend/libs/profile_helper/下的模板和关键 skill/doc 文案已同步到 helper 语义,减少运行时规则漂移。效果上,后端现在已经更接近独立的
tashan-profile-helper,但仍然挂在 Resonnet/TopicLab 既有框架里。前端变更
前端改动集中在
frontend/src/modules/profile-helper/,没有扩散到 TopicLab 其他页面。主要调整:
ChatWindow.tsx的欢迎语、视图命名、入口文案改为 helper 风格。ProfilePanel.tsx的展示名称和隐私说明改为 helper 的表述方式:子模块与仓库调整
为了能正常推送并保证别人拉代码不出错,我还补了一个必要的工程性调整:
Tashan-TopicLab的.gitmodules已从上游TashanGKD/Resonnet改到你的 forkzhang2023-byte/Resonnet这样主仓库里的
backend子模块指针会指向你有权限且已经包含本次改动的远程仓库,避免主仓库引用一个不存在于你远程中的子模块提交。验证情况
已完成的检查:
py_compilenpm exec tsc --noEmit未完成的部分:
pytest,因为当前环境缺少pytest/uv命令对应提交
Resonnet:f7b6513feat(profile-helper): align helper runtime with standalone flowTashan-TopicLab:9526304feat(profile-helper): sync Topic-Lab shell with helper replacementTashan-TopicLab:964fa56chore(submodule): point backend to personal Resonnet fork