Skip to content

chore(dcs): Kill dcs websocket server#1599

Merged
ehayes2000 merged 5 commits intomainfrom
kill-dcs
Feb 20, 2026
Merged

chore(dcs): Kill dcs websocket server#1599
ehayes2000 merged 5 commits intomainfrom
kill-dcs

Conversation

@ehayes2000
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 19, 2026


[features]
local_auth = []
local_auth = ["macro_middleware/local_auth"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we should remove this feature. if you want to use local auth you can just reference macro_middleware/local_auth directly

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

how should I be running locally now? is there a feature flag that replaces this?

@@ -1 +1 @@
export JWT_SECRET_KEY := env('JWT_SECRET_KEY', 'dummyval')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We really shouldn't be putting all these in a justfile. I know they've been here for a while but this is yet another thing to keep up to date. just rely on the SOPS file for all your env needs.

status: ExtractionStatusEnum,
},

/// pdf completion
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if this is explicitly for pdf completions perhaps it should be called PdfCompletionResponse


/// Spawns a tokio task to send a remove chat message to the search text extractor
/// Spawns a tokio task to send a remove chat message from the search text extractor
// used in edit_message which is dead for now
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So we are no longer able to edit messages?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

temporary sunset. is currently broken in prod

#[tracing::instrument(err, skip(ctx, chat, incoming_message), fields(chat_id=?incoming_message.chat_id))]
pub async fn store_incoming_message(
ctx: Arc<ApiContext>,
user_id: &str,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we should be using MacroUserId types for user_id

#[tracing::instrument(err, skip(ctx, messages), fields(chat_id=?chat_id, message_count=messages.len()))]
pub async fn store_conversation_messages(
ctx: Arc<ApiContext>,
user_id: &str,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same

updated_at: created_at,
};

let message_id = create_chat_message(ctx.db.clone(), chat_id, new_chat_message)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

create_chat_message should probably be refactored to take a reference to PgPool instead of requiring us to clone it a bunch

@ehayes2000
Copy link
Copy Markdown
Contributor Author

The util folder in dcs/src/api/strea/util is an un-refactored copy of the needed parts of the deleted ws server. It's still a mess, but has been working so I'd like to save a refactor for a future PR.

@ehayes2000
Copy link
Copy Markdown
Contributor Author

models are also an un-refactored rename of the previous ws models.

@ehayes2000 ehayes2000 changed the title Kill dcs websocket server chore(dcs): Kill dcs websocket server Feb 20, 2026
Base automatically changed from kill to main February 20, 2026 18:01
@ehayes2000 ehayes2000 merged commit 367cfad into main Feb 20, 2026
40 checks passed
@ehayes2000 ehayes2000 deleted the kill-dcs branch February 20, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants