🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
✨ feat(labs): add Better Coding Experience lab switch (#23171)
Bryand35fccc54530
diff --git a/locales/en-US/labs.json b/locales/en-US/labs.jsonindex b4b5fa91135..64791e71163 100644--- a/locales/en-US/labs.json+++ b/locales/en-US/labs.json@@ -10,6 +10,8 @@"features.artifactDeployment.title": "Artifact Deployments","features.assistantMessageGroup.desc": "Group agent messages and their tool call results together for display","features.assistantMessageGroup.title": "Agent Message Grouping",+ "features.betterCodingExperience.desc": "A set of experiments that improve how agents write, run and review code with you.",+ "features.betterCodingExperience.title": "Better Coding Experience","features.claudeCodeSdk.desc": "Run Claude Code sessions through the Claude Agent SDK instead of spawning the CLI. Enables richer streaming and session control.","features.claudeCodeSdk.title": "Claude Code SDK Runtime","features.codexAppServer.desc": "Run Codex sessions through the local app-server instead of one-shot CLI processes. Enables token streaming and native turn control.",diff --git a/locales/zh-CN/labs.json b/locales/zh-CN/labs.jsonindex c08e820ff34..b586c5fe9da 100644--- a/locales/zh-CN/labs.json+++ b/locales/zh-CN/labs.json@@ -10,6 +10,8 @@"features.artifactDeployment.title": "Artifact 部署","features.assistantMessageGroup.desc": "将代理消息及其工具调用结果组合在一起显示","features.assistantMessageGroup.title": "代理消息分组",+ "features.betterCodingExperience.desc": "一组实验功能,改进智能体与你一起写代码、运行和审查代码的体验。",+ "features.betterCodingExperience.title": "更好的编码体验","features.claudeCodeSdk.desc": "通过 Claude Agent SDK 运行 Claude Code 会话,替代 CLI 进程方式,提供更丰富的流式输出与会话控制。","features.claudeCodeSdk.title": "Claude Code SDK 运行时","features.codexAppServer.desc": "通过本地 App Server 运行 Codex 会话,替代一次性的 CLI 进程,提供 Token 流式输出与原生 Turn 控制。",diff --git a/packages/locales/src/default/labs.ts b/packages/locales/src/default/labs.tsindex 05c9fb89bfd..b10c0d0073c 100644--- a/packages/locales/src/default/labs.ts+++ b/packages/locales/src/default/labs.ts@@ -16,6 +16,9 @@ export default {'features.assistantMessageGroup.desc':'Group agent messages and their tool call results together for display','features.assistantMessageGroup.title': 'Agent Message Grouping',+ 'features.betterCodingExperience.desc':+ 'A set of experiments that improve how agents write, run and review code with you.',+ 'features.betterCodingExperience.title': 'Better Coding Experience','features.claudeCodeSdk.desc':'Run Claude Code sessions through the Claude Agent SDK instead of spawning the CLI. Enables richer streaming and session control.','features.claudeCodeSdk.title': 'Claude Code SDK Runtime',diff --git a/packages/types/src/user/preference.ts b/packages/types/src/user/preference.tsindex 12dc00197b6..869f13563c5 100644--- a/packages/types/src/user/preference.ts+++ b/packages/types/src/user/preference.ts@@ -176,6 +176,11 @@ export const UserGuideSchema = z.object({export type UserGuide = z.infer<typeof UserGuideSchema>;export const UserLabSchema = z.object({+ /**+ * one switch for the experiments that improve how agents write and work with+ * code; every coding-experience improvement reads this flag+ */+ enableBetterCodingExperience: z.boolean().optional(),/*** enable agent identity: give an agent its own mail address*/diff --git a/src/features/Settings/labs/features.ts b/src/features/Settings/labs/features.tsindex 82cc48738cf..2e155295b4c 100644--- a/src/features/Settings/labs/features.ts+++ b/src/features/Settings/labs/features.ts@@ -17,6 +17,7 @@ type LabFeatureI18nKey =| 'agentGraphConfig'| 'agentIdentity'| 'artifactDeployment'+ | 'betterCodingExperience'| 'claudeCodeSdk'| 'codexAppServer'| 'desktopSplitView'@@ -118,6 +119,12 @@ const ALL_LAB_FEATURES: LabFeatureItem[] = [searchKeywords: ['tunnel', 'port forwarding', 'dev server', 'localhost'],stage: 'alpha',},+ {+ flag: 'enableBetterCodingExperience',+ i18nKey: 'betterCodingExperience',+ searchKeywords: ['coding', 'code', 'developer', 'programming', 'IDE'],+ stage: 'alpha',+ },{flag: 'enableProjects',i18nKey: 'projects',diff --git a/src/store/user/slices/preference/selectors/labPrefer.ts b/src/store/user/slices/preference/selectors/labPrefer.tsindex 172b4853759..7df71cc7a17 100644--- a/src/store/user/slices/preference/selectors/labPrefer.ts+++ b/src/store/user/slices/preference/selectors/labPrefer.ts@@ -10,6 +10,8 @@ export const labPreferSelectors = {enableAgentIdentity: (s: UserState): boolean => s.preference.lab?.enableAgentIdentity ?? false,enableArtifactDeployment: (s: UserState): boolean =>s.preference.lab?.enableArtifactDeployment ?? false,+ enableBetterCodingExperience: (s: UserState): boolean =>+ s.preference.lab?.enableBetterCodingExperience ?? false,enableClaudeCodeSdk: (s: UserState): boolean => s.preference.lab?.enableClaudeCodeSdk ?? false,enableCodexAppServer: (s: UserState): boolean => s.preference.lab?.enableCodexAppServer ?? false,enableDeviceTunnel: (s: UserState): boolean => s.preference.lab?.enableDeviceTunnel ?? false,