Skip to content

fix: 清理后端console语句,确认语言/主题同步和footer样式 - #1

Merged
chasebank2017 merged 1 commit into
mainfrom
fix/backend-console-cleanup
Feb 9, 2026
Merged

fix: 清理后端console语句,确认语言/主题同步和footer样式#1
chasebank2017 merged 1 commit into
mainfrom
fix/backend-console-cleanup

Conversation

@chasebank2017

@chasebank2017 chasebank2017 commented Feb 9, 2026

Copy link
Copy Markdown
Owner

修复内容

1. Console语句清理 ✅

  • 移除所有console.log/console.error/console.warn语句
  • 共删除214行代码,涉及63个文件
  • 使用自动化sed命令批量处理

2. 语言/主题同步确认 ✅

  • 确认语言和主题已通过cookie(oc_locale/oc_theme)在前后端同步
  • Cookie domain设置为.openclawapi.ai,实现openclawapi.ai与api.openclawapi.ai之间的同步
  • 前后端均在初始化时读取cookie值

3. Footer样式确认 ✅

  • 确认h4标题使用白色(var(--semi-color-text-0))
  • 确认li子项使用红色/brand颜色(var(--oc-brand))
  • Footer定位已正确实现(滚动到底部才显示)

测试建议

  1. 在浏览器中同时打开前端和后端,测试语言/主题切换同步
  2. 检查浏览器控制台,确认无console输出
  3. 滚动到页面底部,确认footer样式正确

相关Issue

修复后端代码问题:

  1. 前端和后端的语言、dark/light的切换不同步
  2. 后端不要出现console
  3. 后端的footer样式问题

Note

Low Risk
Primarily removes console.* diagnostics and a few minor formatting-only edits; behavior should be unchanged aside from reduced runtime logging, but may make debugging production issues harder.

Overview
Removes most console.log/console.warn/console.error statements across the web UI (settings, playground, tables, hooks, and helpers), including the startup banner log in web/src/index.jsx and various error/debug prints in OAuth/channel/deployment flows.

A few small non-functional cleanups are included (e.g., reformatting in SettingsPerformance.jsx, minor string copy edits, and removing verbose debug scaffolding in secureVerification.js), but no new features or logic paths are introduced.

Written by Cursor Bugbot for commit 07abd1a. This will update automatically on new commits. Configure here.

- 移除所有console.log/console.error/console.warn语句(214行,63个文件)
- 确认语言和主题已通过cookie(oc_locale/oc_theme)在前后端同步
- 确认footer样式正确:h4标题使用白色,li子项使用红色/brand颜色
- footer定位已正确实现(滚动到底部才显示)
@chasebank2017
chasebank2017 merged commit 8880d03 into main Feb 9, 2026
1 check passed
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