mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-20 15:02:02 +00:00
🌳 feat: Isolate Attached Workspaces by Conversation (#16107)
Some checks are pending
Backend Unit Tests / Build packages (push) Waiting to run
Backend Unit Tests / Codegraph select (push) Waiting to run
Backend Unit Tests / TypeScript type checks (push) Blocked by required conditions
Backend Unit Tests / Circular dependency checks (push) Waiting to run
Backend Unit Tests / Tests: api (shard 1/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 2/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 3/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: data-provider (push) Blocked by required conditions
Backend Unit Tests / Tests: data-schemas (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 1/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 2/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 3/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 4/4) (push) Blocked by required conditions
Codegraph E2E Votes / vote (full suite) (push) Waiting to run
Docker Dev Branch Images Build / publish (push) Waiting to run
Frontend Unit Tests / Client build recovery regression (push) Waiting to run
Frontend Unit Tests / Codegraph select (push) Waiting to run
Frontend Unit Tests / Build packages (push) Waiting to run
Frontend Unit Tests / TypeScript type checks (client) (push) Blocked by required conditions
Frontend Unit Tests / Tests: @librechat/client (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 1/2) (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 2/2) (push) Blocked by required conditions
Frontend Unit Tests / Vite build verification (push) Blocked by required conditions
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Waiting to run
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Blocked by required conditions
Some checks are pending
Backend Unit Tests / Build packages (push) Waiting to run
Backend Unit Tests / Codegraph select (push) Waiting to run
Backend Unit Tests / TypeScript type checks (push) Blocked by required conditions
Backend Unit Tests / Circular dependency checks (push) Waiting to run
Backend Unit Tests / Tests: api (shard 1/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 2/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 3/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: data-provider (push) Blocked by required conditions
Backend Unit Tests / Tests: data-schemas (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 1/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 2/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 3/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 4/4) (push) Blocked by required conditions
Codegraph E2E Votes / vote (full suite) (push) Waiting to run
Docker Dev Branch Images Build / publish (push) Waiting to run
Frontend Unit Tests / Client build recovery regression (push) Waiting to run
Frontend Unit Tests / Codegraph select (push) Waiting to run
Frontend Unit Tests / Build packages (push) Waiting to run
Frontend Unit Tests / TypeScript type checks (client) (push) Blocked by required conditions
Frontend Unit Tests / Tests: @librechat/client (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 1/2) (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 2/2) (push) Blocked by required conditions
Frontend Unit Tests / Vite build verification (push) Blocked by required conditions
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Waiting to run
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Blocked by required conditions
* feat: bind attached workspaces to conversations
* ⬆️ chore: bump agents to 3.8.8
This commit is contained in:
parent
36efc7b4e2
commit
2df937dd06
21 changed files with 339 additions and 32 deletions
|
|
@ -229,24 +229,25 @@ export function createContextProgrammaticBashTool(
|
|||
identity?: AgentGitIdentity | null,
|
||||
): DynamicStructuredTool {
|
||||
const attached = context?.environmentType === 'attached';
|
||||
return createGitIdentityProgrammaticBashTool(
|
||||
{
|
||||
authHeaders,
|
||||
baseUrl: context?.baseUrl,
|
||||
executionProfile: context?.executionProfile,
|
||||
runtimeSessionHint: context?.runtimeSessionHint,
|
||||
...(attached
|
||||
? {
|
||||
workspaceId: context.codeWorkspace?.workspaceId,
|
||||
runTimeoutMs: resolveAttachedWorkspaceProgrammaticTimeout(
|
||||
context.codeEnvironmentConfigSchema,
|
||||
context.codeWorkspace?.maxCommandTimeoutMs,
|
||||
),
|
||||
}
|
||||
: {}),
|
||||
},
|
||||
attached ? identity : undefined,
|
||||
);
|
||||
const options: Parameters<typeof createBashProgrammaticToolCallingTool>[0] & {
|
||||
workspaceInstanceId?: string;
|
||||
} = {
|
||||
authHeaders,
|
||||
baseUrl: context?.baseUrl,
|
||||
executionProfile: context?.executionProfile,
|
||||
runtimeSessionHint: context?.runtimeSessionHint,
|
||||
...(attached
|
||||
? {
|
||||
workspaceId: context.codeWorkspace?.workspaceId,
|
||||
workspaceInstanceId: context.codeWorkspace?.workspaceInstanceId,
|
||||
runTimeoutMs: resolveAttachedWorkspaceProgrammaticTimeout(
|
||||
context.codeEnvironmentConfigSchema,
|
||||
context.codeWorkspace?.maxCommandTimeoutMs,
|
||||
),
|
||||
}
|
||||
: {}),
|
||||
};
|
||||
return createGitIdentityProgrammaticBashTool(options, attached ? identity : undefined);
|
||||
}
|
||||
|
||||
/** Apply authorship before the SDK prepares the script and its replay requests. */
|
||||
|
|
@ -280,6 +281,7 @@ export function createAttachedWorkspaceBashTool({
|
|||
baseUrl,
|
||||
authHeaders,
|
||||
workspaceId,
|
||||
workspaceInstanceId,
|
||||
environment,
|
||||
gitIdentity,
|
||||
maxTimeoutMs = WORKSPACE_COMMAND_DEFAULT_TIMEOUT_MS,
|
||||
|
|
@ -289,6 +291,7 @@ export function createAttachedWorkspaceBashTool({
|
|||
baseUrl: string;
|
||||
authHeaders: () => Promise<Record<string, string>> | Record<string, string>;
|
||||
workspaceId: string;
|
||||
workspaceInstanceId?: string;
|
||||
environment?: CodeWorkspaceDescriptor['environment'];
|
||||
gitIdentity?: AgentGitIdentity | null;
|
||||
/** Effective admin/upstream ceiling already intersected with the protocol hard cap. */
|
||||
|
|
@ -361,6 +364,7 @@ export function createAttachedWorkspaceBashTool({
|
|||
protocolVersion: 1,
|
||||
operation: 'execute_command',
|
||||
workspaceId,
|
||||
...(workspaceInstanceId ? { workspaceInstanceId } : {}),
|
||||
command,
|
||||
...(action && environment
|
||||
? { environmentAction: { name: action, fingerprint: environment.fingerprint } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue