Skip to content

Build autonomous character companion experience - #345

Merged
whbzju merged 14 commits into
mainfrom
codex/character-companion-optimization
Jul 26, 2026
Merged

whbzju merged 14 commits into
mainfrom
codex/character-companion-optimization

Conversation

@whbzju

@whbzju whbzju commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add an independent, persistent CharacterAgent runtime for perception, memory, initiative, comments, and private conversations
  • let characters learn existing user history through character-owned workspaces and progressively retrieve their own memories
  • support proactive in-app messages, multi-bubble conversations, delayed typing state, continuous input, and Fluent emoji gestures
  • preserve and recover long-running Super Agent chat history across upgrades and reinstalls
  • align character UI with Memex MVVM boundaries by injecting ViewModels, routing through MemexRouter, and moving editor persistence into a repository
  • remove the obsolete CompanionAgent implementation and retain the persisted agent configuration ID for compatibility

Test plan

  • flutter test --no-pub test/ui/character test/domain/models/character_editor_test.dart test/domain/models/event_bus_message_test.dart test/data/services/character_conversation_handler_test.dart test/data/services/character_initiative_flow_test.dart test/integration/character_companion_pipeline_test.dart test/agent/character_scene_memory_test.dart test/agent/character_conversation_skill_test.dart
  • targeted character suite: 34 passed
  • full suite: 877 passed, 5 skipped, 3 pre-existing Settings widget test failures
  • flutter analyze --no-pub: no errors or warnings; 174 existing info-level lints
  • flutter build ios --release --flavor global --no-pub

whbzju and others added 13 commits June 28, 2026 17:29
Introduce independent character perception, memory, initiative, and private conversation flows. Unify character comments with the same workspace, add durable reply cursors and task handlers, and support multi-bubble chat without locking user input.

Tests: 38 targeted companion tests pass. Full flutter test: 840 pass, 5 skipped, 3 unrelated settings widget tests fail. flutter analyze --no-fatal-infos passes with existing info-level lints.
@github-actions

github-actions Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

PR AI Review / PR AI 语义预检

中文

  • 风险等级:高风险
  • 需要人工审核:是
  • 黄金链路影响:可能
  • 置信度:high
  • Workflow run:30151624588

AI 语义预检未得到可解析结果,需要 maintainer 人工审核。

影响范围

  • unknown

黄金链路

  • none
  • 说明:Claude Code Action 未产出结构化 JSON,AI 语义预检结果不可用。

风险项

  • high AI review 结果不可用。证据:Claude Code Action structured_output was empty or invalid.。
    建议:检查 Claude Action 日志和模型网关配置后重新运行 workflow。

测试缺口

  • 未发现新的测试缺口。

English

  • Risk level: HIGH
  • Human review required: YES
  • Golden path impact: POSSIBLE
  • Confidence: high
  • Workflow run: 30151624588

AI semantic review did not return a parseable result; maintainer review is required.

Affected Areas

  • unknown

Golden Path

  • none
  • Rationale: Claude Code Action did not produce structured JSON, so the AI review result is unavailable.

Findings

  • high AI review result unavailable. Evidence: Claude Code Action structured_output was empty or invalid..
    Recommendation: Check Claude Action logs and model gateway configuration, then rerun the workflow.

Test Gaps

  • No new test gap was reported.

AI review is advisory. Maintainers should verify the result before merging.

@github-actions github-actions Bot added ai: high risk AI review classified the PR as high risk golden path impact AI review found possible impact to a core user flow needs human review AI review or policy signals require maintainer review labels Jul 23, 2026
@github-actions

github-actions Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

PR Preflight Summary / PR 预检汇总

中文

  • 统一结论:高风险:质量预检通过,但需要 maintainer 人工 review 后手动合并。
  • Policy preflight:高风险。命中 38 条高风险规则,需要 maintainer 人工确认。
  • Flutter quality:通过。Analyzer 和 test baseline 均未发现新增问题。
  • PR head:e395ad18daa67751236d50ce41bd1f880e5bb1ef
  • Policy run:30151624594
  • Flutter run:30151625568

English

  • Combined result: High risk: quality passed, but maintainer review is required before manual merge.
  • Policy preflight: HIGH RISK. Found 38 high-risk policy signal(s); maintainer review is required.
  • Flutter quality: PASS. Analyzer and test baselines found no newly introduced issue.
  • PR head: e395ad18daa67751236d50ce41bd1f880e5bb1ef
  • Policy run: 30151624594
  • Flutter run: 30151625568
PR Policy Preflight / PR 规则预检

PR Policy Preflight / PR 规则预检

中文

  • 判定:高风险
  • 变更文件数:154
  • 变更行数:17943
  • Diff 是否截断:true

规则命中

  • 高风险 binary-file assets/fluent_emoji/beaming_face_with_smiling_eyes_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/clapping_hands_3d_default.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/crescent_moon_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/crying_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/eyes_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/face_blowing_a_kiss_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/face_holding_back_tears_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/face_with_hand_over_mouth_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/face_with_tears_of_joy_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/fire_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/flushed_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/grinning_face_with_smiling_eyes_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/hugging_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/loudly_crying_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/melting_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/party_popper_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/pensive_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/pleading_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/red_heart_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/relieved_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/see-no-evil_monkey_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/shushing_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/sleeping_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/slightly_smiling_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/smiling_face_with_hearts_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/smiling_face_with_smiling_eyes_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/sparkles_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/sparkling_heart_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/sun_with_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/sunflower_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/thinking_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/thumbs_up_3d_default.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/two_hearts_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/unamused_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/waving_hand_3d_default.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/winking_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file assets/fluent_emoji/yawning_face_3d.png: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 diff-truncated: Diff 超过配置的 preflight 大小限制,已被截断。

English

  • Decision: HIGH RISK
  • Changed files: 154
  • Changed lines: 17943
  • Diff truncated: true

Findings

  • high binary-file assets/fluent_emoji/beaming_face_with_smiling_eyes_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/clapping_hands_3d_default.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/crescent_moon_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/crying_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/eyes_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/face_blowing_a_kiss_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/face_holding_back_tears_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/face_with_hand_over_mouth_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/face_with_tears_of_joy_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/fire_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/flushed_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/grinning_face_with_smiling_eyes_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/hugging_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/loudly_crying_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/melting_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/party_popper_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/pensive_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/pleading_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/red_heart_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/relieved_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/see-no-evil_monkey_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/shushing_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/sleeping_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/slightly_smiling_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/smiling_face_with_hearts_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/smiling_face_with_smiling_eyes_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/sparkles_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/sparkling_heart_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/sun_with_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/sunflower_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/thinking_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/thumbs_up_3d_default.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/two_hearts_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/unamused_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/waving_hand_3d_default.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/winking_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high binary-file assets/fluent_emoji/yawning_face_3d.png: Binary file changed outside the low-risk icon asset path.
  • high diff-truncated: Diff exceeded the configured preflight size limit and was truncated.
PR Flutter Quality / Flutter 质量预检

PR Flutter Quality / Flutter 质量预检

中文

  • 总体:通过
  • Analyzer baseline:通过
  • Test baseline:通过

English

  • Overall: PASS
  • Analyzer baseline: PASS
  • Test baseline: PASS

Flutter Analyzer Baseline

  • Base issues: 174
  • PR issues: 174
  • New issues: 0

No new analyzer issues introduced by this PR.

Flutter Test Baseline

  • Base failures: 9
  • PR failures: 0
  • New failures: 0

No new Flutter test failures introduced by this PR.

@github-actions github-actions Bot added ai: high risk AI review classified the PR as high risk golden path impact AI review found possible impact to a core user flow needs human review AI review or policy signals require maintainer review and removed ai: high risk AI review classified the PR as high risk needs human review AI review or policy signals require maintainer review golden path impact AI review found possible impact to a core user flow labels Jul 25, 2026
@whbzju
whbzju merged commit e843f35 into main Jul 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai: high risk AI review classified the PR as high risk golden path impact AI review found possible impact to a core user flow needs human review AI review or policy signals require maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants