Skip to content

Conversation

@jamadeo
Copy link
Collaborator

@jamadeo jamadeo commented Aug 26, 2025

No description provided.

@jamadeo jamadeo force-pushed the jackamadeo/middleware branch from 922d993 to ff3c703 Compare August 26, 2025 03:37
response::Response,
};

pub async fn layer_fn(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the normal way to name these? check_token would be easier to follow

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope it's just a bad name

@@ -1,12 +1,14 @@
use std::sync::Arc;

use crate::configuration;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should really name this differently :) I was like, why is this in agent.rs

headers: {
'X-Secret-Key': secret,
},
});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we use the generated API at this point or would it not be ready (or is it only on the other side?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like we don't actually add this endpoint to the generated client. It's also a bit of a mixed bag all over where we do vs don't use the generated client. I'll have a look at cleaning that up too, as this PR is kind of a logical place to do it

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it's all over the place. we should really set an alert on getSecret appearing in PRs

Base automatically changed from add-session-to-agents to main September 3, 2025 14:31
# Conflicts:
#	crates/goose-server/src/commands/agent.rs
#	crates/goose-server/src/routes/agent.rs
#	crates/goose-server/src/routes/audio.rs
#	crates/goose-server/src/routes/config_management.rs
#	crates/goose-server/src/routes/context.rs
#	crates/goose-server/src/routes/extension.rs
#	crates/goose-server/src/routes/reply.rs
#	crates/goose-server/src/routes/session.rs
#	crates/goose-server/src/state.rs
#	crates/goose-server/tests/pricing_api_test.rs
@jamadeo jamadeo force-pushed the jackamadeo/middleware branch from ff3c703 to fda12f7 Compare September 8, 2025 15:36
@jamadeo jamadeo merged commit 9f53d39 into main Sep 9, 2025
11 checks passed
@jamadeo jamadeo deleted the jackamadeo/middleware branch September 9, 2025 13:54
@alexhancock alexhancock mentioned this pull request Sep 9, 2025
katzdave added a commit that referenced this pull request Sep 9, 2025
…data

* 'main' of github.com:block/goose:
  improve auto scroll to bottom + detection (#4504)
  Fix unable to get access to microphone in Mac app (#4571)
  Use middleware to verify secret key (#4338)
  adding Vercel MCP (#4562)
  docs: reorganizing CLI commands (#4566)
  Desktop import yaml recipes (#4544)
thebristolsound pushed a commit to thebristolsound/goose that referenced this pull request Sep 11, 2025
tlongwell-block added a commit that referenced this pull request Sep 19, 2025
- Adapt to middleware-based authentication from PR #4338
- Remove verify_secret_key in favor of middleware auth
- Update AppState initialization to match new signature
- Preserve all Agent Manager functionality for per-session isolation
- Keep graceful shutdown improvements for cleanup task
- Fix test compilation issues with RawTextContent meta field

This completes the Agent Manager POC addressing Discussion #4389:
- Each session gets its own isolated agent
- Extensions don't interfere between sessions
- Cleanup task manages memory with graceful shutdown
- Foundation laid for scheduler/recipe integration
HikaruEgashira pushed a commit to HikaruEgashira/goose that referenced this pull request Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants