8000 feat(settings): an Automations section for the stream of activities by adeelahmad · Pull Request #429 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

feat(settings): an Automations section for the stream of activities - #429

Merged
adeelahmad merged 1 commit into
mainfrom
claude/project-thread-3p5r9r
Oct 15, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/project-thread-3p5r9r

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: how often the stream's followers look for new activities and how long the event log is kept had defaults (5 seconds, 30 days) but could only be changed outside the web app.

After: Settings → Automations (in the System group, and found by Find and ⌘K) edits both: "Look for new activities every (seconds)", 1–3600, and "Keep logged activities (days)", 1–3650. The API (PUT /api/v1/settings/events) and the admin assistant's read_settings/change_settings reach the same section, and refuse anything that isn't a whole number in range.

How: an events section in settings.EDITABLE with its own check, events added to the assistant's settings sections, and a frontend section automations over the backend section events. Last part of workflow studio module M1.

Motivation and Context

Workflow studio plan (/mnt/project-files/workflow-studio/plan.md, section 2 defaults and M1); differences from the plan are in /mnt/project-files/workflow-studio/m1-notes.md.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests.
  • My change requires documentation updates, and I have updated docs/ accordingly.
  • Users need more than the title to understand it, so I wrote it under ## Unreleased in CHANGELOG.md. (n/a: the title says it)

Done questions (AGENTS.md)

  • Goal: the stream's settings editable in the web app, merged on green CI.
  • Agents: GET/PUT /api/v1/settings/events and the admin assistant's read_settings/change_settings.
  • Zero setup: defaults stay 5 seconds and 30 days.
  • Fewest clicks: two number fields with defaults filled; Find opens on either.
  • Configurable: yes, both in Settings → Automations with defaults, not in the setup wizard.
  • Light: no new process.
  • Private and secure: admins only, like every Settings section; values range-checked.
  • Cost: no model calls.
  • User decides: existing defaults unchanged.
  • Upgrades: a setting override only; installs without one keep the defaults.
  • Honest: docs/automations.md labels it built.
  • Tests, docs and generated files: tests/api/test_activities.py (saving, the values the stream reads, refusals, the assistant reading and changing it) and __tests__/settings-find.test.tsx (the section, its group and fields); docs/configuration.md § Automations, docs/automations.md. No generated files change.
  • Open standards: n/a.
  • Reported; refine later stays in docs/automations.md.
  • Reuse: the Settings section, field and Find machinery as they are.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RFQUkVmALkdhRqXY1yFxW5


Generated by Claude Code

Settings → Automations (under System) edits events.poll_seconds, how often
followers look for new activities when nothing wakes them, and
events.keep_days, how long the event log is kept. The API checks both as
whole numbers in range.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RFQUkVmALkdhRqXY1yFxW5
@adeelahmad adeelahmad self-assigned this Oct 15, 2026
@adeelahmad
adeelahmad merged commit efc0dba into main Oct 15, 2026
10 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-3p5r9r branch October 15, 2026 18:23
adeelahmad added a commit that referenced this pull request Oct 15, 2026
… in progress (#430)

The stream of activities (#425 to #428) merged: agents read it through
the API, MCP's timeline tool and the assistant. Say so under Automate it,
with automations that act on it labelled in progress, add the open
Settings section (#429) to In progress, and link the automations page
from the docs index.


Claude-Session: https://claude.ai/code/session_01HDx7PPUauyjMn1LZs8JAsS

Co-authored-by: Adeel Ahmad <noreply@anthropic.com>
@adeelahmad adeelahmad mentioned this pull request Oct 15, 2026
16 of 22 tasks
adeelahmad added a commit that referenced this pull request Oct 15, 2026
The Automations settings section (#429) merged: the README now names it
under Automate it and drops it from In progress.


Claude-Session: https://claude.ai/code/session_01HDx7PPUauyjMn1LZs8JAsS

Co-authored-by: Adeel Ahmad <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4B3C
None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0