π€― 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
chore: remove LOBE-XXX annotation markers from source code (#17689)
Arvin Xu03d4b88a2bbe
diff --git a/apps/desktop/src/main/controllers/HeterogeneousAgentCtr.ts b/apps/desktop/src/main/controllers/HeterogeneousAgentCtr.tsindex 9d9ce1a88b7..9be24442b33 100644--- a/apps/desktop/src/main/controllers/HeterogeneousAgentCtr.ts+++ b/apps/desktop/src/main/controllers/HeterogeneousAgentCtr.ts@@ -932,7 +932,7 @@ export default class HeterogeneousAgentCtr extends ControllerModule {this.builtinMcpStartPromise = (async () => {const server = new LobeBuiltinMcpServer({// In-app browser control tools ride the same per-op MCP server so- // CC can drive the browser sidebar (LOBE-11712 M3, hetero path).+ // CC can drive the browser sidebar ( M3, hetero path).extraTools: buildBrowserMcpTools((operationId, apiName, args) =>this.runBrowserMcpTool(operationId, apiName, args),),diff --git a/apps/server/src/agent-hono/handlers/botCallback.ts b/apps/server/src/agent-hono/handlers/botCallback.tsindex bf2922ad16d..a0a31c8a813 100644--- a/apps/server/src/agent-hono/handlers/botCallback.ts+++ b/apps/server/src/agent-hono/handlers/botCallback.ts@@ -40,7 +40,7 @@ export async function botCallback(c: Context): Promise<Response> {}// console (not debug) for completions only: arrival of the final-reply- // callback must be provable from production logs (LOBE-11632) β the debug+ // callback must be provable from production logs β the debug// namespace above is not enabled in production, and steps are too chatty.if (type === 'completion') {console.info(diff --git a/apps/server/src/modules/AgentRuntime/adapters/serverCallLlmContextBuilder.ts b/apps/server/src/modules/AgentRuntime/adapters/serverCallLlmContextBuilder.tsindex cc7928e0c7f..a15e1540634 100644--- a/apps/server/src/modules/AgentRuntime/adapters/serverCallLlmContextBuilder.ts+++ b/apps/server/src/modules/AgentRuntime/adapters/serverCallLlmContextBuilder.ts@@ -319,7 +319,7 @@ export const buildServerCallLlmContext = async ({try {const marketService = new MarketService({ userInfo: { userId: ctx.userId } });// Inside a workspace, the agent must only see the workspace's shared- // organization credentials β personal creds are not visible here (LOBE-10978).+ // organization credentials β personal creds are not visible here.const credsResult = ctx.workspaceId? await marketService.market.organizations.creds({ workspaceId: ctx.workspaceId }).list(): await marketService.market.creds.list();diff --git a/apps/server/src/modules/Mecha/ContextEngineering/__tests__/serverMessagesEngine.test.ts b/apps/server/src/modules/Mecha/ContextEngineering/__tests__/serverMessagesEngine.test.tsindex 15091e808f4..264d346c217 100644--- a/apps/server/src/modules/Mecha/ContextEngineering/__tests__/serverMessagesEngine.test.ts+++ b/apps/server/src/modules/Mecha/ContextEngineering/__tests__/serverMessagesEngine.test.ts@@ -121,7 +121,7 @@ describe('serverMessagesEngine', () => {expect(result[0].content).toBe(systemRole + '\n\n' + getCurrentDateContent());});- it('renders {{workingDirectory}} to a fallback instead of leaking the literal (LOBE-11473)', async () => {+ it('renders {{workingDirectory}} to a fallback instead of leaking the literal ', async () => {const messages = createBasicMessages();const systemRole = '<working-directory>{{workingDirectory}}</working-directory>';diff --git a/apps/server/src/modules/Mecha/ContextEngineering/index.ts b/apps/server/src/modules/Mecha/ContextEngineering/index.tsindex 94a5cc111bf..71ec93ef359 100644--- a/apps/server/src/modules/Mecha/ContextEngineering/index.ts+++ b/apps/server/src/modules/Mecha/ContextEngineering/index.ts@@ -30,7 +30,7 @@ const createServerVariableGenerators = (params: {// resolves) and overrides this through the spread order below. Without this// fallback, a device-run whose cwd can't be resolved (e.g. a web-originated// session with no bound directory) leaves `{{workingDirectory}}` unmatched and- // leaks the literal into the local-system system prompt (LOBE-11473).+ // leaks the literal into the local-system system prompt.workingDirectory: () => '(not specified, use user Home directory as default)',// Same leak-guard as workingDirectory: the real value arrives via// `additionalVariables` (deviceSystemInfo.defaultShell) and overrides this.diff --git a/apps/server/src/routers/lambda/__tests__/agent.test.ts b/apps/server/src/routers/lambda/__tests__/agent.test.tsindex f05c355f4ee..db855cf0391 100644--- a/apps/server/src/routers/lambda/__tests__/agent.test.ts+++ b/apps/server/src/routers/lambda/__tests__/agent.test.ts@@ -582,7 +582,7 @@ describe('agentRouter', () => {expect(agentModelMock.setVisibility).toHaveBeenCalledWith('agent-1', 'private');});- it('rejects demotion while the agent supervises group chats visible to others (LOBE-11772)', async () => {+ it('rejects demotion while the agent supervises group chats visible to others ', async () => {chatGroupModelMock.countGroupsBlockingAgentDemotion.mockResolvedValue(1);const caller = agentRouter.createCaller(wsCtx());@@ -598,7 +598,7 @@ describe('agentRouter', () => {expect(agentModelMock.setVisibility).not.toHaveBeenCalled();});- it('rejects demotion of another member agent even for a workspace owner (LOBE-11760)', async () => {+ it('rejects demotion of another member agent even for a workspace owner ', async () => {agentModelMock.getAgentVisibilityMeta.mockResolvedValue({slug: null,userId: 'other-member',diff --git a/apps/server/src/routers/lambda/__tests__/connector.syncPluginTools.test.ts b/apps/server/src/routers/lambda/__tests__/connector.syncPluginTools.test.tsindex c1d4cfc0624..089471df633 100644--- a/apps/server/src/routers/lambda/__tests__/connector.syncPluginTools.test.ts+++ b/apps/server/src/routers/lambda/__tests__/connector.syncPluginTools.test.ts@@ -259,7 +259,7 @@ describe('connectorRouter.create β sourceType handling on existing rows', () =});});-describe('connectorRouter.delete β agent connector unpins from the owning agent (LOBE-11682)', () => {+describe('connectorRouter.delete β agent connector unpins from the owning agent ', () => {// Deleting an agent-owned connector must also remove its tool from that// agent's `plugins`, so the unified settings delete matches the agent-profile// delete (row + pin) and never leaves a dangling pin. Done server-side so the@@ -334,7 +334,7 @@ describe('connectorRouter.delete β agent connector unpins from the owning agen});});-describe('connectorRouter.listAgentBound β hides connectors of unseen agents (LOBE-11681)', () => {+describe('connectorRouter.listAgentBound β hides connectors of unseen agents ', () => {// `queryAllAgentScoped` filters only by `workspace_id`, so a member could// otherwise see connectors owned by another member's PRIVATE agent. Gate the// result on the visibility-aware agent set (`getAgentAvatarsByIds`).diff --git a/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.test.ts b/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.test.tsindex 6ac9a840aca..a6c9f3502d7 100644--- a/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.test.ts+++ b/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.test.ts@@ -43,7 +43,7 @@ beforeEach(() => {});describe('getResourceConfigAccess', () => {- // LOBE-12374: builtins are `virtual: true`, so linking one into a group made the+ // builtins are `virtual: true`, so linking one into a group made the// parent cap reduce `full` to `profile` β the config was redacted and the route// redirected exactly as before the fix. The evaluator alone cannot show this.it('does not cap a collaborative builtin at its parent group access', async () => {diff --git a/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.ts b/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.tsindex 2220340141f..bed99bb07f2 100644--- a/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.ts+++ b/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.ts@@ -93,7 +93,7 @@ export const getResourceConfigAccess = async (// Collaborative builtins (Lobe AI, the builders, the page agent) are workspace// infrastructure that happens to be `virtual: true`, so linking one into a group// would otherwise cap its config access at that group's level β reinstating the- // lockout this whole change removes (LOBE-12374). They are not group-owned+ // lockout this whole change removes. They are not group-owned// content, so the parent cap does not apply to them.if (isCollaborativeBuiltinAgent(resourceType, meta)) return ownAccess;diff --git a/apps/server/src/routers/lambda/agent.ts b/apps/server/src/routers/lambda/agent.tsindex dd2e703a4b4..7abefcf9ee8 100644--- a/apps/server/src/routers/lambda/agent.ts+++ b/apps/server/src/routers/lambda/agent.ts@@ -169,7 +169,7 @@ export const agentRouter = router({* Publish a private agent into the workspace. Only the creator of a* still-private agent can run this; the underlying SQL enforces both rules.* The inverse transition (public β private) goes through- * `setAgentVisibility`, which is gated to the creator only (LOBE-11760).+ * `setAgentVisibility`, which is gated to the creator only.*/publishAgentToWorkspace: agentProcedure.use(withScopedPermission('agent:update'))@@ -193,11 +193,11 @@ export const agentRouter = router({}),/**- * Bidirectional visibility switch (LOBE-11551). Rules:+ * Bidirectional visibility switch. Rules:* - builtin agents (LobeAI etc., identified by slug) can never change* visibility β the workspace copy must stay shared;* - only the agent's creator may pull a published agent back to private- * (LOBE-11760): a workspace owner demoting another member's agent would+ *: a workspace owner demoting another member's agent would* effectively appropriate it, so everyone else gets FORBIDDEN. The UI* hides the entry for them, this is the server-side backstop.*/@@ -287,7 +287,7 @@ export const agentRouter = router({// Same source-level guard for group chats, but only for the supervisor// role: a private supervisor is unresolvable for every other viewer and// bricks the whole group. Regular members are not blocked β roster- // reads drop a non-visible member per viewer instead (LOBE-11772).+ // reads drop a non-visible member per viewer instead.if (input.visibility === 'private') {const chatGroupModel = new ChatGroupModel(ctx.serverDB, ctx.userId, ctx.workspaceId);const blockingGroups = await chatGroupModel.countGroupsBlockingAgentDemotion(diff --git a/apps/server/src/routers/lambda/connector.ts b/apps/server/src/routers/lambda/connector.tsindex 1bdbc920760..5986cac8519 100644--- a/apps/server/src/routers/lambda/connector.ts+++ b/apps/server/src/routers/lambda/connector.ts@@ -201,7 +201,7 @@ export const connectorRouter = router({* `agentId` and is enriched with the owning agent's `agentTitle`/`agentAvatar`* for attribution badges. Scope-correct via `ConnectorModel.ownership()` (and* `AgentModel.ownership()` for the titles) β a workspace context only returns- * that workspace's agent connectors (LOBE-11681 / LOBE-11682).+ * that workspace's agent connectors ( /).*/listAgentBound: connectorProcedure.query(async ({ ctx }) => {const connectors = await ctx.connectorModel.queryAllAgentScoped();@@ -218,7 +218,7 @@ export const connectorRouter = router({// plus their own private agents. A `user_connectors` row is scoped only by// `workspace_id`, so on its own it would surface connectors owned by another// member's PRIVATE agent. Gate on the visible-agent set so private-agent- // connector inventory never leaks across members (LOBE-11681).+ // connector inventory never leaks across members.const agentMetas = agentIds.length > 0 ? await agentModel.getAgentAvatarsByIds(agentIds) : [];const agentMetaById = new Map(agentMetas.map((m) => [m.id, m]));diff --git a/apps/server/src/routers/lambda/device.ts b/apps/server/src/routers/lambda/device.tsindex 16e65b56789..4ab3a296085 100644--- a/apps/server/src/routers/lambda/device.ts+++ b/apps/server/src/routers/lambda/device.ts@@ -1144,7 +1144,7 @@ export const deviceRouter = router({* Publish a private workspace device to the shared pool, or pull a public one* back to private. Mirrors the agent/file `setVisibility` contract:* - the enrolling member may toggle their own device both ways;- * - nobody else may touch visibility (LOBE-11760): owners demoting another+ * - nobody else may touch visibility: owners demoting another* member's public device would appropriate it into that member's private* list, and other members' private devices are invisible to everyone* else by design (the lookup below already fails closed with NOT_FOUND),diff --git a/apps/server/src/routers/lambda/task.ts b/apps/server/src/routers/lambda/task.tsindex c92399845c3..a1ca8a972ce 100644--- a/apps/server/src/routers/lambda/task.ts+++ b/apps/server/src/routers/lambda/task.ts@@ -1105,7 +1105,7 @@ export const taskRouter = router({// The creator can always change visibility on their own tasks. In// workspace mode, workspace owners may still promote other members'// tasks (mirrors the transferTask policy at line ~1166), but demoting- // to private stays creator-only (LOBE-11760): the task would land in+ // to private stays creator-only: the task would land in// the creator's private list, so an owner-initiated demotion just// appropriates another member's data.if (ctx.workspaceId && resolved.createdByUserId !== ctx.userId) {diff --git a/apps/server/src/services/aiAgent/__tests__/execAgent.spineAnchor.test.ts b/apps/server/src/services/aiAgent/__tests__/execAgent.spineAnchor.test.tsindex abbd0a8947e..c7a5420382d 100644--- a/apps/server/src/services/aiAgent/__tests__/execAgent.spineAnchor.test.ts+++ b/apps/server/src/services/aiAgent/__tests__/execAgent.spineAnchor.test.ts@@ -153,7 +153,7 @@ const assistantMessageCall = () =>mockMessageCreate.mock.calls.find((call) => call[0].role === 'assistant');/**- * Regression coverage for LOBE-11489: a user turn persisted with+ * Regression coverage for a user turn persisted with* `parentId: undefined` into a non-empty topic becomes a second ROOT. The* renderer walks the parentId forest depth-first, so an earlier root's* still-growing subtree is emitted before a later root and the newest replydiff --git a/apps/server/src/services/aiAgent/index.ts b/apps/server/src/services/aiAgent/index.tsindex 1ba720b783f..6433734def3 100644--- a/apps/server/src/services/aiAgent/index.ts+++ b/apps/server/src/services/aiAgent/index.ts@@ -1792,7 +1792,7 @@ export class AiAgentService {// undefined for a topic that already has messages: `parentId: undefined`// persists a second ROOT, and the renderer walks the parentId forest// depth-first β an earlier root's still-growing subtree is emitted before a- // later root, so the newest reply lands ABOVE older messages (LOBE-11489).+ // later root, so the newest reply lands ABOVE older messages.//// `getLatestSpineMessageId` skips tool rows and toolless signal turns, so it// can come back empty on a topic built entirely from signal callbacks; fall@@ -1981,7 +1981,7 @@ export class AiAgentService {agentConfig.agencyConfig?.heterogeneousProvider?.env?.GITHUB_CRED_KEY ?? 'github';try {// Inside a workspace, the GitHub cred must come from the workspace's shared- // organization credentials, not the operator's personal creds (LOBE-10978).+ // organization credentials, not the operator's personal creds.const credsAccessor = this.workspaceId? this.marketService.market.organizations.creds({ workspaceId: this.workspaceId }): this.marketService.market.creds;@@ -2902,7 +2902,7 @@ export class AiAgentService {await getScopedOnlineDevices(this.db, this.userId, this.workspaceId)).filter((d) => d.online);// A workspace agent whose caller pinned this desktop's personal- // deviceId via `users.preference.agentDeviceOverrides` (LOBE-11689,+ // deviceId via `users.preference.agentDeviceOverrides` (// the `local` code path in `useSelectExecutionTarget`) needs its// personal device to be visible in this run's device pool β otherwise// `resolveExecutionPlan` treats the bound device as offline and the@@ -3047,7 +3047,7 @@ export class AiAgentService {const deviceLocked = isDeviceLockedPlan(executionPlan);activeDeviceId = executionPlan.kind === 'device' ? executionPlan.deviceId : undefined;// Which principal pool the routed device lives in. A workspace run with a- // per-user `local` override (LOBE-11689) routes to the caller's PERSONAL+ // per-user `local` override routes to the caller's PERSONAL// device β the union above added it from the personal pool β and the// device runtimes must address it via `(userId, deviceId)`, not the// `workspace:<id>` pool where it has no connection. Carried throughdiff --git a/apps/server/src/services/bot/AgentBridgeService.ts b/apps/server/src/services/bot/AgentBridgeService.tsindex c1a04294f5c..efc5ff35621 100644--- a/apps/server/src/services/bot/AgentBridgeService.ts+++ b/apps/server/src/services/bot/AgentBridgeService.ts@@ -738,7 +738,7 @@ export class AgentBridgeService {const timezone = await this.loadTimezone();// Make sure the person who triggered the run is a member of the reply- // thread, so the platform notifies them when the reply lands (LOBE-11632:+ // thread, so the platform notifies them when the reply lands (// Discord's auto-created mention threads never add the mentioning user,// and pill rendering on the origin message proved unreliable β replies// were delivered but nobody was told). Fire-and-forget; never blocks.diff --git a/apps/server/src/services/bot/BotCallbackService.ts b/apps/server/src/services/bot/BotCallbackService.tsindex 21560abf5e8..1abdc7edb8b 100644--- a/apps/server/src/services/bot/BotCallbackService.ts+++ b/apps/server/src/services/bot/BotCallbackService.ts@@ -460,7 +460,7 @@ export class BotCallbackService {const hasAttachments = !!attachments?.length;if (!hasText && !hasAttachments) {// console (not debug) β every one of these is a user-facing "bot went- // silent" (LOBE-11632): the run completed but the completion event+ // silent": the run completed but the completion event// carried nothing to deliver. Must stay visible in production logs.console.error(`[BotCallbackService] completion had no lastAssistantContent and no attachments, skipping reply (operationId=${operationId}, topicId=${body.topicId}, thread=${body.platformThreadId})`,@@ -542,7 +542,7 @@ export class BotCallbackService {await messenger.editMessage(progressMessageId, payload);// Positive delivery record (console, not debug): "we sent it and the// platform accepted it" must be provable from production logs alone β- // LOBE-11632 burned days on inferring delivery from the absence of+ // burned days on inferring delivery from the absence of// error logs while the target thread had been deleted out from under// the bot.console.info(@@ -558,7 +558,7 @@ export class BotCallbackService {console.info('[BotCallbackService] completion reply delivered via createMessage');} catch (error) {// Last resort failed β the reply is lost. console (not debug) so the- // "agent ran but no reply appeared" class of failures (LOBE-11632)+ // "agent ran but no reply appeared" class of failures// is visible in production logs instead of an HTTP 200 with nothing.console.error(`[BotCallbackService] createMessage fallback failed, reply lost: ${describePlatformError(error)}`,diff --git a/apps/server/src/services/bot/__tests__/BotMessageRouter.test.ts b/apps/server/src/services/bot/__tests__/BotMessageRouter.test.tsindex 2d7b0cbac68..0abd92da2df 100644--- a/apps/server/src/services/bot/__tests__/BotMessageRouter.test.ts+++ b/apps/server/src/services/bot/__tests__/BotMessageRouter.test.ts@@ -1967,7 +1967,7 @@ describe('BotMessageRouter', () => {describe('rejection notice visibility (ensureThreadMember)', () => {/**- * LOBE-12191: on Discord a channel @mention auto-creates a reply+ * on Discord a channel @mention auto-creates a reply* thread and rejection notices are posted there β but the rejected* sender was never added to the thread, so they got no notification* and perceived the bot as silently ignoring them. Every group-scopediff --git a/apps/server/src/services/bot/platforms/discord/api.ts b/apps/server/src/services/bot/platforms/discord/api.tsindex 4f486218d54..b0bb46c3329 100644--- a/apps/server/src/services/bot/platforms/discord/api.ts+++ b/apps/server/src/services/bot/platforms/discord/api.ts@@ -227,7 +227,7 @@ export class DiscordApi {/*** Add a user to a thread. Members receive a notification and see the* thread in their client regardless of whether the origin message's- * thread pill rendered (see LOBE-11632).+ * thread pill rendered (see).*/async addThreadMember(threadId: string, userId: string): Promise<void> {log('addThreadMember: thread=%s, user=%s', threadId, userId);diff --git a/apps/server/src/services/bot/platforms/types.ts b/apps/server/src/services/bot/platforms/types.tsindex 7cb4389ffe4..8ac346187e1 100644--- a/apps/server/src/services/bot/platforms/types.ts+++ b/apps/server/src/services/bot/platforms/types.ts@@ -224,7 +224,7 @@ export interface PlatformClient {* Discord: the auto-created per-mention reply thread never adds the* mentioning user as a member β the reply lands in a thread the user is* not notified about, and thread-pill rendering on the origin message has- * proven unreliable (LOBE-11632: two separate clients showed no pill for+ * proven unreliable (two separate clients showed no pill for* hours while the API said `HAS_THREAD`). Explicit membership bypasses* both gaps. Best-effort β implementations must swallow failures.*diff --git a/apps/server/src/services/composio/index.ts b/apps/server/src/services/composio/index.tsindex bdf50ef0817..44dfe6bbd20 100644--- a/apps/server/src/services/composio/index.ts+++ b/apps/server/src/services/composio/index.ts@@ -36,7 +36,7 @@ export interface ComposioServiceOptions {/*** Workspace scope. When set, connector/plugin rows resolve within the team* workspace instead of the caller's personal scope (fixes workspace-installed- * Composio connectors being invisible at runtime β LOBE-10891).+ * Composio connectors being invisible at runtime).*/workspaceId?: string;}diff --git a/apps/server/src/services/resourcePermission/index.test.ts b/apps/server/src/services/resourcePermission/index.test.tsindex 860761b7ddd..5e460e07477 100644--- a/apps/server/src/services/resourcePermission/index.test.ts+++ b/apps/server/src/services/resourcePermission/index.test.ts@@ -266,7 +266,7 @@ describe('canPerformResourceAction', () => {]);});- // LOBE-12374: workspace-level builtin agents (Lobe AI inbox, the builders) are+ // workspace-level builtin agents (Lobe AI inbox, the builders) are// created lazily by whoever opens the workspace first, so their `user_id` is an// accident of timing and they never get a `resource_permissions` row. Members// must still be able to configure them.@@ -507,7 +507,7 @@ describe('canPerformResourceAction', () => {});// Linking the real inbox into an agent group is supported, so a linked builtin- // must keep the bypass β excluding group members would reproduce LOBE-12374 for+ // must keep the bypass β excluding group members would reproduce for// that workspace.it('keeps the bypass for a builtin that is linked into an agent group', async () => {permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });diff --git a/apps/server/src/services/resourcePermission/index.ts b/apps/server/src/services/resourcePermission/index.tsindex 6f49acae5a0..01ac612c701 100644--- a/apps/server/src/services/resourcePermission/index.ts+++ b/apps/server/src/services/resourcePermission/index.ts@@ -164,7 +164,7 @@ const COLLABORATIVE_BUILTIN_AGENT_SLUGS: ReadonlySet<string> = new Set<string>([* `resource_permissions` row is ever written for them (their effective General* access falls back to the `use` default). Treating them as creator-owned locks* every other member out of the Agent Builder, of Lobe AI's config page, and of- * the Page Copilot's own settings (LOBE-12374), so they are governed by workspace+ * the Page Copilot's own settings, so they are governed by workspace* capability instead: anyone holding `agent:update:{owner,all}` may* read/use/configure them, while destructive and ownership actions (delete /* transfer / visibility) stay with the creator and the workspace primary owner.@@ -181,7 +181,7 @@ const COLLABORATIVE_BUILTIN_AGENT_SLUGS: ReadonlySet<string> = new Set<string>([* change and is tracked separately. Group membership is NOT usable as the* discriminator: linking the real inbox into an agent group is supported, so* excluding linked rows would deny configuration on a legitimately provisioned- * builtin and reproduce LOBE-12374.+ * builtin and reproduce.*/export const isCollaborativeBuiltinAgent = (resourceType: PermissionResourceType,diff --git a/apps/server/src/services/taskLifecycle/index.ts b/apps/server/src/services/taskLifecycle/index.tsindex 17753b8ff59..858ecc56eb4 100644--- a/apps/server/src/services/taskLifecycle/index.ts+++ b/apps/server/src/services/taskLifecycle/index.ts@@ -91,7 +91,7 @@ export interface TopicCompleteParams {operationId: string;reason: string; // 'done' | 'error' | 'interrupted' | ...// What triggered the run. Manual "run now" failures are ad-hoc and must not- // change an automation task's scheduling state (LOBE-11388). Undefined is+ // change an automation task's scheduling state. Undefined is// treated as 'manual' for backward compatibility with older callers.runTrigger?: TaskRunTrigger;taskId: string;@@ -247,7 +247,7 @@ export class TaskLifecycleService {// 'scheduled' state and clears the live error column. Before clearing// it, stamp a durable recovery marker + reset the failure fuse so the// recovery is auditable and a later query can still tell the task once- // failed β the live `error` alone would silently self-heal (LOBE-11390).+ // failed β the live `error` alone would silently self-heal.await this.recordAutomationRecovery(currentTask);await this.taskModel.updateStatus(taskId, 'scheduled', { error: null });} else if (!verifyBound && this.taskModel.shouldPauseOnTopicComplete(currentTask)) {@@ -332,7 +332,7 @@ export class TaskLifecycleService {await this.recordAutomationError(currentTask, errorText, runTrigger);await this.taskModel.updateStatus(taskId, 'paused', { error: errorText });} else if (!isAutomationTick) {- // LOBE-11388: a manual "run now" of an automation task failed. This is+ // a manual "run now" of an automation task failed. This is// an ad-hoc debug/backfill run β its failure is NOT a health signal for// the automation. Restore the resting 'scheduled' state (the run had// flipped it to 'running') so the next scheduled tick still fires, and@@ -341,7 +341,7 @@ export class TaskLifecycleService {await this.recordAutomationError(currentTask, errorText, runTrigger);await this.taskModel.updateStatus(taskId, 'scheduled', { error: errorText });} else if (currentTask.automationMode === 'schedule') {- // LOBE-11389: a scheduled tick failed. A single transient error must not+ // a scheduled tick failed. A single transient error must not// permanently pause a recurring task. Count consecutive failures and// only pause once the fuse blows; otherwise keep the task 'scheduled' so// the next tick retries. (Heartbeat tasks are handled by@@ -454,7 +454,7 @@ export class TaskLifecycleService {const runCount = await this.taskTopicModel.countByTask(task.id, {since: new Date(startedAtIso),// Only scheduled ticks consume the quota β manual "run now" invocations- // are ad-hoc and must not push the task toward its cap (LOBE-11391).+ // are ad-hoc and must not push the task toward its cap.triggers: ['schedule'],});return runCount >= maxExecutions;@@ -464,7 +464,7 @@ export class TaskLifecycleService {* Append a failure to the durable lifecycle audit trail* (`context.lifecycle`). Unlike the live `tasks.error` column β cleared by* the next successful run β this history survives a later success so a missed- * fire / prior pause stays diagnosable after the fact (LOBE-11390).+ * fire / prior pause stays diagnosable after the fact.** When `extra.pauseReason` is set, also stamps `lastPausedAt`/`lastPauseReason`* (the failure fuse just auto-paused the task). When `extra.consecutiveFailures`diff --git a/apps/server/src/services/taskLifecycle/onTopicComplete.test.ts b/apps/server/src/services/taskLifecycle/onTopicComplete.test.tsindex 95f4a5ba314..af06e8a8469 100644--- a/apps/server/src/services/taskLifecycle/onTopicComplete.test.ts+++ b/apps/server/src/services/taskLifecycle/onTopicComplete.test.ts@@ -363,7 +363,7 @@ describe('TaskLifecycleService.onTopicComplete', () => {expect(updateStatus).toHaveBeenCalledWith('task-1', 'paused', { error: 'boom' });});- it('LOBE-11388: manual run of a schedule task fails β restored to scheduled, NOT paused', async () => {+ it('manual run of a schedule task fails β restored to scheduled, NOT paused', async () => {const task = baseTask({ automationMode: 'schedule', status: 'running' });findById.mockResolvedValue(task);@@ -388,7 +388,7 @@ describe('TaskLifecycleService.onTopicComplete', () => {);});- it('LOBE-11388: undefined runTrigger defaults to manual (backward compat)', async () => {+ it('undefined runTrigger defaults to manual (backward compat)', async () => {const task = baseTask({ automationMode: 'schedule' });findById.mockResolvedValue(task);@@ -405,7 +405,7 @@ describe('TaskLifecycleService.onTopicComplete', () => {expect(updateStatus).toHaveBeenCalledWith('task-1', 'scheduled', { error: 'boom' });});- it('LOBE-11389: scheduled run fails below fuse β stays scheduled + increments failures', async () => {+ it('scheduled run fails below fuse β stays scheduled + increments failures', async () => {const task = baseTask({automationMode: 'schedule',context: { scheduler: { consecutiveFailures: 1 } } as any,@@ -431,7 +431,7 @@ describe('TaskLifecycleService.onTopicComplete', () => {);});- it('LOBE-11389: scheduled run fails AT fuse β pauses for human attention', async () => {+ it('scheduled run fails AT fuse β pauses for human attention', async () => {const task = baseTask({automationMode: 'schedule',context: { scheduler: { consecutiveFailures: 2 } } as any,@@ -450,7 +450,7 @@ describe('TaskLifecycleService.onTopicComplete', () => {// 2 prior + this one = 3 = fuse β pause.expect(updateStatus).toHaveBeenCalledWith('task-1', 'paused', { error: 'boom' });- // Audit trail records the pause reason durably (LOBE-11390).+ // Audit trail records the pause reason durably.expect(updateContext).toHaveBeenCalledWith('task-1',expect.objectContaining({@@ -460,7 +460,7 @@ describe('TaskLifecycleService.onTopicComplete', () => {);});- it('LOBE-11390: every error appends to the durable lifecycle audit trail', async () => {+ it('every error appends to the durable lifecycle audit trail', async () => {const task = baseTask({automationMode: 'schedule',context: { lifecycle: { errorCount: 4 } } as any,@@ -583,7 +583,7 @@ describe('TaskLifecycleService.onTopicComplete', () => {});});- describe('reason=done recovery audit (LOBE-11390)', () => {+ describe('reason=done recovery audit ', () => {it('successful automation tick after an error stamps lastRecoveredAt + resets fuse', async () => {const task = baseTask({automationMode: 'schedule',diff --git a/apps/server/src/services/taskRunner/index.ts b/apps/server/src/services/taskRunner/index.tsindex 6c2a574afa9..967e5a18328 100644--- a/apps/server/src/services/taskRunner/index.ts+++ b/apps/server/src/services/taskRunner/index.ts@@ -26,7 +26,7 @@ export interface RunTaskParams {* What triggered this run. Defaults to `'manual'` β the ad-hoc "run now"* path (TRPC `task.run`, agent `runTask` tool). The scheduler ticks pass* `'schedule'` / `'heartbeat'` so the lifecycle can tell an ad-hoc run apart- * from an automation tick (LOBE-11388/11391).+ * from an automation tick ().*/trigger?: TaskRunTrigger;}@@ -262,7 +262,7 @@ export class TaskRunnerService {// scheduling state is not a per-run health signal. Restore the// resting 'scheduled' state so the next tick still fires (this is// the sync mirror of the async onTopicComplete error handling β- // LOBE-11388/11389). Non-automation (ad-hoc / dependency) tasks keep+ //). Non-automation (ad-hoc / dependency) tasks keep// the legacy pause-for-attention behavior.if (failedTask.automationMode) {await this.taskModel.updateStatus(failedTask.id, 'scheduled', { error: errorText });diff --git a/apps/server/src/services/taskRunner/scheduleTick.test.ts b/apps/server/src/services/taskRunner/scheduleTick.test.tsindex 2cca560f0b9..e439fd57bcd 100644--- a/apps/server/src/services/taskRunner/scheduleTick.test.ts+++ b/apps/server/src/services/taskRunner/scheduleTick.test.ts@@ -126,7 +126,7 @@ describe('runScheduleTick', () => {const outcome = await runScheduleTick(taskId, userId);expect(outcome).toEqual({ ran: true, taskIdentifier: 'T-1' });- // Quota counts only scheduled ticks, not ad-hoc manual runs (LOBE-11391).+ // Quota counts only scheduled ticks, not ad-hoc manual runs.expect(mockTaskTopicModel.countByTask).toHaveBeenCalledWith(taskId, {since: new Date('2026-05-01T00:00:00Z'),triggers: ['schedule'],diff --git a/apps/server/src/services/taskRunner/scheduleTick.ts b/apps/server/src/services/taskRunner/scheduleTick.tsindex 288536e4cd5..68e305fd5ad 100644--- a/apps/server/src/services/taskRunner/scheduleTick.ts+++ b/apps/server/src/services/taskRunner/scheduleTick.ts@@ -101,7 +101,7 @@ export async function runScheduleTick(const startedAt = new Date(startedAtIso);const topicModel = new TaskTopicModel(db, userId, wsId);// Only automation ticks count against the quota β ad-hoc manual runs must- // not consume scheduled executions (LOBE-11391).+ // not consume scheduled executions.const runCount = await topicModel.countByTask(taskId, {since: startedAt,triggers: ['schedule'],diff --git a/apps/server/src/services/toolExecution/builtin.ts b/apps/server/src/services/toolExecution/builtin.tsindex c5edd42d144..16f9e8e8ed5 100644--- a/apps/server/src/services/toolExecution/builtin.ts+++ b/apps/server/src/services/toolExecution/builtin.ts@@ -140,7 +140,7 @@ export class BuiltinToolsExecutor implements IToolExecutor {// Route Composio tools to ComposioService. Build it request-scoped: agentId// and workspaceId live on the per-call context (not known at construction),- // so a workspace run resolves workspace connectors (LOBE-10891) and a+ // so a workspace run resolves workspace connectors and a// service-account agent runs off its own Composio account// (Agent > Workspace/Personal).if (source === 'composio') {diff --git a/apps/server/src/services/toolExecution/serverRuntimes/__tests__/localSystem.test.ts b/apps/server/src/services/toolExecution/serverRuntimes/__tests__/localSystem.test.tsindex d9d3ba882a4..93649474d71 100644--- a/apps/server/src/services/toolExecution/serverRuntimes/__tests__/localSystem.test.ts+++ b/apps/server/src/services/toolExecution/serverRuntimes/__tests__/localSystem.test.ts@@ -144,7 +144,7 @@ describe('localSystemRuntime', () => {});it('addresses a personal-scope active device via the personal pool even in a workspace run', async () => {- // Workspace agent + per-user `local` override (LOBE-11689): the routed+ // Workspace agent + per-user `local` override: the routed// device only has a connection under the personal principal, so the// workspace id must NOT be forwarded to the gateway call.const context: ToolExecutionContext = {diff --git a/apps/server/src/services/toolExecution/serverRuntimes/creds.ts b/apps/server/src/services/toolExecution/serverRuntimes/creds.tsindex a1319367cde..8ccc37cda3f 100644--- a/apps/server/src/services/toolExecution/serverRuntimes/creds.ts+++ b/apps/server/src/services/toolExecution/serverRuntimes/creds.ts@@ -24,7 +24,7 @@ class ServerCredsService implements ICredsService {/*** Inside a workspace, reads/writes must hit the workspace's shared organization- * credentials, never the operator's personal creds (LOBE-10978). Falls back to+ * credentials, never the operator's personal creds. Falls back to* the personal `market.creds` namespace outside a workspace.*/private credsAccessor() {diff --git a/apps/server/src/services/toolExecution/serverRuntimes/resolveWorkspaceScope.ts b/apps/server/src/services/toolExecution/serverRuntimes/resolveWorkspaceScope.tsindex 1350cc2b8c8..ef1056b75b5 100644--- a/apps/server/src/services/toolExecution/serverRuntimes/resolveWorkspaceScope.ts+++ b/apps/server/src/services/toolExecution/serverRuntimes/resolveWorkspaceScope.ts@@ -27,7 +27,7 @@ type DeviceScopeContext = Pick<** EXCEPTION: a run whose active device is PERSONAL-scope (a workspace agent* routed to the caller's own machine via the per-user `local` override,- * LOBE-11689) must be addressed through the personal `(userId, deviceId)`+ *) must be addressed through the personal `(userId, deviceId)`* pool β that device has no connection under the `workspace:<id>` principal,* so a workspace-addressed call would simply miss it.*/diff --git a/apps/server/src/workflows-hono/task/handlers/__tests__/scheduledTopicDispatch.test.ts b/apps/server/src/workflows-hono/task/handlers/__tests__/scheduledTopicDispatch.test.tsindex 009e13e5435..5f5ba021201 100644--- a/apps/server/src/workflows-hono/task/handlers/__tests__/scheduledTopicDispatch.test.ts+++ b/apps/server/src/workflows-hono/task/handlers/__tests__/scheduledTopicDispatch.test.ts@@ -118,7 +118,7 @@ describe('scheduledTopicDispatch', () => {expect(mocks.execAgent.mock.calls[0][0]).not.toHaveProperty('resume', true);// `suppressUserMessage` writes no user row, so the assistant turn anchors on// `parentMessageId` alone β without it the reply persists as a second root and- // renders above the prompt it answers (LOBE-11489).+ // renders above the prompt it answers.expect(mocks.execAgent.mock.calls[0][0]).toMatchObject({ parentMessageId: 'user-scheduled' });// Success hands the run to execAgent, so the topic leaves `scheduled`.expect(mocks.clearScheduledRun).toHaveBeenCalledWith(diff --git a/apps/server/src/workflows-hono/task/handlers/scheduledRunKinds.ts b/apps/server/src/workflows-hono/task/handlers/scheduledRunKinds.tsindex afe3ffb28ee..daec0945aaf 100644--- a/apps/server/src/workflows-hono/task/handlers/scheduledRunKinds.ts+++ b/apps/server/src/workflows-hono/task/handlers/scheduledRunKinds.ts@@ -114,7 +114,7 @@ const runDelayedStart: ScheduledRunHandlers['delayed_start'] = async (// `suppressUserMessage` creates no user row, so the assistant turn anchors on// `parentMessageId` alone. Leave it out and the reply persists as a SECOND// root: the renderer walks the parentId forest depth-first, so it would land- // above the very prompt it answers (LOBE-11489).+ // above the very prompt it answers.parentMessageId: userMessage.id,prompt: userMessage.content ?? '',provider: run.provider,diff --git a/packages/agent-gateway-client/src/types.ts b/packages/agent-gateway-client/src/types.tsindex 1409264744b..13f5837b479 100644--- a/packages/agent-gateway-client/src/types.ts+++ b/packages/agent-gateway-client/src/types.ts@@ -117,7 +117,7 @@ export interface ToolStateChunkData {* uiMessages snapshot is resolved BEFORE this row is created, so the snapshot* never contains it β without a local insert, every stream_chunk/stream_end* dispatch for the step targets a missing id and is silently dropped- * (LOBE-11501). Older servers send only `{ id }`; clients fall back to a DB+ *. Older servers send only `{ id}`; clients fall back to a DB* refetch in that case.*/export interface StreamStartAssistantMessage {diff --git a/packages/const/src/rbac.ts b/packages/const/src/rbac.tsindex 941da7e3817..7f7b0a9625e 100644--- a/packages/const/src/rbac.ts+++ b/packages/const/src/rbac.ts@@ -305,7 +305,7 @@ const action = (key: keyof typeof PERMISSION_ACTIONS): string => PERMISSION_ACTI/*** Permission codes granted to each built-in workspace role. The lists are the* runtime source of truth: workspace requests expand the member's- * `workspace_members.role` through this matrix (LOBE-12329) β no+ * `workspace_members.role` through this matrix β no* per-workspace role/permission rows are stored in the RBAC tables.** Scope semantics:@@ -571,7 +571,7 @@ export const legacyRoleToWorkspaceRole = (role: string): WorkspaceSystemRoleName* the in-code matrix. This is the runtime permission source for workspace* requests β `workspace_members.role` is the single source of truth for* built-in roles and no per-workspace role/permission rows are stored in the- * RBAC tables (LOBE-12329). Unknown roles expand to an empty set.+ * RBAC tables. Unknown roles expand to an empty set.*/export const getWorkspaceRolePermissionCodes = (role: string): readonly string[] => {const systemRole = legacyRoleToWorkspaceRole(role);diff --git a/packages/database/src/models/__tests__/agent.test.ts b/packages/database/src/models/__tests__/agent.test.tsindex 6e6d4e92ad6..f67b2841a45 100644--- a/packages/database/src/models/__tests__/agent.test.ts+++ b/packages/database/src/models/__tests__/agent.test.ts@@ -1361,7 +1361,7 @@ describe('AgentModel', () => {expect(personalAgent.agencyConfig).toBeNull();});- // LOBE-12374: builtin slugs decide both `getBuiltinAgent` resolution and, for+ // builtin slugs decide both `getBuiltinAgent` resolution and, for// the collaborative ones, workspace-level permissions β a caller-supplied slug// must never be able to claim one (group member batch-create, imports, market// installs all pass `slug` through).diff --git a/packages/database/src/models/__tests__/chatGroup.test.ts b/packages/database/src/models/__tests__/chatGroup.test.tsindex 2c157f270cc..43defe3e1ca 100644--- a/packages/database/src/models/__tests__/chatGroup.test.ts+++ b/packages/database/src/models/__tests__/chatGroup.test.ts@@ -1336,7 +1336,7 @@ describe('ChatGroupModel', () => {});});- describe('member agent demoted to private (LOBE-11772)', () => {+ describe('member agent demoted to private ', () => {// Public workspace group owned by `userId` with two members: a public agent// and an agent `userId` switched back to private after it joined. Viewer is// `otherUserId` (same workspace) β every roster read must drop the privatediff --git a/packages/database/src/models/__tests__/connectorAgentScope.test.ts b/packages/database/src/models/__tests__/connectorAgentScope.test.tsindex ce9a53fff63..03e80533a37 100644--- a/packages/database/src/models/__tests__/connectorAgentScope.test.ts+++ b/packages/database/src/models/__tests__/connectorAgentScope.test.ts@@ -352,9 +352,9 @@ describe('ConnectorModel agent-scoped resolution', () => {// target connector via `findById` before attaching it, and rely on its scoped// `ownership()` filter to reject cross-scope rows β that is what enforces// "workspace agent β workspace-only tools, personal agent β personal-only"-// (LOBE-11681). These lock that filter so a future refactor can't silently let+//. These lock that filter so a future refactor can't silently let// a personal connector be bound to a workspace agent (or vice versa).-describe('ConnectorModel scope isolation (workspace vs personal) β LOBE-11681', () => {+describe('ConnectorModel scope isolation (workspace vs personal)', () => {it('a workspace-scoped model cannot findById a personal connector', async () => {const personal = await insertConnector({identifier: 'gmail',@@ -393,10 +393,10 @@ describe('ConnectorModel scope isolation (workspace vs personal) β LOBE-11681'});});-// `queryAllAgentScoped` powers the unified connector-settings page (LOBE-11682):+// `queryAllAgentScoped` powers the unified connector-settings page:// it lists every agent-OWNED connector across all agents in one scope, and must-// stay scope-correct (no personalβworkspace leak β the LOBE-11681 invariant).-describe('ConnectorModel.queryAllAgentScoped β LOBE-11682', () => {+// stay scope-correct (no personalβworkspace leak β the invariant).+describe('ConnectorModel.queryAllAgentScoped', () => {it('returns agent-owned rows across all agents and excludes base rows', async () => {const ownedA = await insertConnector({ agentId: agentA, identifier: 'gmail', name: 'A' });const ownedB = await insertConnector({ agentId: agentB, identifier: 'slack', name: 'B' });diff --git a/packages/database/src/models/__tests__/jsonbNullTest.test.ts b/packages/database/src/models/__tests__/jsonbNullTest.test.tsindex 90f06cb6c13..4917bd7e578 100644--- a/packages/database/src/models/__tests__/jsonbNullTest.test.ts+++ b/packages/database/src/models/__tests__/jsonbNullTest.test.ts@@ -21,7 +21,7 @@ import { describe, expect, it } from 'vitest';* (metadata ->> 'x') IS NOT NULL β COALESCE(metadata ->> 'x', '') <> ''* (metadata ->> 'x') IS DISTINCT FROM 'y' β COALESCE(metadata ->> 'x', '') <> 'y'*- * Prior casualties: `getLatestSpineMessageId` (LOBE-11376, #16693),+ * Prior casualties: `getLatestSpineMessageId` (#16693),* `getDueScheduledTopics` (#17077).*/const FORBIDDEN = /(?:->>?|#>>?)[^\n]*?\b(?:IS\s+(?:NOT\s+)?NULL|IS\s+DISTINCT\s+FROM)\b/i;diff --git a/packages/database/src/models/__tests__/messages/message.query.test.ts b/packages/database/src/models/__tests__/messages/message.query.test.tsindex 18f525dbd69..50de99f906c 100644--- a/packages/database/src/models/__tests__/messages/message.query.test.ts+++ b/packages/database/src/models/__tests__/messages/message.query.test.ts@@ -439,7 +439,7 @@ describe('MessageModel Query Tests', () => {expect(result3).toHaveLength(0);});- describe('newest-first pagination (LOBE-12011)', () => {+ describe('newest-first pagination ', () => {// A topic whose mainline exceeds pageSize must keep its LATEST turns// (including the final answer) rather than the oldest, and the returned// slice must be a single contiguous parentId chain so the renderer β which@@ -1233,7 +1233,7 @@ describe('MessageModel Query Tests', () => {current: 0,pageSize: 2,});- // Page 0 returns the NEWEST page (LOBE-12011), re-sorted ascending: the+ // Page 0 returns the NEWEST page, re-sorted ascending: the// two most recent messages, not the two oldest.expect(result1).toHaveLength(2);expect(result1[0].id).toBe('msg-page-2');@@ -3299,7 +3299,7 @@ describe('MessageModel Query Tests', () => {// Fallback anchor used when `getLatestSpineMessageId` comes back empty. Without// it a new user turn is persisted as a second root and the renderer emits the- // newest reply above older messages (LOBE-11489).+ // newest reply above older messages.describe('getLatestNonToolMessageId', () => {it('returns a toolless signal turn that the spine query skips', async () => {await serverDB.insert(sessions).values([{ id: 'session1', userId }]);diff --git a/packages/database/src/models/__tests__/task.test.ts b/packages/database/src/models/__tests__/task.test.tsindex 6b74bd7ae9e..0225c370253 100644--- a/packages/database/src/models/__tests__/task.test.ts+++ b/packages/database/src/models/__tests__/task.test.ts@@ -245,7 +245,7 @@ describe('TaskModel', () => {// Non-tool deletion (UI / CLI) must leave the Work artifact orphaned so the// UI can render it as "resource deleted" from its snapshot. Tool-driven- // deletion removes the Work separately at the dispatch layer (LOBE-11606).+ // deletion removes the Work separately at the dispatch layer.it('should NOT delete the task Work artifact', async () => {const model = new TaskModel(serverDB, userId);const workModel = new WorkModel(serverDB, userId);diff --git a/packages/database/src/models/__tests__/taskTopic.test.ts b/packages/database/src/models/__tests__/taskTopic.test.tsindex 163bfe0c62e..a96a3b4c673 100644--- a/packages/database/src/models/__tests__/taskTopic.test.ts+++ b/packages/database/src/models/__tests__/taskTopic.test.ts@@ -274,7 +274,7 @@ describe('TaskTopicModel', () => {});it('only counts the requested triggers, excluding manual + legacy-null rows', async () => {- // LOBE-11391: the maxExecutions quota must count scheduled ticks only β+ // the maxExecutions quota must count scheduled ticks only β// manual "run now" invocations and legacy rows (null trigger) don't count.const taskModel = new TaskModel(serverDB, userId);const topicModel = new TaskTopicModel(serverDB, userId);diff --git a/packages/database/src/models/__tests__/topics/topic.query.test.ts b/packages/database/src/models/__tests__/topics/topic.query.test.tsindex 4246aad6162..0dfbdb844e5 100644--- a/packages/database/src/models/__tests__/topics/topic.query.test.ts+++ b/packages/database/src/models/__tests__/topics/topic.query.test.ts@@ -213,7 +213,7 @@ describe('TopicModel - Query', () => {// The client sorts the sidebar by `sortUpdatedAt`, so it must carry the same// activity time the server ORDER BY uses (topicActivityAt) β otherwise the two// sorts disagree and the list jumps. `updatedAt` stays the raw row value so- // rename/favorite edits still show a real edit time. (LOBE-11543)+ // rename/favorite edits still show a real edit time.await serverDB.insert(topics).values([{ id: 'has-msg', sessionId, updatedAt: new Date('2023-01-01'), userId },{ id: 'no-msg', sessionId, updatedAt: new Date('2023-03-01'), userId },diff --git a/packages/database/src/models/agent.ts b/packages/database/src/models/agent.tsindex 7261d4be1b2..0d9ab6a9dc9 100644--- a/packages/database/src/models/agent.ts+++ b/packages/database/src/models/agent.ts@@ -1010,7 +1010,7 @@ export class AgentModel {* `visibility = 'private'` guards lock the operation to the creator's own* still-private agent. The inverse transition (public β private) goes* through {@link setVisibility}, which the router gates to the creator or- * a workspace owner (LOBE-11551).+ * a workspace owner.** Use the existing `update` to change other fields; visibility is the only* one with these authorization rules.@@ -1078,7 +1078,7 @@ export class AgentModel {};/**- * Bidirectional visibility switch (LOBE-11551). Authorization (creator OR+ * Bidirectional visibility switch. Authorization (creator OR* workspace owner, builtin agents excluded) is the router's responsibility β* this method only applies the ownership-scoped write.*diff --git a/packages/database/src/models/chatGroup.ts b/packages/database/src/models/chatGroup.tsindex 00e8d2dbd49..f4fe6e6c90e 100644--- a/packages/database/src/models/chatGroup.ts+++ b/packages/database/src/models/chatGroup.ts@@ -38,7 +38,7 @@ export class ChatGroupModel {* (the junction row) does not grant access to the agent: when a member agent* is switched back to private by its owner, every roster read must drop it* for other members β otherwise the join would keep leaking the agent's- * config/meta through group surfaces (LOBE-11772).+ * config/meta through group surfaces.*/private memberAgentVisibility = () =>buildWorkspaceWhere(diff --git a/packages/database/src/models/connector.ts b/packages/database/src/models/connector.tsindex 33920f6b622..aaa26a2f80d 100644--- a/packages/database/src/models/connector.ts+++ b/packages/database/src/models/connector.ts@@ -220,14 +220,14 @@ export class ConnectorModel {/*** All agent-OWNED connector rows (`agent_id IS NOT NULL`) within the current* scope β i.e. every connector that belongs to some agent, across all agents.- * Powers the unified connector-settings view (LOBE-11682) which lists "which+ * Powers the unified connector-settings view which lists "which* connector is bound to which agent" in one place, instead of one agent at a* time via {@link queryByAgent}.** Scope-correct by construction: {@link ownership} carries the `workspace_id`* predicate, so in a workspace context this only returns rows owned by that* workspace's agents and never leaks personal-dimension rows (and vice versa)- * β the LOBE-11681 invariant applied to the aggregate view. Mounted/linked+ * β the invariant applied to the aggregate view. Mounted/linked* base rows (`agent_id IS NULL`) are intentionally excluded; they already show* under the base {@link query} list.*/diff --git a/packages/database/src/models/message.ts b/packages/database/src/models/message.tsindex 2ea60cbfae2..3afc6b01bea 100644--- a/packages/database/src/models/message.ts+++ b/packages/database/src/models/message.ts@@ -692,7 +692,7 @@ export class MessageModel {// `asc + limit` truncated exactly the newest batch, which is the worst// possible slice for a chat transcript. The page is reversed back to// ascending immediately below, so every downstream consumer is- // unaffected; only *which* rows are fetched changed. See LOBE-12011.+ // unaffected; only *which* rows are fetched changed. See..orderBy(desc(messages.createdAt), desc(messages.id)).limit(pageSize).offset(offset),@@ -715,7 +715,7 @@ export class MessageModel {//// Scope: this only serves the single "most recent page" load (`current === 0`),// which is the only page the chat read path ever requests β `current`/`pageSize`- // offset paging is dead code here (the very premise of LOBE-12011). The trim is+ // offset paging is dead code here (the very premise of). The trim is// deliberately NOT offset-exact: the rows it drops from page 0 also fall outside// page 1's `offset = pageSize` window, so a hypothetical offset walk would skip// them. That is acceptable because nothing offset-walks this path; loading older@@ -3080,7 +3080,7 @@ export class MessageModel {* persist the new turn with `parentId: undefined` β a second root that forks* the conversation tree. The renderer walks that forest depth-first, so an* earlier root's long-running subtree gets emitted before a later root and the- * newest reply surfaces ABOVE older messages (LOBE-11489).+ * newest reply surfaces ABOVE older messages.** `role:'tool'` stays excluded: tool results are inline children of their* assistant turn, and anchoring a normal turn onto one orphans it under thediff --git a/packages/database/src/models/rbac.ts b/packages/database/src/models/rbac.tsindex 6e5fdfc543e..981190a6ab0 100644--- a/packages/database/src/models/rbac.ts+++ b/packages/database/src/models/rbac.ts@@ -21,7 +21,7 @@ export interface UserPermissionInfo {* member's `workspace_members.role` expanded through the in-code* `WORKSPACE_ROLE_PERMISSIONS` matrix, plus globally-granted DB roles* (`rbac_user_roles.workspace_id IS NULL`, e.g. `super_admin`). No- * per-workspace authorization rows are read (LOBE-12329).+ * per-workspace authorization rows are read.* - `workspaceId` omitted β match **any** DB grant, regardless of workspace.* This preserves backward-compat with pre-workspace-scope callers (Hono* routes that just check `agent:read:all` against the whole user, withdiff --git a/packages/database/src/models/task.ts b/packages/database/src/models/task.tsindex 04f63080821..477acaa9c10 100644--- a/packages/database/src/models/task.ts+++ b/packages/database/src/models/task.ts@@ -252,7 +252,7 @@ export class TaskModel {* lifecycle is driven by the deleteTask tool call at the tool-execution* dispatch layer (which calls `WorkModel.deleteTaskWork`), so non-tool deletes* (UI / CLI / deleteAll) deliberately leave the Work as an orphan for the UI- * to render as "resource deleted" from its version snapshot. See LOBE-11606.+ * to render as "resource deleted" from its version snapshot. See.*/async delete(id: string): Promise<boolean> {const deleted = await this.db@@ -265,7 +265,7 @@ export class TaskModel {/*** Move a task and its full subtree to a new visibility (both directions β- * LOBE-11551 added the `public β private` demotion; the router gates who+ * added the `public β private` demotion; the router gates who* may call it).** Cascades inside a single transaction:diff --git a/packages/database/src/models/taskTopic.ts b/packages/database/src/models/taskTopic.tsindex 7585a24608e..adcae1d5b74 100644--- a/packages/database/src/models/taskTopic.ts+++ b/packages/database/src/models/taskTopic.ts@@ -221,7 +221,7 @@ export class TaskTopicModel {* source.** `triggers` filters on the `trigger` column so the maxExecutions quota can- * count only automation ticks and ignore ad-hoc manual runs (LOBE-11391).+ * count only automation ticks and ignore ad-hoc manual runs.* Legacy rows have a NULL trigger; they are excluded whenever `triggers` is* passed (they predate the column and can't be attributed to a schedule).*/diff --git a/packages/database/src/models/topic.ts b/packages/database/src/models/topic.tsindex c58aa73a332..ade3d1b1007 100644--- a/packages/database/src/models/topic.ts+++ b/packages/database/src/models/topic.ts@@ -222,7 +222,7 @@ const buildTopicOrderBy = (topicActivityAt: SQL, sortBy?: TopicQuerySortBy): SQL* COALESCE(metadata ->> 'status', '') <> 'done' -- IS DISTINCT FROM* ```*- * This has now bitten twice: `getLatestSpineMessageId` (LOBE-11376, #16693) and+ * This has now bitten twice: `getLatestSpineMessageId` (#16693) and* `getDueScheduledTopics` (#17077 β the scheduled-run cron crashed on every tick* from the day it shipped, so rate-limit continuations never once resumed).*/@@ -384,7 +384,7 @@ export class TopicModel {// display `updatedAt` above matches the client-side sort key to the server// order (otherwise the two disagree and the list visibly jumps) while a// rename/favorite edit still shows its real edit time. See rankTopics for- // the same activity-time pattern. (LOBE-11543)+ // the same activity-time pattern.sortUpdatedAt: topicActivityAt,// Workspace sidebars filter maintenance actions client-side by// ownership (own vs workspace scope) β the filter needs the row@@ -460,7 +460,7 @@ export class TopicModel {// display `updatedAt` above matches the client-side sort key to the server// order (otherwise the two disagree and the list visibly jumps) while a// rename/favorite edit still shows its real edit time. See rankTopics for- // the same activity-time pattern. (LOBE-11543)+ // the same activity-time pattern.sortUpdatedAt: topicActivityAt,// Workspace sidebars filter maintenance actions client-side by// ownership (own vs workspace scope) β the filter needs the row@@ -532,7 +532,7 @@ export class TopicModel {// display `updatedAt` above matches the client-side sort key to the server// order (otherwise the two disagree and the list visibly jumps) while a// rename/favorite edit still shows its real edit time. See rankTopics for- // the same activity-time pattern. (LOBE-11543)+ // the same activity-time pattern.sortUpdatedAt: topicActivityAt,// Workspace sidebars filter maintenance actions client-side by// ownership (own vs workspace scope) β the filter needs the rowdiff --git a/packages/database/src/models/work/__tests__/task.test.ts b/packages/database/src/models/work/__tests__/task.test.tsindex b46842c50c5..d5f7c72bf2d 100644--- a/packages/database/src/models/work/__tests__/task.test.ts+++ b/packages/database/src/models/work/__tests__/task.test.ts@@ -707,7 +707,7 @@ describe('WorkModel Β· task', () => {});// Tool-driven deletion: the task row is removed first, then the dispatch- // layer drops the Work by its internal id (LOBE-11606).+ // layer drops the Work by its internal id.await taskModel.delete(task.id);await workModel.deleteTaskWork({ taskId: task.id });diff --git a/packages/database/src/models/work/githubToolResult.ts b/packages/database/src/models/work/githubToolResult.tsindex 361c8705e4f..7aa05588025 100644--- a/packages/database/src/models/work/githubToolResult.ts+++ b/packages/database/src/models/work/githubToolResult.ts@@ -22,7 +22,7 @@ import {type GithubWorkEntityType = 'issue' | 'pull_request';/**- * Only successful create/edit results become Works (LOBE-10967): read-only+ * Only successful create/edit results become Works: read-only* queries (get/list/search), comments, and branch/repo operations are* intentionally excluded, mirroring the Linear adaptation.*diff --git a/packages/database/src/models/workspace.ts b/packages/database/src/models/workspace.tsindex 4233ebd6ed5..7ec9a38ea65 100644--- a/packages/database/src/models/workspace.ts+++ b/packages/database/src/models/workspace.ts@@ -34,7 +34,7 @@ const getActiveMembershipRole = async (/*** Whether `userId` currently holds owner status in `workspaceId`.* `workspace_members.role` is the single source of truth for built-in roles- * (LOBE-12329). Used by the workspace-API-key owner gates on both the OpenAPI+ *. Used by the workspace-API-key owner gates on both the OpenAPI* and lambda TRPC surfaces.*/export const hasWorkspaceOwnerAccess = async (@@ -84,7 +84,7 @@ export class WorkspaceModel {.returning();// `workspace_members.role` is the single source of truth for built-in- // workspace roles (LOBE-12329) β no RBAC rows are seeded per workspace.+ // workspace roles β no RBAC rows are seeded per workspace.await tx.insert(workspaceMembers).values({role: 'owner',userId: this.userId,diff --git a/packages/database/src/repositories/agentGroup/index.test.ts b/packages/database/src/repositories/agentGroup/index.test.tsindex b6f1eeded05..de4c009dc67 100644--- a/packages/database/src/repositories/agentGroup/index.test.ts+++ b/packages/database/src/repositories/agentGroup/index.test.ts@@ -360,7 +360,7 @@ describe('AgentGroupRepository', () => {]);});- describe('member agent demoted to private (LOBE-11772)', () => {+ describe('member agent demoted to private ', () => {const workspaceId = 'agent-group-demotion-ws';beforeEach(async () => {diff --git a/packages/database/src/repositories/agentGroup/index.ts b/packages/database/src/repositories/agentGroup/index.tsindex 5f63e828a51..2f33c694c59 100644--- a/packages/database/src/repositories/agentGroup/index.ts+++ b/packages/database/src/repositories/agentGroup/index.ts@@ -332,7 +332,7 @@ export class AgentGroupRepository {// flag: supervisor existence must be judged on the raw rows β otherwise a// viewer who can't see the supervisor would auto-create a duplicate one// below β while a member agent switched back to private must not leak its- // config to other members (LOBE-11772), so only visible rows are returned.+ // config to other members, so only visible rows are returned.const groupAgentsWithDetails = await this.db.select({agent: agents,diff --git a/packages/database/src/repositories/home/__tests__/workspaceHeteroVisibility.test.ts b/packages/database/src/repositories/home/__tests__/workspaceHeteroVisibility.test.tsindex 08d1d3c7055..4f74935f0d7 100644--- a/packages/database/src/repositories/home/__tests__/workspaceHeteroVisibility.test.ts+++ b/packages/database/src/repositories/home/__tests__/workspaceHeteroVisibility.test.ts@@ -1,4 +1,4 @@-// Regression for LOBE-11758: a workspace heterogeneous agent flipped back to+// Regression for a workspace heterogeneous agent flipped back to// `private` must stay visible to its creator (Private bucket) and invisible// to other members across the whole sidebar payload.import { afterEach, beforeEach, describe, expect, it } from 'vitest';@@ -31,7 +31,7 @@ afterEach(async () => {await clientDB.delete(Schema.workspaces);});-describe('workspace hetero agent visibility flip (LOBE-11758)', () => {+describe('workspace hetero agent visibility flip ', () => {it('hetero agent stays visible to creator after public -> private', async () => {const agentModel = new AgentModel(clientDB, creator, ws);diff --git a/packages/database/src/schemas/task.ts b/packages/database/src/schemas/task.tsindex 2cbe47cc9ba..6eef28bfcc7 100644--- a/packages/database/src/schemas/task.ts+++ b/packages/database/src/schemas/task.ts@@ -238,7 +238,7 @@ export const taskTopics = pgTable(// What triggered this run: 'manual' (ad-hoc run-now / agent tool call),// 'schedule' (cron tick) or 'heartbeat' (interval tick). Null for legacy// rows created before this column existed. Used so the maxExecutions quota- // counts only automation ticks, not manual runs (LOBE-11391).+ // counts only automation ticks, not manual runs.trigger: text('trigger').$type<'manual' | 'schedule' | 'heartbeat'>(),// Handoff (populated after topic completes via LLM summarization)diff --git a/packages/openapi/src/middleware/workspace.test.ts b/packages/openapi/src/middleware/workspace.test.tsindex 7e905dca4de..d3ca6c63685 100644--- a/packages/openapi/src/middleware/workspace.test.ts+++ b/packages/openapi/src/middleware/workspace.test.ts@@ -246,7 +246,7 @@ describe('OpenAPI workspace middleware', () => {});it('gates on membership.role alone β stale RBAC rows have no effect', async () => {- // membership.role is the single source of truth (LOBE-12329): an Admin+ // membership.role is the single source of truth: an Admin// membership passes regardless of whatever legacy rbac_user_roles claim.mockWorkspaceMembersFindFirst.mockResolvedValueOnce({ role: 'admin' });const app = createApp({ apiKeyWorkspaceId: 'workspace-1', authType: 'apikey' });diff --git a/packages/openapi/src/middleware/workspace.ts b/packages/openapi/src/middleware/workspace.tsindex 91e39b0a7e6..198bb0979fc 100644--- a/packages/openapi/src/middleware/workspace.ts+++ b/packages/openapi/src/middleware/workspace.ts@@ -83,7 +83,7 @@ export const workspaceAuthMiddleware = async (c: Context, next: Next) => {if (c.get('authType') === 'apikey') {// `workspace_members.role` is the single source of truth for built-in- // workspace roles (LOBE-12329).+ // workspace roles.const isWorkspaceAdmin = membership.role === 'owner' || membership.role === 'admin';if (!isWorkspaceAdmin) {diff --git a/packages/types/src/topic/topic.ts b/packages/types/src/topic/topic.tsindex dd79a9d5e55..e92b45255e3 100644--- a/packages/types/src/topic/topic.ts+++ b/packages/types/src/topic/topic.ts@@ -498,7 +498,7 @@ export interface ChatTopic extends Omit<BaseDataModel, 'meta'> {* (server `topicActivityAt`), falling back to `updatedAt`. Kept separate from* `updatedAt` so the client sort matches the server ORDER BY (no list jumping)* while `updatedAt` still reflects real row edits like rename/favorite.- * (LOBE-11543)+ **/sortUpdatedAt?: number;status?: ChatTopicStatus | null;diff --git a/packages/utils/src/client/topic.test.ts b/packages/utils/src/client/topic.test.tsindex 08544015979..03f6efc9b97 100644--- a/packages/utils/src/client/topic.test.ts+++ b/packages/utils/src/client/topic.test.ts@@ -226,7 +226,7 @@ describe('groupTopicsByUpdatedTime', () => {const today = dayjs().valueOf();// Row was edited last year (updatedAt) but had message activity today- // (sortUpdatedAt) β the sidebar must group it under "today". (LOBE-11543)+ // (sortUpdatedAt) β the sidebar must group it under "today".const topic: ChatTopic = {id: 'active',title: 'Recently active',diff --git a/packages/utils/src/client/topic.ts b/packages/utils/src/client/topic.tsindex 61446fa152f..9182df4520c 100644--- a/packages/utils/src/client/topic.ts+++ b/packages/utils/src/client/topic.ts@@ -75,7 +75,7 @@ const sortGroups = (groups: GroupedTopic[]): GroupedTopic[] => {* Resolve the timestamp a topic sorts/groups by for the given field. For* `updatedAt` this is the server-provided `sortUpdatedAt` (latest message* activity), falling back to the raw `updatedAt` when absent β so the sidebar- * order matches the server ORDER BY and doesn't jump. (LOBE-11543)+ * order matches the server ORDER BY and doesn't jump.*/export const getTopicSortTime = (topic: ChatTopic, field: 'createdAt' | 'updatedAt'): number =>field === 'updatedAt' ? (topic.sortUpdatedAt ?? topic.updatedAt) : topic.createdAt;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.test.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.test.tsxindex c9bc402a9ab..e48b351b43c 100644--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.test.tsx+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.test.tsx@@ -161,7 +161,7 @@ describe('TaskDetailHeaderActions', () => {expect(mocks.dropdownItems.map((item) => item?.key)).toContain('makePrivate');});- it('hides "make private" from a workspace owner who is not the creator (LOBE-11760)', () => {+ it('hides "make private" from a workspace owner who is not the creator ', () => {mocks.isWorkspaceOwner = true;mocks.taskState.taskDetailMap = {'T-1': { createdByUserId: 'someone-else', visibility: 'public' },diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsxindex de2e057b60a..7fb152456b2 100644--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx@@ -150,8 +150,8 @@ const TaskDetailHeaderActions = memo(() => {}: null;- // Inverse transition (LOBE-11551): only the task creator can pull a- // published task back to private (LOBE-11760 β an owner demoting another+ // Inverse transition: only the task creator can pull a+ // published task back to private ( β an owner demoting another// member's task would appropriate it into the creator's private list);// everyone else doesn't see the entry at all (the server enforces the// same rule as a backstop).diff --git a/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsxindex b4a4067b162..6482e1fcd4f 100644--- a/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx+++ b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx@@ -324,7 +324,7 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {const agentWorkspaceId = useAgentStore((s) => s.agentMap[agentId]?.workspaceId);const isWorkspaceAgent = Boolean(agentWorkspaceId);- // Shared config merged with the caller's per-agent override (LOBE-11689) β+ // Shared config merged with the caller's per-agent override β// the hook eagerly fetches the `workspaceUserSettings` bucket on mount so// what the picker shows and what dispatch will actually do always agree.const {@@ -349,7 +349,7 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {// Workspace-keyed SWR fetch β the raw lambdaQuery key has no workspace// dimension, so the picker kept showing the previous workspace's pool after- // a switch (LOBE-11904).+ // a switch.const { data: devices, isLoading } = useDeviceList();// The current machine's own gateway deviceId (desktop only), used to badge the@@ -403,7 +403,7 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {// Auto-default to THIS desktop's local execution on first open, for both// personal and workspace agents (workspace behaviour used to be a hostname- // lookup against the workspace device pool β see LOBE-11647 β but with+ // lookup against the workspace device pool β see β but with// per-user overrides that lookup is unnecessary: `useSelectExecutionTarget`// resolves `'local'` to this desktop's personal gateway `deviceId` and, for// a workspace agent, persists it into `users.preference.agentDeviceOverrides`,@@ -456,7 +456,7 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {// (per-user `sha256(machineUUID + userId)` vs// `sha256(machineUUID + workspace:<id>)`), so binding one to a workspace// agent conflates identities. The `local` chip already covers "run on my- // machine" as a per-user override (LOBE-11689) without needing to expose+ // machine" as a per-user override without needing to expose// the raw personal deviceId.//// Naming β Personal is reserved for the account-tier concept; workspace@@ -595,7 +595,7 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {/>)}{/* `local` pins this desktop's personal `deviceId`. Available in both- personal and workspace modes now (LOBE-11689): a workspace-agent+ personal and workspace modes now : a workspace-agent`local` pick lands in `users.preference.agentDeviceOverrides` β myper-user override β so it never binds the workspace-shared`agencyConfig` or coerces any other member's dispatch. */}diff --git a/src/features/ChatInput/ControlBar/WorkingDirectoryPicker.tsx b/src/features/ChatInput/ControlBar/WorkingDirectoryPicker.tsxindex f73955ac9b8..85eb30ad416 100644--- a/src/features/ChatInput/ControlBar/WorkingDirectoryPicker.tsx+++ b/src/features/ChatInput/ControlBar/WorkingDirectoryPicker.tsx@@ -295,7 +295,7 @@ const WorkingDirectoryPicker = memo<WorkingDirectoryPickerProps>(({ agentId }) =// One-time fold of legacy localStorage recents into device.workingDirs.useMigrateDeviceRecents();- // Effective config (shared row + this member's device override, LOBE-11689)+ // Effective config (shared row + this member's device override)// so recents / default cwd / the selected-repo label all resolve against the// device THIS member's run actually targets.const { agencyConfig, workspaceScoped } = useEffectiveAgencyConfig(agentId);diff --git a/src/features/ChatInput/ControlBar/WorkingDirectorySection.tsx b/src/features/ChatInput/ControlBar/WorkingDirectorySection.tsxindex 19ab3b006af..8f1864da0c6 100644--- a/src/features/ChatInput/ControlBar/WorkingDirectorySection.tsx+++ b/src/features/ChatInput/ControlBar/WorkingDirectorySection.tsx@@ -35,7 +35,7 @@ const getEntryEffectivePath = (entry: WorkingDirEntry) => {* (read-only) via GitStatus's `deviceId`.*/const WorkingDirectorySectionInner = memo<WorkingDirectorySectionProps>(({ agentId }) => {- // Effective config (shared row + this member's device override, LOBE-11689)+ // Effective config (shared row + this member's device override)// so GitStatus probes the same device `useEffectiveWorkingDirectory` resolved// the cwd from β raw shared config could point them at different machines.const { agencyConfig, workspaceScoped } = useEffectiveAgencyConfig(agentId);diff --git a/src/features/ChatInput/ControlBar/WorkspaceControls.tsx b/src/features/ChatInput/ControlBar/WorkspaceControls.tsxindex fa2c1354e9a..61df12e7ecb 100644--- a/src/features/ChatInput/ControlBar/WorkspaceControls.tsx+++ b/src/features/ChatInput/ControlBar/WorkspaceControls.tsx@@ -42,7 +42,7 @@ const WorkspaceControls = memo<WorkspaceControlsProps>(const { canConfigureResource, canUseResource } = useChatInputResourceAccess();const runtimeMode = useAgentStore(chatConfigByIdSelectors.getRuntimeModeById(agentId));const isHeterogeneous = useAgentStore(agentByIdSelectors.isAgentHeterogeneousById(agentId));- // Effective config = shared row + this member's device override (LOBE-11689),+ // Effective config = shared row + this member's device override,// so `isDeviceMode` routes the working-directory section by the device THIS// member's run actually targets.const { agencyConfig, workspaceScoped } = useEffectiveAgencyConfig(agentId);diff --git a/src/features/ChatInput/ControlBar/useCommitWorkingDirectory.ts b/src/features/ChatInput/ControlBar/useCommitWorkingDirectory.tsindex 00ee919564d..258c7f0a2d4 100644--- a/src/features/ChatInput/ControlBar/useCommitWorkingDirectory.ts+++ b/src/features/ChatInput/ControlBar/useCommitWorkingDirectory.ts@@ -77,7 +77,7 @@ export const useCommitWorkingDirectory = (agentId: string) => {// device override (spreading the merged config would leak the override's// executionTarget/boundDeviceId into the workspace-shared row).const agencyConfig = useAgentStore(agentByIdSelectors.getAgencyConfigById(agentId));- // The EFFECTIVE config (override merged, LOBE-11689) β only for resolving+ // The EFFECTIVE config (override merged) β only for resolving// which device the cwd write should target, keeping it on the same machine// the picker/GitStatus/`useEffectiveWorkingDirectory` operate on.const { agencyConfig: effectiveAgencyConfig, workspaceScoped } =@@ -106,7 +106,7 @@ export const useCommitWorkingDirectory = (agentId: string) => {});// A workspace agent resolving to THIS member's personal machine (a `local`- // override, LOBE-11689) must not persist its cwd into the workspace-shared+ // override) must not persist its cwd into the workspace-shared// `agents.agencyConfig.workingDirByDevice` β that would leak the member's// personal device id and an absolute local path to every other member. Route// those writes to the per-user legacy slot instead (a `local` pick onlydiff --git a/src/features/ChatInput/hooks/useSelectExecutionTarget.test.ts b/src/features/ChatInput/hooks/useSelectExecutionTarget.test.tsindex 332f6f530a7..6e83ea14ba3 100644--- a/src/features/ChatInput/hooks/useSelectExecutionTarget.test.ts+++ b/src/features/ChatInput/hooks/useSelectExecutionTarget.test.ts@@ -191,7 +191,7 @@ describe('useSelectExecutionTarget', () => {});});- describe('workspace agent β writes to workspace_user_settings.preference.agentDeviceOverrides (LOBE-11689)', () => {+ describe('workspace agent β writes to workspace_user_settings.preference.agentDeviceOverrides ', () => {beforeEach(() => {testState.access.canManageAgent = false;testState.agent.agentMap = {diff --git a/src/features/ChatInput/hooks/useSelectExecutionTarget.ts b/src/features/ChatInput/hooks/useSelectExecutionTarget.tsindex 509c6a2c5d3..1208b158b0a 100644--- a/src/features/ChatInput/hooks/useSelectExecutionTarget.ts+++ b/src/features/ChatInput/hooks/useSelectExecutionTarget.ts@@ -28,7 +28,7 @@ export interface SelectExecutionTargetOptions {* `executionTarget` is the single source of truth β the server tool gate +* client `getRuntimeModeById` derive `runtimeMode` from it.*- * Storage split (LOBE-11689):+ * Storage split:* - **Personal agent** β writes go straight into the shared* `agents.agencyConfig` (there's only ever one owner, so there's nothing to* isolate).diff --git a/src/features/Connectors/ConnectorDetail/index.tsx b/src/features/Connectors/ConnectorDetail/index.tsxindex 2e90f4799fb..e3fe33eb516 100644--- a/src/features/Connectors/ConnectorDetail/index.tsx+++ b/src/features/Connectors/ConnectorDetail/index.tsx@@ -21,7 +21,7 @@ interface ConnectorDetailProps {/*** Title of the owning agent when this is an agent-dimension connector. Drives* the delete/uninstall confirmation copy β deleting an agent connector also- * removes its tool from that agent (LOBE-11682).+ * removes its tool from that agent.*/agentTitle?: string | null;connectorId: string;@@ -29,7 +29,7 @@ interface ConnectorDetailProps {/*** Extra content rendered between the description and the tool-permission list.* Used by the unified settings' agent connectors to show the owning agent +- * a jump-to-use action (LOBE-11682).+ * a jump-to-use action.*/middleSlot?: ReactNode;onDelete?: () => void;diff --git a/src/features/CreatePlatformAgent/index.tsx b/src/features/CreatePlatformAgent/index.tsxindex a0cd7126935..5c83e89a68c 100644--- a/src/features/CreatePlatformAgent/index.tsx+++ b/src/features/CreatePlatformAgent/index.tsx@@ -142,7 +142,7 @@ const CreatePlatformAgentContent = memo<CreatePlatformAgentContentProps>(// Workspace-keyed SWR fetch (see useDeviceList) β the raw lambdaQuery key// has no workspace dimension, so the wizard listed the previous- // workspace's pool after a switch (LOBE-11904).+ // workspace's pool after a switch.const {data: devices,isLoading: loadingDevices,diff --git a/src/features/DeviceManager/DeviceDetailPanel.tsx b/src/features/DeviceManager/DeviceDetailPanel.tsxindex 2666e9ffd78..84c8b38564d 100644--- a/src/features/DeviceManager/DeviceDetailPanel.tsx+++ b/src/features/DeviceManager/DeviceDetailPanel.tsx@@ -189,7 +189,7 @@ const DeviceDetailPanel = memo<DeviceDetailPanelProps>(({ device, isCurrent, onC});};- // Revoke one workspace share of a personal device (LOBE-11699). The share+ // Revoke one workspace share of a personal device. The share// entry's `deviceId` is the workspace-scoped twin, removed via the// workspace-scoped mutation under an explicitly pinned workspace client β// the personal settings page has no active workspace context to inherit.diff --git a/src/features/DeviceManager/DeviceItem.tsx b/src/features/DeviceManager/DeviceItem.tsxindex 546f1d9b76b..c28f3ec65ee 100644--- a/src/features/DeviceManager/DeviceItem.tsx+++ b/src/features/DeviceManager/DeviceItem.tsx@@ -163,7 +163,7 @@ const DeviceItem = memo<DeviceItemProps>(({ device, isCurrent, onSelect, selecte}): t('devices.lastSeen', { time: dayjs(device.lastSeen).fromNow() });- // Publish / make-private for workspace enrollments (LOBE-11690). Reuses the+ // Publish / make-private for workspace enrollments. Reuses the// shared visibility-confirm body so the consequences copy matches agents /// files. Success feedback is the row itself moving to the other tab after// the list refresh.@@ -194,7 +194,7 @@ const DeviceItem = memo<DeviceItemProps>(({ device, isCurrent, onSelect, selecte// Only persisted workspace rows carry a visibility to toggle β ghosts// (unregistered) and personal devices don't. The toggle is enroller-only- // (LOBE-11760): an owner demoting another member's public device would+ //: an owner demoting another member's public device would// move it into that member's private list, appropriating their data. The// server rejects non-enroller writes as the backstop.const isEnroller = !!currentUserId && device.enroller?.userId === currentUserId;@@ -219,7 +219,7 @@ const DeviceItem = memo<DeviceItemProps>(({ device, isCurrent, onSelect, selecte]: [];- // Share-to-workspace entry for personal enrollments (LOBE-11699). The share+ // Share-to-workspace entry for personal enrollments. The share// handshake needs a live connection to mint the workspace identity, so the// item stays disabled (with an explanatory desc) while the device is offline.const shareItems =diff --git a/src/features/DeviceManager/useDeviceList.ts b/src/features/DeviceManager/useDeviceList.tsindex 2b78f677184..40c4074a46a 100644--- a/src/features/DeviceManager/useDeviceList.ts+++ b/src/features/DeviceManager/useDeviceList.ts@@ -15,7 +15,7 @@ import { DEVICE_LIST_SWR_KEY } from './const';* resolves devices: `useClientDataSWR` augments the cache key with the active* workspace id, so switching workspaces re-fetches into a fresh cache entry.* The raw TRPC React Query key has no workspace dimension β a list primed in- * one workspace kept serving a stale pool after switching (LOBE-11904), and a+ * one workspace kept serving a stale pool after switching, and a* fetch primed while the workspace was still resolving stuck for the whole* session (the DeviceManager fix this generalizes).*diff --git a/src/features/ResourcePermission/ResourceConfigAccessGate.test.tsx b/src/features/ResourcePermission/ResourceConfigAccessGate.test.tsxindex e8f6063e80e..0b6aedc4a23 100644--- a/src/features/ResourcePermission/ResourceConfigAccessGate.test.tsx+++ b/src/features/ResourcePermission/ResourceConfigAccessGate.test.tsx@@ -60,7 +60,7 @@ describe('ResourceConfigAccessGate', () => {expect(mocks.toastInfo).toHaveBeenCalledWith('permission.configAccess.agentChatOnly');});- // LOBE-12374: "only collaborators with Can edit" read as an authorship denial to+ // "only collaborators with Can edit" read as an authorship denial to// users who had authored the resource; the two denial reasons are now distinct.it('names the workspace role as the reason when the role cannot configure Agents', async () => {mocks.canEditContent = false;diff --git a/src/features/ResourcePermission/ResourceConfigAccessGate.tsx b/src/features/ResourcePermission/ResourceConfigAccessGate.tsxindex 25c1377a263..75dda45ed96 100644--- a/src/features/ResourcePermission/ResourceConfigAccessGate.tsx+++ b/src/features/ResourcePermission/ResourceConfigAccessGate.tsx@@ -37,7 +37,7 @@ const ResourceConfigAccessGate = memo<ResourceConfigAccessGateProps>(// Name the actual reason: a workspace role that cannot configure Agents at// all reads very differently from holding use-only access on this one// resource, and conflating them made authors think their own Agent had- // rejected them (LOBE-12374).+ // rejected them.const isRoleRestricted = !canEditContent;const messageKey =resourceType === 'agent'diff --git a/src/features/WorkspaceSetting/hooks/useCategory.tsx b/src/features/WorkspaceSetting/hooks/useCategory.tsxindex dcd384cb8cc..5aee9468c0c 100644--- a/src/features/WorkspaceSetting/hooks/useCategory.tsx+++ b/src/features/WorkspaceSetting/hooks/useCategory.tsx@@ -119,7 +119,7 @@ export const useWorkspaceSettingCategory = (): WorkspaceSettingCategoryGroup[] ={items: [// AI provider config (keys/endpoints) is shared workspace infra β- // Admin-or-higher, hidden from members entirely (LOBE-11834).+ // Admin-or-higher, hidden from members entirely.canManageWorkspace && {icon: Brain,key: WorkspaceSettingsTabs.Provider,diff --git a/src/helpers/executionTarget.test.ts b/src/helpers/executionTarget.test.tsindex a052f0b31bf..0d828c29ad3 100644--- a/src/helpers/executionTarget.test.ts+++ b/src/helpers/executionTarget.test.ts@@ -66,7 +66,7 @@ describe('resolveExecutionTarget', () => {});it('routes a bound desktop-local selection to the bound device on web when device routing is available (plain and hetero)', () => {- // LOBE-11473: a `local` pick pins this desktop's own deviceId as+ // a `local` pick pins this desktop's own deviceId as// `boundDeviceId`; on web that config still runs on the bound device// server-side, so surface it honestly as `device` instead of masquerading// as `sandbox`. Hetero agents always route here; plain agents need a@@ -86,7 +86,7 @@ describe('resolveExecutionTarget', () => {).toBe('device');});- it('keeps a bound `local` as `sandbox` when no device routing is available (LOBE-11473 regression)', () => {+ it('keeps a bound `local` as `sandbox` when no device routing is available ( regression)', () => {// A plain agent with a bound `local` target but no device-gateway to route// it (self-host without DEVICE_GATEWAY_URL, or any server call that leaves// `deviceRoutingAvailable` unset) must fall back to the cloud sandbox β it@@ -356,7 +356,7 @@ describe('resolveRuntimeMode', () => {const boundLocal = cfg({ boundDeviceId: 'device-a', executionTarget: 'local' });// with a device-gateway β device β runtimeMode none (routed via the plan)expect(resolveRuntimeMode(boundLocal, false, true)).toBe('none');- // without one β sandbox β cloud (LOBE-11473 regression guard)+ // without one β sandbox β cloud ( regression guard)expect(resolveRuntimeMode(boundLocal, false)).toBe('cloud');});});@@ -426,7 +426,7 @@ describe('resolveExecutionPlan', () => {).toEqual({ kind: 'sandbox', target: 'sandbox' });});- it('keeps a bound `local` as sandbox on a no-gateway backend (LOBE-11473 regression)', () => {+ it('keeps a bound `local` as sandbox on a no-gateway backend ( regression)', () => {// No device-gateway: `clientExecutionAvailable` is false and the plan// never passes `deviceRoutingAvailable`, so a bound `local` target must// resolve to the sandbox β not `device`/`device-unrouted`, which woulddiff --git a/src/helpers/executionTarget.ts b/src/helpers/executionTarget.tsindex 2f6b43831eb..ec744b25bc6 100644--- a/src/helpers/executionTarget.ts+++ b/src/helpers/executionTarget.ts@@ -67,7 +67,7 @@ export interface ResolveExecutionTargetOptions {* stay `sandbox`. So server callers leave it `undefined` (false) and the* branch is a no-op there β only web display sites pass* `!!serverConfig.agentGatewayUrl` to keep the honest device display- * (LOBE-11473). `isHetero` also satisfies the gate: a hetero agent's bound+ *. `isHetero` also satisfies the gate: a hetero agent's bound* `local` was always surfaced as `device` on web regardless of gateway state.*/deviceRoutingAvailable?: boolean;@@ -138,7 +138,7 @@ export const isHeterogeneousSandboxExecutionAvailable = (type: string | undefine* server routes such a config to that bound device β so on web we resolve it* to `device`, surfacing honestly that it runs on the user's machine (via* `lh connect`) instead of masquerading as `sandbox`. This applies to plain- * agents too, not just heterogeneous CLI agents (LOBE-11473: plain agents used+ * agents too, not just heterogeneous CLI agents (plain agents used* to leak here, showing "cloud sandbox" while the server ran on the device).** This upgrade is gated on `deviceRoutingAvailable` (or `isHetero`): the rundiff --git a/src/helpers/gatewayMode.test.ts b/src/helpers/gatewayMode.test.tsindex 3ecb4e1afb1..a97f327a432 100644--- a/src/helpers/gatewayMode.test.ts+++ b/src/helpers/gatewayMode.test.ts@@ -56,7 +56,7 @@ describe('resolveGatewayModeEnabled', () => {});describe('useIsGatewayModeEnabled', () => {- it('re-computes when the agent toggles disableGatewayMode (reactivity, LOBE-11473)', () => {+ it('re-computes when the agent toggles disableGatewayMode (reactivity)', () => {mockServerConfig({ agentGatewayUrl: 'wss://gw', enableGatewayMode: true });useAgentStore.setState(stateWith(false));diff --git a/src/helpers/gatewayMode.ts b/src/helpers/gatewayMode.tsindex 91558c77508..75295fd2f6b 100644--- a/src/helpers/gatewayMode.ts+++ b/src/helpers/gatewayMode.ts@@ -15,7 +15,7 @@ import { settingsSelectors } from '@/store/user/selectors';* default agent config) must not opt out via `disableGatewayMode`. When any of* these is false, sends fall back to the non-gateway client path, so a bound* `local` target cannot actually reach the device β the display must keep it as- * `sandbox` rather than surfacing `device` (LOBE-11473 follow-up).+ * `sandbox` rather than surfacing `device` ( follow-up).** This intentionally mirrors dispatch's own gate,* `GatewayActionImpl.isGatewayModeEnabled` in the gateway transport@@ -78,7 +78,7 @@ export const resolveGatewayModeEnabled = (* resource/skill panels). Subscribes to the live-mutable `disableGatewayMode`* (agent chatConfig + user default) so toggling Gateway Mode from the chat* ActionBar re-renders the display and it stops surfacing a `device` target- * once sends have fallen back to sandbox (LOBE-11473 follow-up). `serverConfig`+ * once sends have fallen back to sandbox ( follow-up). `serverConfig`* stays a non-reactive read β see `resolveGatewayModeEnabled`'s note.*/export const useIsGatewayModeEnabled = (agentId?: string): boolean => {diff --git a/src/hooks/useEffectiveAgencyConfig.ts b/src/hooks/useEffectiveAgencyConfig.tsindex 4cddd7d1221..5e2c7255e81 100644--- a/src/hooks/useEffectiveAgencyConfig.ts+++ b/src/hooks/useEffectiveAgencyConfig.ts@@ -35,7 +35,7 @@ export interface UseEffectiveAgencyConfigResult {** The workspace-shared `agents.agencyConfig` is one row per agent, but each* member picks their own execution device after the Agent is public- * (LOBE-11689) β that pick lives in+ * β that pick lives in* `workspace_user_settings.preference.agentDeviceOverrides[agentId]` and must* be merged over the shared row via `resolveAgentAgencyConfig` at read time.* Reading the shared row alone shows whichever device landed there (usuallydiff --git a/src/hooks/useEffectiveWorkingDirectory.ts b/src/hooks/useEffectiveWorkingDirectory.tsindex fee8fad41e5..d8c3af31b45 100644--- a/src/hooks/useEffectiveWorkingDirectory.ts+++ b/src/hooks/useEffectiveWorkingDirectory.ts@@ -32,7 +32,7 @@ export const useEffectiveWorkingDirectory = (agentId?: string): string | undefinconst isLogin = useUserStore(authSelectors.isLogin);useDeviceStore((s) => s.useFetchDevices)(isLogin || isDesktop);- // Effective config = shared row + this member's device override (LOBE-11689),+ // Effective config = shared row + this member's device override,// so `resolveTargetDeviceId` targets the device THIS member's run goes to β// not whichever machine landed on the workspace-shared row.const { agencyConfig, workspaceScoped } = useEffectiveAgencyConfig(agentId);diff --git a/src/hooks/useRemoteAgentDeviceGuard.test.ts b/src/hooks/useRemoteAgentDeviceGuard.test.tsindex 503bf66f190..63d9698df32 100644--- a/src/hooks/useRemoteAgentDeviceGuard.test.ts+++ b/src/hooks/useRemoteAgentDeviceGuard.test.ts@@ -22,7 +22,7 @@ describe('useRemoteAgentDeviceGuard', () => {it('checks the EFFECTIVE bound device (with the caller override merged)', async () => {// The workspace-shared row points at the creator's (offline) machine; the// caller's override picks their own online device β the guard must probe- // the override device, not the shared one (LOBE-11904).+ // the override device, not the shared one.mockedUseEffectiveAgencyConfig.mockReturnValue({agencyConfig: {boundDeviceId: 'my-device',diff --git a/src/hooks/useRemoteAgentDeviceGuard.ts b/src/hooks/useRemoteAgentDeviceGuard.tsindex e07d9189415..d08dc82ac1b 100644--- a/src/hooks/useRemoteAgentDeviceGuard.ts+++ b/src/hooks/useRemoteAgentDeviceGuard.ts@@ -28,7 +28,7 @@ export const useRemoteAgentDeviceGuard = ({enabled = true,}: UseRemoteAgentDeviceGuardOptions): UseRemoteAgentDeviceGuardResult => {// Effective config = shared row + this member's per-agent device override- // (LOBE-11689). Checking the raw shared `boundDeviceId` would probe whichever+ //. Checking the raw shared `boundDeviceId` would probe whichever// machine landed on the shared row (usually the creator's, often offline)// instead of the device THIS member picked β a false "device offline".const { agencyConfig, isPreferenceLoading } = useEffectiveAgencyConfig(agentId);diff --git a/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx b/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsxindex 3a6ae8ea775..7d41393c3ee 100644--- a/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx+++ b/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx@@ -10,7 +10,7 @@ import { useTranslation } from 'react-i18next';import { DeviceConnectModal, DeviceManager, useDeviceList } from '@/features/DeviceManager';/**- * Workspace device settings: two pools behind tabs (LOBE-11690) β+ * Workspace device settings: two pools behind tabs β* - Workspace: the shared (public-visibility) pool every member sees.* - Private: the caller's own private enrollments in this workspace.* The tab also parameterises the connect wizard, so a device enrolled from thediff --git a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/HeteroControlBar.tsx b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/HeteroControlBar.tsxindex a807df1596f..da9dae03cd2 100644--- a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/HeteroControlBar.tsx+++ b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/HeteroControlBar.tsx@@ -131,7 +131,7 @@ const HeteroControlBar = memo(() => {// All hooks must be called unconditionally (Rules of Hooks)const isLoading = useAgentStore(agentByIdSelectors.isAgentConfigLoadingById(agentId));- // Effective config = shared row + this member's device override (LOBE-11689),+ // Effective config = shared row + this member's device override,// so the quota badges gate on where THIS member's run actually executes.const { agencyConfig, workspaceScoped } = useEffectiveAgencyConfig(agentId);diff --git a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/index.tsx b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/index.tsxindex 247cd2fdbb8..4052df0b56f 100644--- a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/index.tsx+++ b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/index.tsx@@ -93,7 +93,7 @@ const HeterogeneousChatInput = memo(() => {const navigate = useWorkspaceAwareNavigate();// Effective config = shared row + this member's per-agent device override- // (LOBE-11689) β the raw shared `agencyConfig` may carry another member's+ // β the raw shared `agencyConfig` may carry another member's// device pick, which would drive the guard/model-selector gates off the// wrong machine.// While the preference is loading, the merged config may still reflect onlydiff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/RemoteAgentConfigCard.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/RemoteAgentConfigCard.tsxindex 73df321384a..48f8bf66dfc 100644--- a/src/routes/(main)/agent/profile/features/ProfileEditor/RemoteAgentConfigCard.tsx+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/RemoteAgentConfigCard.tsx@@ -111,7 +111,7 @@ const ChangeDeviceContent = memo<ChangeDeviceContentProps>(// Workspace-keyed SWR fetch (see useDeviceList) β the raw lambdaQuery key// has no workspace dimension, so the list went stale across workspace- // switches (LOBE-11904).+ // switches.const { data: devices, isLoading: loadingDevices } = useDeviceList();const onlineDevices = (devices ?? []).filter(diff --git a/src/routes/(main)/home/_layout/Body/Agent/List/AgentItem/useDropdownMenu.tsx b/src/routes/(main)/home/_layout/Body/Agent/List/AgentItem/useDropdownMenu.tsxindex 00157b151c2..e8b41f7b1f9 100644--- a/src/routes/(main)/home/_layout/Body/Agent/List/AgentItem/useDropdownMenu.tsx+++ b/src/routes/(main)/home/_layout/Body/Agent/List/AgentItem/useDropdownMenu.tsx@@ -92,8 +92,8 @@ export const useAgentDropdownMenu = ({// Visibility actions are only meaningful inside a workspace: in personal// mode every row is implicitly owner-private. "Publish to Workspace"- // appears on private agents; the inverse "Make private" (LOBE-11551)- // appears on published agents, but only for the creator (LOBE-11760 β+ // appears on private agents; the inverse "Make private"+ // appears on published agents, but only for the creator ( β// owners demoting another member's agent would appropriate it), and never// on builtin agents (LobeAI etc.). The server enforces the same rules as// a backstop.@@ -137,7 +137,7 @@ export const useAgentDropdownMenu = ({// Visibility flips move the item across accordions. Reveal the destination// section afterwards β with a collapsed/hidden target (stale persisted// `sidebarExpandedKeys` predate newer sections) the item would silently- // vanish from the sidebar (LOBE-11758).+ // vanish from the sidebar.const revealSidebarSection = useRevealSidebarSection();return useMemo(diff --git a/src/routes/(main)/home/_layout/hooks/useRevealSidebarSection.test.ts b/src/routes/(main)/home/_layout/hooks/useRevealSidebarSection.test.tsindex 493522fad6b..d19d49aaece 100644--- a/src/routes/(main)/home/_layout/hooks/useRevealSidebarSection.test.ts+++ b/src/routes/(main)/home/_layout/hooks/useRevealSidebarSection.test.ts@@ -2,7 +2,7 @@ import { describe, expect, it } from 'vitest';import { buildRevealSidebarSectionPatch } from './useRevealSidebarSection';-describe('buildRevealSidebarSectionPatch (LOBE-11758)', () => {+describe('buildRevealSidebarSectionPatch ', () => {it('expands a collapsed section', () => {// Stale persisted keys from before the Private section shipped.expect(buildRevealSidebarSectionPatch('private', ['recents', 'agent'], [])).toEqual({diff --git a/src/routes/(main)/home/_layout/hooks/useRevealSidebarSection.ts b/src/routes/(main)/home/_layout/hooks/useRevealSidebarSection.tsindex 6923f73f7de..99726424ba3 100644--- a/src/routes/(main)/home/_layout/hooks/useRevealSidebarSection.ts+++ b/src/routes/(main)/home/_layout/hooks/useRevealSidebarSection.ts@@ -18,7 +18,7 @@ export type RevealableSidebarSection = 'agent' | 'private';* user-applied section hide. Returns `null` when the section is already* fully visible so callers can skip the store write.*- * Why this exists (LOBE-11758): `sidebarExpandedKeys` is persisted, so+ * Why this exists: `sidebarExpandedKeys` is persisted, so* accounts whose keys were saved before a section shipped (e.g. `private`,* added with workspace private agents) never include the new key β the* section stays collapsed forever. "Make private" then moves the agent intodiff --git a/src/routes/(main)/settings/skill/features/AgentConnectorItem.tsx b/src/routes/(main)/settings/skill/features/AgentConnectorItem.tsxindex 1bd967a6c80..7274c2522bc 100644--- a/src/routes/(main)/settings/skill/features/AgentConnectorItem.tsx+++ b/src/routes/(main)/settings/skill/features/AgentConnectorItem.tsx@@ -10,7 +10,7 @@ import NavItem from '@/features/NavPanel/components/NavItem';import type { AgentBoundConnector } from '@/store/tool/slices/connector/types';/**- * A row in the unified settings' "Agent Connectors" section (LOBE-11682).+ * A row in the unified settings' "Agent Connectors" section.** Rendered identically to the base connector rows (same NavItem + the same brand* icon a base Composio/LobeHub connector of this identifier would show), so thediff --git a/src/routes/(main)/settings/skill/features/AgentConnectorUsage.tsx b/src/routes/(main)/settings/skill/features/AgentConnectorUsage.tsxindex 0d7fb225e96..8e096644457 100644--- a/src/routes/(main)/settings/skill/features/AgentConnectorUsage.tsx+++ b/src/routes/(main)/settings/skill/features/AgentConnectorUsage.tsx@@ -9,7 +9,7 @@ import { useTranslation } from 'react-i18next';import { useNavigateToAgent } from '@/hooks/useNavigateToAgent';/**- * Shown inside ConnectorDetail for agent-owned connectors (LOBE-11682), between+ * Shown inside ConnectorDetail for agent-owned connectors, between* the description and the tool-permission list: which agent owns this connector,* plus a one-click jump to go use that agent.*/diff --git a/src/routes/(main)/settings/skill/features/SkillDetail/index.tsx b/src/routes/(main)/settings/skill/features/SkillDetail/index.tsxindex 4a85086aaeb..72c6236953a 100644--- a/src/routes/(main)/settings/skill/features/SkillDetail/index.tsx+++ b/src/routes/(main)/settings/skill/features/SkillDetail/index.tsx@@ -397,7 +397,7 @@ const SkillDetail = memo<SkillDetailProps>(({ identifier, type, onDelete }) => {);}- // Agent-owned connector (unified settings, LOBE-11682): the `identifier` slot+ // Agent-owned connector (unified settings): the `identifier` slot// carries the connector id (not the slug β agent connectors can share a slug// with a base connector). Reuse the same ConnectorDetail as base connectors so// tool-permission editing, sync and delete behave identically; it resolves thediff --git a/src/routes/(main)/settings/skill/features/SkillList.tsx b/src/routes/(main)/settings/skill/features/SkillList.tsxindex 2a450600782..66f37984867 100644--- a/src/routes/(main)/settings/skill/features/SkillList.tsx+++ b/src/routes/(main)/settings/skill/features/SkillList.tsx@@ -150,7 +150,7 @@ const SkillList = memo<SkillListProps>(}, [isConnectorsInit, fetchConnectors]);// Load agent-owned connectors (across all agents) for the Agent Connectors- // section β connector view only (LOBE-11682).+ // section β connector view only.const isConnectorView = viewMode === 'connector';useEffect(() => {if (isConnectorView && !isAgentBoundInit) fetchAgentBoundConnectors();diff --git a/src/services/agent.ts b/src/services/agent.tsindex 4c1cb2da212..d3a80d9faf7 100644--- a/src/services/agent.ts+++ b/src/services/agent.ts@@ -134,7 +134,7 @@ class AgentService {};/**- * Bidirectional visibility switch (LOBE-11551). The server only allows the+ * Bidirectional visibility switch. The server only allows the* agent's creator or a workspace owner to pull a published agent back to* private, and rejects builtin agents (LobeAI etc.) outright.*/diff --git a/src/store/agent/selectors/builtinAgentSelectors.test.ts b/src/store/agent/selectors/builtinAgentSelectors.test.tsindex 0ddd743b2a3..f79460ab76d 100644--- a/src/store/agent/selectors/builtinAgentSelectors.test.ts+++ b/src/store/agent/selectors/builtinAgentSelectors.test.ts@@ -170,7 +170,7 @@ describe('builtinAgentSelectors', () => {});});- // LOBE-12374: workspace members may now *configure* the collaborative builtin+ // workspace members may now *configure* the collaborative builtin// rows, so ownership affordances (delete / transfer) have to be suppressed for// them explicitly β the server still rejects those actions.describe('isBuiltinAgent', () => {diff --git a/src/store/agent/selectors/chatConfigByIdSelectors.ts b/src/store/agent/selectors/chatConfigByIdSelectors.tsindex 81e29a80060..476f9b59a66 100644--- a/src/store/agent/selectors/chatConfigByIdSelectors.ts+++ b/src/store/agent/selectors/chatConfigByIdSelectors.ts@@ -76,7 +76,7 @@ const getRuntimeModeById =// On web a bound `local` target only surfaces as `device` (not `sandbox`)// when Gateway mode is effectively enabled and can route to the device- // (LOBE-11473). Derive the gate from this selector's own state `s` so it+ //. Derive the gate from this selector's own state `s` so it// re-evaluates on `disableGatewayMode` changes without a second global read.// Workspace agents never execute on the current member's own client β// their default/stored `local` coerces away (see `workspaceScoped`).diff --git a/src/store/chat/slices/agentRun/actions/__tests__/gateway.test.ts b/src/store/chat/slices/agentRun/actions/__tests__/gateway.test.tsindex bef024725ad..7ecc82bd77c 100644--- a/src/store/chat/slices/agentRun/actions/__tests__/gateway.test.ts+++ b/src/store/chat/slices/agentRun/actions/__tests__/gateway.test.ts@@ -1117,7 +1117,7 @@ describe('GatewayActionImpl', () => {});});- // Regression (LOBE-12055): after an error run the gateway session completes+ // Regression: after an error run the gateway session completes// and clears the SERVER-side topic metadata, but the local Zustand store copy// of `runningOperation` stayed set β so useGatewayReconnect kept firing a// reconnect for a dead op and looped 404s. onSessionComplete must ALSO clear@@ -1682,7 +1682,7 @@ describe('GatewayActionImpl', () => {// Seeds a topic whose local metadata still carries a runningOperation, wires up// internal_dispatchTopic + connectToGateway capture, so we can assert the local- // store clear (LOBE-12055) on both the NOT_FOUND refresh path and onSessionComplete.+ // store clear on both the NOT_FOUND refresh path and onSessionComplete.function createSeededReconnectHarness() {const captured: { onSessionComplete?: (p: any) => void } = {};const connectToGateway = vi.fn((params: any) => {@@ -1740,7 +1740,7 @@ describe('GatewayActionImpl', () => {return { action, captured, connectToGateway, internalDispatchTopic };}- // Regression (LOBE-12055): a stale local runningOperation fires a reconnect,+ // Regression: a stale local runningOperation fires a reconnect,// but the server already cleared its marker and answers refreshGatewayToken// with TRPC NOT_FOUND. The reconnect must clear the local marker and bail// silently (no connect, no throw) so the SWR fetcher resolves instead ofdiff --git a/src/store/chat/slices/agentRun/actions/__tests__/gatewayEventHandler.test.ts b/src/store/chat/slices/agentRun/actions/__tests__/gatewayEventHandler.test.tsindex 07d1563744c..8764b9a45e7 100644--- a/src/store/chat/slices/agentRun/actions/__tests__/gatewayEventHandler.test.ts+++ b/src/store/chat/slices/agentRun/actions/__tests__/gatewayEventHandler.test.ts@@ -135,7 +135,7 @@ describe('createGatewayEventHandler', () => {// Native gateway ships the assistant seed on stream_start, so the client// inserts the message shell locally (createMessage) and must NOT trigger a// DB refetch β the refetch is what clobbered the streamed assistantGroup- // with a stale placeholder (LOBE-11501).+ // with a stale placeholder.expect(store.internal_dispatchMessage).toHaveBeenCalledWith(expect.objectContaining({ id: 'msg-step2', type: 'createMessage' }),{ operationId: 'op-1' },@@ -651,7 +651,7 @@ describe('createGatewayEventHandler', () => {it('marks visible loading done without completing the operation or clearing topic loading', async () => {const store = createMockStore();// The streamed content has landed in the store β the visible_output_end- // guard (LOBE-11501) only clears loading once the assistant row is present+ // guard only clears loading once the assistant row is present// with its content, so seed it here to represent that state.store.dbMessagesMap['main_agent-1_topic-1'] = [{ content: 'hello back', id: 'msg-initial', role: 'assistant' },diff --git a/src/store/chat/slices/agentRun/actions/entries/conversationLifecycle.ts b/src/store/chat/slices/agentRun/actions/entries/conversationLifecycle.tsindex e59880d635a..50976be96d3 100644--- a/src/store/chat/slices/agentRun/actions/entries/conversationLifecycle.ts+++ b/src/store/chat/slices/agentRun/actions/entries/conversationLifecycle.ts@@ -1305,7 +1305,7 @@ export class ConversationLifecycleActionImpl {// Optimistically bump the sort key (`sortUpdatedAt`, the sidebar's activity-time// sort/group key) so the topic jumps to the top immediately, before the SWR// refetch returns the server's fresh `topicActivityAt`. Bumping `updatedAt` here- // would no longer reorder anything β the sidebar sorts by `sortUpdatedAt`. (LOBE-11543)+ // would no longer reorder anything β the sidebar sorts by `sortUpdatedAt`.this.#get().internal_dispatchTopic({type: 'updateTopic',id: operationContext.topicId,diff --git a/src/store/chat/slices/agentRun/actions/transports/gateway/gateway.ts b/src/store/chat/slices/agentRun/actions/transports/gateway/gateway.tsindex ec554cf8337..423702944d9 100644--- a/src/store/chat/slices/agentRun/actions/transports/gateway/gateway.ts+++ b/src/store/chat/slices/agentRun/actions/transports/gateway/gateway.ts@@ -748,7 +748,7 @@ export class GatewayActionImpl {.updateTopicMetadata(result.topicId, { runningOperation: null }).catch(() => {});// Also clear the local store copy β the server clear above does NOT touch- // the Zustand topic map that useGatewayReconnect reads (LOBE-12055).+ // the Zustand topic map that useGatewayReconnect reads.this.clearLocalRunningOperation({agentId: resolvedMessageContext.agentId,groupId: resolvedMessageContext.groupId,@@ -807,7 +807,7 @@ export class GatewayActionImpl {// TRPCError NOT_FOUND when it has no running operation on this topic β our// local marker is stale (e.g. an error run cleared the server marker but not// the store). Clear it and bail silently so the reconnect SWR fetcher resolves- // and does not retry the 404 forever (LOBE-12055).+ // and does not retry the 404 forever.let token: string;try {({ token } = await aiAgentService.refreshGatewayToken(topicId));@@ -936,7 +936,7 @@ export class GatewayActionImpl {// doesn't get reconnected on every reload / task-drawer open.topicService.updateTopicMetadata(topicId, { runningOperation: null }).catch(() => {});// Mirror the clear into the local store β the server clear above leaves the- // Zustand topic map stale, which useGatewayReconnect keys off (LOBE-12055).+ // Zustand topic map stale, which useGatewayReconnect keys off.this.clearLocalRunningOperation({ agentId: context.agentId, operationId, topicId });},operationId,@@ -989,7 +989,7 @@ export class GatewayActionImpl {* copy, so after an error run (e.g. insufficient credits) the stale marker keeps* firing `aiAgentService.refreshGatewayToken(topicId)`, which the server now answers* with NOT_FOUND (404 β the server-side marker is already null). Raw SWR retries the- * 404 forever and wedges the conversation (LOBE-12055).+ * 404 forever and wedges the conversation.** The `updateTopic` reducer shallow-merges `value.metadata` (`{...currentTopic, ...value}`),* so we spread the existing metadata to avoid dropping its other keys. Only dispatch whendiff --git a/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayEventHandler.test.ts b/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayEventHandler.test.tsindex 4d4a3654f44..30066d3d24d 100644--- a/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayEventHandler.test.ts+++ b/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayEventHandler.test.ts@@ -728,7 +728,7 @@ describe('createGatewayEventHandler', () => {expect(store.internal_dispatchMessage).not.toHaveBeenCalled();});- it('skips the visible_output_end hint while the assistant row is missing (LOBE-11501)', async () => {+ it('skips the visible_output_end hint while the assistant row is missing ', async () => {const store = createStore();const handler = createGatewayEventHandler(() => store, {assistantMessageId: 'missing-msg',diff --git a/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayEventHandler.ts b/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayEventHandler.tsindex f0e640e1eb9..7068a0adbc0 100644--- a/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayEventHandler.ts+++ b/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayEventHandler.ts@@ -630,7 +630,7 @@ export const createGatewayEventHandler = (// dispatches on a missing id are silent no-ops, so without an// insert here the whole step renders nothing until the next DB// refetch β and the final step has none before agent_runtime_end,- // which is how "loading cleared but no text" happened (LOBE-11501).+ // which is how "loading cleared but no text" happened.const stored = dbMessageSelectors.getDbMessageById(newAssistantMessageId)(get());if (!stored) {const seed = data?.assistantMessage;@@ -872,7 +872,7 @@ export const createGatewayEventHandler = (// Guard: only clear visible loading when the streamed content has// actually landed in the store. If the message shell is missing (or// text streamed but never applied), clearing here would show- // "loading done" with the answer still invisible (LOBE-11501) β+ // "loading done" with the answer still invisible β// skip the hint instead and let agent_runtime_end reconcile content// and loading in the same frame, i.e. the pre-early-hint behavior.const stored = dbMessageSelectors.getDbMessageById(currentAssistantMessageId)(get());diff --git a/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayMemberStreamHandler.test.ts b/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayMemberStreamHandler.test.tsindex b833fb67393..f0bfa4149d4 100644--- a/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayMemberStreamHandler.test.ts+++ b/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayMemberStreamHandler.test.ts@@ -68,7 +68,7 @@ describe('createGatewayMemberStreamHandler', () => {expect(store.completeOperation).not.toHaveBeenCalled();});- it('skips the visible loading hint while the member row is not yet in the store (LOBE-11501)', () => {+ it('skips the visible loading hint while the member row is not yet in the store ', () => {// Group hydration is still in flight, so the member row hasn't landed. Clearing// loading here would show a "done" column with no text β the guard skips it and// lets the terminal barrier reconcile.diff --git a/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayMemberStreamHandler.ts b/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayMemberStreamHandler.tsindex 48425270d09..bcb60edeb52 100644--- a/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayMemberStreamHandler.ts+++ b/src/store/chat/slices/agentRun/actions/transports/gateway/gatewayMemberStreamHandler.ts@@ -154,7 +154,7 @@ export const createGatewayMemberStreamHandler = (// the member column's visible loading; terminal reconciliation still// belongs to agent_runtime_end/error.//- // Same guard as the main handler (LOBE-11501): if the member row isn't+ // Same guard as the main handler: if the member row isn't// in the store yet (group hydration in flight) or its streamed text// hasn't landed, clearing loading would show a "done" column with no// text β skip the hint and let the terminal barrier reconcile both.diff --git a/src/store/chat/slices/topic/reducer.ts b/src/store/chat/slices/topic/reducer.tsindex 17d14455bce..adeea0b75be 100644--- a/src/store/chat/slices/topic/reducer.ts+++ b/src/store/chat/slices/topic/reducer.ts@@ -55,7 +55,7 @@ export const topicReducer = (state: ChatTopic[] = [], payload: ChatTopicDispatchsessionId: payload.value.sessionId || undefined,// A brand-new topic is fresh activity: seed the sidebar sort key so it// lands at the top immediately, matching the server's `topicActivityAt`- // once the real row is fetched. (LOBE-11543)+ // once the real row is fetched.sortUpdatedAt: Date.now(),updatedAt: Date.now(),});@@ -79,7 +79,7 @@ export const topicReducer = (state: ChatTopic[] = [], payload: ChatTopicDispatch// Bump `updatedAt` (display/edit time) on every real write. The sidebar// no longer sorts by `updatedAt` β it sorts by `sortUpdatedAt` (activity// time) β so a status flip bumping `updatedAt` here can't reorder the- // list; only an explicit `sortUpdatedAt` in `value` moves a row. (LOBE-11543)+ // list; only an explicit `sortUpdatedAt` in `value` moves a row.// TODO: updatedAt type needs to be changed to Date later// @ts-ignoredraftState[topicIndex] = { ...mergedTopic, updatedAt: new Date() };@@ -105,7 +105,7 @@ export const topicReducer = (state: ChatTopic[] = [], payload: ChatTopicDispatchid: nextId,// Resolving a first-send optimistic topic to its real id is fresh activity:// keep it pinned to the top via the sidebar sort key (`sortUpdatedAt`), not- // just `updatedAt` which the sidebar no longer sorts by. (LOBE-11543)+ // just `updatedAt` which the sidebar no longer sorts by.sortUpdatedAt: Date.now(),updatedAt: Date.now(),};diff --git a/src/store/home/slices/homeInput/action.test.ts b/src/store/home/slices/homeInput/action.test.tsindex c47e4c3d1d5..dc103eb767f 100644--- a/src/store/home/slices/homeInput/action.test.ts+++ b/src/store/home/slices/homeInput/action.test.ts@@ -228,7 +228,7 @@ describe('HomeInputActionImpl', () => {);});- // LOBE-12374: a personal builtin is the user's own row, so it keeps following+ // a personal builtin is the user's own row, so it keeps following// the inbox model; the workspace-scoped row of the same slug is shared by// every member and must never be repointed.it('keeps syncing model/provider onto a personal agent builder', async () => {diff --git a/src/store/home/slices/homeInput/action.ts b/src/store/home/slices/homeInput/action.tsindex d5be3384fb1..2c0aa570731 100644--- a/src/store/home/slices/homeInput/action.ts+++ b/src/store/home/slices/homeInput/action.ts@@ -60,7 +60,7 @@ const ensureBuiltinAgentHydrated = async (slug: string): Promise<string | undefi** The workspace-scoped row of the same slug is shared by every member, so a* personal preference must not repoint it β that write both broke for- * non-creators and silently changed the model for everyone else (LOBE-12374).+ * non-creators and silently changed the model for everyone else.* The single exception is a shared row whose own model cannot be invoked in this* deployment; leaving it would fail the request outright, so it is repaired once.*diff --git a/src/store/tool/slices/connector/action.ts b/src/store/tool/slices/connector/action.tsindex 00d196c9f7e..557a98f15d2 100644--- a/src/store/tool/slices/connector/action.ts+++ b/src/store/tool/slices/connector/action.ts@@ -43,9 +43,9 @@ export class ConnectorActionImpl {/*** Fetch every agent-owned connector across all agents (the flat aggregate for- * the unified connector-settings page, LOBE-11682). Each row is enriched+ * the unified connector-settings page). Each row is enriched* server-side with the owning agent's title/avatar. Scope-correct: a workspace- * context only returns that workspace's agent connectors (LOBE-11681).+ * context only returns that workspace's agent connectors.*/fetchAgentBoundConnectors = async (): Promise<void> => {const data = await lambdaClient.connector.listAgentBound.query();diff --git a/src/store/tool/slices/connector/initialState.ts b/src/store/tool/slices/connector/initialState.tsindex 45121c08bf3..20b943967c5 100644--- a/src/store/tool/slices/connector/initialState.ts+++ b/src/store/tool/slices/connector/initialState.ts@@ -3,7 +3,7 @@ import type { AgentBoundConnector, ConnectorWithTools } from './types';export interface ConnectorState {/*** All agent-owned connectors across every agent in the current scope, for the- * unified connector-settings page (LOBE-11682). Distinct from `agentConnectors`+ * unified connector-settings page. Distinct from `agentConnectors`* (keyed per-agent, includes mounted rows) β this is the flat aggregate.*/agentBoundConnectors: AgentBoundConnector[];diff --git a/src/store/tool/slices/connector/types.ts b/src/store/tool/slices/connector/types.tsindex 8696d0c565f..760fa2b1ea6 100644--- a/src/store/tool/slices/connector/types.ts+++ b/src/store/tool/slices/connector/types.ts@@ -40,7 +40,7 @@ export interface ConnectorWithTools {/*** An agent-owned connector as returned by `connector.listAgentBound`, enriched* with the owning agent's display info for the unified settings attribution- * badge (LOBE-11682). Server-resolved so the page needs no per-agent loading.+ * badge. Server-resolved so the page needs no per-agent loading.*/export interface AgentBoundConnector extends ConnectorWithTools {agentAvatar: string | null;diff --git a/src/store/user/slices/workspaceUserSettings/initialState.ts b/src/store/user/slices/workspaceUserSettings/initialState.tsindex a25e171f782..46b88ed1a4a 100644--- a/src/store/user/slices/workspaceUserSettings/initialState.ts+++ b/src/store/user/slices/workspaceUserSettings/initialState.ts@@ -9,7 +9,7 @@ export interface WorkspaceUserSettingsState {/*** Empty on first load / while SWR is fetching / when the caller is in* personal mode. Consumers should treat empty as "no override β use the- * shared defaults", identical to the pre-LOBE-11689 behaviour.+ * shared defaults", identical to the pre behaviour.*/workspaceUserPreference: WorkspaceUserPreference;/**