Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ccbcf72
feat(tasks): add durable Pi task sessions
jonathanlab Jul 22, 2026
b079476
fix(tasks): tighten Pi session cleanup and commands
jonathanlab Jul 22, 2026
ff419ea
fix(tasks): harden Pi session sync and local overlays
jonathanlab Jul 23, 2026
225ca75
refactor(tasks): align agent runtime naming
jonathanlab Jul 23, 2026
468f7e5
refactor(tasks): simplify pi session persistence
jonathanlab Jul 24, 2026
765ebbd
fix(tasks): preserve Pi command identity
jonathanlab Jul 24, 2026
d190d07
chore(tasks): refresh generated api types
tatoalo Jul 27, 2026
061eada
fix(tasks): address Pi runtime review feedback
jonathanlab Jul 27, 2026
4d8bb7b
fix(tasks): keep Pi flag check behind facade
jonathanlab Jul 27, 2026
af7781b
fix(tasks): align Pi flag identity
jonathanlab Jul 27, 2026
8e87fe0
chore: update OpenAPI generated types
tests-posthog[bot] Jul 27, 2026
f526cdb
fix(tasks): authenticate Pi session sync
jonathanlab Jul 27, 2026
a76c2aa
feat(tasks): enable persistent Pi event streams
jonathanlab Jul 27, 2026
c8afacd
feat(tasks): proxy Pi queue operations
jonathanlab Jul 27, 2026
390c103
Merge remote-tracking branch 'origin/master' into feat/task-sessions
jonathanlab Jul 28, 2026
488c516
chore: update OpenAPI generated types
tests-posthog[bot] Jul 28, 2026
08c952c
fix(tasks): restrict Pi RPC commands
jonathanlab Jul 28, 2026
b9e2ea5
Merge remote-tracking branch 'origin/feat/task-sessions' into feat/ta…
jonathanlab Jul 28, 2026
954a3df
Revert "fix(tasks): restrict Pi RPC commands"
jonathanlab Jul 28, 2026
279a582
fix(tasks): align Pi sessions with current task runtime
jonathanlab Jul 28, 2026
bf81141
fix(tasks): preserve ACP workflow dispatch shape
jonathanlab Jul 28, 2026
84d884a
fix(tasks): address Pi cloud review findings
jonathanlab Jul 28, 2026
87b3c21
fix(tasks): reset event stream when resuming cloud runs
jonathanlab Jul 28, 2026
68826c4
test(tasks): use bot authorship for cloud resume
jonathanlab Jul 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .semgrep/rules/security/idor-team-scoped-models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ rules:
|TaskAutomation
|TaskPresence
|TaskRun
|TaskSession
|TaskThreadMessage
|TaskThreadMessageMention
|Channel
Expand Down Expand Up @@ -606,6 +607,7 @@ rules:
|TaskAutomation
|TaskPresence
|TaskRun
|TaskSession
|TaskThreadMessage
|TaskThreadMessageMention
|Channel
Expand Down
1 change: 1 addition & 0 deletions posthog/test/setup_receivers_baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ post_delete:products.feature_flags.backend.local_evaluation.feature_flag_changed
post_delete:products.feature_flags.backend.models.feature_flag.refresh_flag_cache_on_updates
post_delete:products.slack_app.backend.signals.invalidate_repo_list_on_user_github_change
post_delete:products.surveys.backend.models.survey_changed
post_delete:products.tasks.backend.models.delete_task_session_object
post_delete:products.workflows.backend.models.hog_flow.hog_flow.hog_flow_deleted
post_init:posthog.storage.gateway_credential_signal_handlers._snapshot_oauth
post_init:posthog.storage.gateway_credential_signal_handlers._snapshot_secret_key
Expand Down
3 changes: 3 additions & 0 deletions products/tasks/backend/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
MODAL_VM_SANDBOX_FEATURE_FLAG = "tasks-modal-vm-sandbox"
MODAL_NETWORK_ALLOWLIST_FEATURE_FLAG = "tasks-modal-network-allowlist"
AGENT_RUN_OTEL_TELEMETRY_FEATURE_FLAG = "tasks-agent-run-otel-telemetry"
PI_CLOUD_RUNTIME_FEATURE_FLAG = "pi-harness"
# Run-state key the telemetry flag decision is stamped under at dispatch (temporal/client.py).
# Consumers read the stamp, so the decision stays stable for the run's whole lifetime.
AGENT_OTEL_TELEMETRY_STATE_KEY = "agent_otel_telemetry_enabled"
Expand Down Expand Up @@ -66,6 +67,8 @@ def vm_sandbox_allowed_origins(*, distinct_id: str, organization_id: str) -> set

MAX_CUSTOM_IMAGES_PER_TEAM = 20
MAX_CUSTOM_IMAGES_PER_USER = 10
TASK_SESSION_MAX_SIZE_BYTES = 10 * 1024 * 1024
TASK_SESSION_UPLOAD_FORM_OVERHEAD_BYTES = 64 * 1024

MODAL_DIRECTORY_RESUME_SNAPSHOTS_FEATURE_FLAG = "tasks-modal-directory-resume-snapshots"
STREAM_VIA_PROXY_FEATURE_FLAG = "tasks-stream-via-proxy"
Expand Down
Loading
Loading