Persist CEO console /clear by clearing EA chat history in backend storage (and fix CI version gate)#392
Draft
Copilot wants to merge 3 commits into
Draft
Persist CEO console /clear by clearing EA chat history in backend storage (and fix CI version gate)#392Copilot wants to merge 3 commits into
/clear by clearing EA chat history in backend storage (and fix CI version gate)#392Copilot wants to merge 3 commits into
Conversation
Agent-Logs-Url: https://github.com/1mancompany/OneManCompany/sessions/dfdf3456-4fdd-441d-9dff-7c9f90177253 Co-authored-by: zhengxuyu <[email protected]>
Copilot
AI
changed the title
[WIP] Investigate persistence issue with CEO console clear command
Persist CEO console May 13, 2026
/clear by clearing EA chat history in backend storage
Collaborator
|
@copilot ci/cd没过 |
Collaborator
|
@copilot ci/cd没过 |
Agent-Logs-Url: https://github.com/1mancompany/OneManCompany/sessions/b75b73cd-40d0-4c0a-a4ea-2206c61b6b7d Co-authored-by: zhengxuyu <[email protected]>
Contributor
Author
已定位并修复这次 CI 失败:失败点是版本检查(PR 版本与 main 同为 0.7.77)。我已在提交 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
Persist CEO console
Persist CEO console May 13, 2026
/clear by clearing EA chat history in backend storage/clear by clearing EA chat history in backend storage (and fix CI version gate)
Contributor
Author
我复查了最新这轮并确认不是代码再次失败:当前 |
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.
Background
/clearin CEO console appeared to wipe EA chat, but refresh restored prior conversation history. During PR review, CI was also reported failing./clearonly reset frontend state/localStorage and rendered empty UI; persisted conversation messages remained on disk and were reused on reload. Separately, CI failed the version gate because PR version matchedmain(0.7.77).What Changed
/clearnow performs a backend clear for the active EA conversation instead of only client-side reset.POST /api/conversation/{conv_id}/clearnow supports bothoneononeandea_chat, and clears only conversations matching(employee_id, conversation type).0.7.78to satisfy CI version bump check againstmain.Key Design Decisions
Files Changed (annotated)
frontend/app.js/clearslash action to call backend clear endpoint for EA chat; only clears terminal view after successful response; reports failure in console.src/onemancompany/api/routes.pyoneonone+ea_chat; changed clear loop filter to sameemployee_idand sameconv.type.tests/integration/test_conversation_api.pytest_clear_ea_chat_history_persists_across_reopento verify disk history is wiped and not restored by reuse/reopen flow.pyproject.toml0.7.77to0.7.78to pass CI version gate.package.json0.7.77to0.7.78for consistency with project version.Type
Review Checklist
Phase 1 — Bug Hunt
Phase 2 — Design Principles (docs/design-principles.md)
except: pass; errors logged,CancelledErrorre-raisednode.status = ...assignmentPhase 3 — Side Effects
Test Plan
.venv/bin/python -m pytest tests/unit/ -x).venv/bin/python -c "from onemancompany.api.routes import router; print('OK')")node -c frontend/app.js)Manual Test Steps
/clearin EA chat.main.Screenshots
N/A (no visual UI layout change; command behavior change only).